com.yandex.metrica.profile
Class CounterAttribute
java.lang.Object
com.yandex.metrica.profile.CounterAttribute
public final class CounterAttribute
extends java.lang.Object
Методы класса задают значение атрибута типа счетчик.
ПРИМЕР:
CounterAttribute timeLeftAttribute = Attribute.customCounter("time_left"); UserProfile userProfile = new UserProfile.Builder() .apply(Attribute.timeLeftAttribute().withDelta(-10d)) .build();
Method Summary
Modifier and Type | Method and Description |
---|---|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> | withDelta(double value)
Обновляет значение атрибута, изменяя его на указанную дельту.
|
Method Detail
withDelta
@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withDelta(double value)
Обновляет значение атрибута, изменяя его на указанную дельту.
- Parameters:
value
- Дельта, на которую необходимо изменить значение атрибута.- Returns:
- Объект
UserProfileUpdate
, который содержит все обновления атрибутов.