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>

public final class DiagnosticCode extends com.azure.core.util.ExpandableStringEnum<DiagnosticCode>
The diagnostic error codes.
  • Field Details

    • FAILED_SCHEMA_VALIDATION

      public static final DiagnosticCode FAILED_SCHEMA_VALIDATION
      The metric definition does not conform to the required schema.
    • INVALID_EVENT_CONDITION

      public static final DiagnosticCode INVALID_EVENT_CONDITION
      The filter condition is invalid.
    • UNSUPPORTED_EVENT_CONDITION

      public static final DiagnosticCode UNSUPPORTED_EVENT_CONDITION
      The filter condition is valid but not currently supported.
    • INVALID_EXPERIMENT_METRIC_DEFINITION

      public static final DiagnosticCode 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 public DiagnosticCode()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of DiagnosticCode value.
  • Method Details

    • fromString

      public static DiagnosticCode fromString(String name)
      Creates or finds a DiagnosticCode from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding DiagnosticCode.
    • values

      public static Collection<DiagnosticCode> values()
      Gets known DiagnosticCode values.
      Returns:
      known DiagnosticCode values.