Class DiagnosticCode
java.lang.Object
com.azure.core.util.ExpandableStringEnum<DiagnosticCode>
com.azure.analytics.onlineexperimentation.models.DiagnosticCode
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
The diagnostic error codes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DiagnosticCodeThe metric definition does not conform to the required schema.static final DiagnosticCodeThe filter condition is invalid.static final DiagnosticCodeThe provided metric definition is invalid.static final DiagnosticCodeThe filter condition is valid but not currently supported. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DiagnosticCodefromString(String name) Creates or finds a DiagnosticCode from its string representation.static Collection<DiagnosticCode> values()Gets known DiagnosticCode values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
FAILED_SCHEMA_VALIDATION
The metric definition does not conform to the required schema. -
INVALID_EVENT_CONDITION
The filter condition is invalid. -
UNSUPPORTED_EVENT_CONDITION
The filter condition is valid but not currently supported. -
INVALID_EXPERIMENT_METRIC_DEFINITION
The provided metric definition is invalid. For example, defining a metric to calculate the average of a numeric property but including a filter condition that compares it to a string value creates a type mismatch.
-
-
Constructor Details
-
DiagnosticCode
Deprecated.Use thefromString(String)factory method.Creates a new instance of DiagnosticCode value.
-
-
Method Details
-
fromString
Creates or finds a DiagnosticCode from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding DiagnosticCode.
-
values
Gets known DiagnosticCode values.- Returns:
- known DiagnosticCode values.
-
fromString(String)factory method.