Package com.dynatrace.android.agent.conf
Enum DataCollectionLevel
- java.lang.Object
-
- java.lang.Enum<DataCollectionLevel>
-
- com.dynatrace.android.agent.conf.DataCollectionLevel
-
- All Implemented Interfaces:
Serializable,Comparable<DataCollectionLevel>
public enum DataCollectionLevel extends Enum<DataCollectionLevel>
This class represents the different privacy levels that the user can select. The selected data collection level has no influence on crash reporting, because crash reporting is configured by a different setting.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OFFthe agent does not capture data.PERFORMANCEthe agent only captures anonymous performance data.USER_BEHAVIORthe agent captures performance and user data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataCollectionLevelcastJavaScriptValue(int value)Parses the JavaScriptintvalue to the properDataCollectionLevelvalue.intgetJavaScriptValue()Returns theintrepresentation that is used in the JavaScript part of the appstatic DataCollectionLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static DataCollectionLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final DataCollectionLevel OFF
the agent does not capture data.
-
PERFORMANCE
public static final DataCollectionLevel PERFORMANCE
the agent only captures anonymous performance data. But it does not capture data that would identify the user likeDynatrace.identifyUser(String)or custom value reporting.
-
USER_BEHAVIOR
public static final DataCollectionLevel USER_BEHAVIOR
the agent captures performance and user data. This mode allows the agent to tag visits with the methodDynatrace.identifyUser(String)and it uses the same visitor id for every visit.
-
-
Method Detail
-
values
public static DataCollectionLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataCollectionLevel c : DataCollectionLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataCollectionLevel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
castJavaScriptValue
public static DataCollectionLevel castJavaScriptValue(int value)
Parses the JavaScriptintvalue to the properDataCollectionLevelvalue. Be aware, that invalid values are converted toUSER_BEHAVIOR- Parameters:
value-intrepresentation of aDataCollectionLevelvalue- Returns:
- the parsed
DataCollectionLevelvalue orUSER_BEHAVIOR, when the value is invalid - Since:
- 8.223
-
getJavaScriptValue
public int getJavaScriptValue()
Returns theintrepresentation that is used in the JavaScript part of the app- Returns:
intrepresentation that is used in the JavaScript part of the app- Since:
- 8.223
-
-