Enum MetricCategory
- All Implemented Interfaces:
- Serializable,- Comparable<MetricCategory>
A enum class representing the different types of metric categories in the SDK.
 
 A metric can be tagged with multiple categories. Clients can enable/disable metric collection
 at a MetricCategory level.
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThis is an umbrella category (provided for convenience) that records metrics belonging to every category defined in this enum.Metrics collected by the core SDK are classified under this category.Metrics specified by the customer should be classified under this category.Metrics collected at the http client level are classified under this category.
- 
Method SummaryModifier and TypeMethodDescriptionstatic MetricCategoryfromString(String value) Create aMetricCategoryfrom the given String value.getValue()static MetricCategoryReturns the enum constant of this type with the specified name.static MetricCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
COREMetrics collected by the core SDK are classified under this category.
- 
HTTP_CLIENTMetrics collected at the http client level are classified under this category.
- 
CUSTOMMetrics specified by the customer should be classified under this category.
- 
ALLThis is an umbrella category (provided for convenience) that records metrics belonging to every category defined in this enum. Clients who wish to collect lot of SDK metrics data should use this.Note: Enabling this option along with MetricLevel.TRACEis verbose and can be expensive based on the platform the metrics are uploaded to. Please make sure you need all this data before using this category.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getValue
- 
fromStringCreate aMetricCategoryfrom the given String value. This method is case insensitive.- Parameters:
- value- the value to create the- MetricCategoryfrom
- Returns:
- A MetricCategoryif the givenvaluematches one of the enum values. Otherwise throwsIllegalArgumentException
 
 
-