Class ExperimentMetric
java.lang.Object
com.azure.analytics.onlineexperimentation.models.ExperimentMetric
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExperimentMetric>
public final class ExperimentMetric
extends Object
implements com.azure.json.JsonSerializable<ExperimentMetric>
Defines experiment metric metadata and computation details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExperimentMetricfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExperimentMetric from the JsonReader.Get the categories property: Categories associated with the experiment metric.Get the definition property: The metric definition specifying how the metric value is calculated from event data.Get the description property: A detailed description of the experiment metric.Get the desiredDirection property: The desired direction for changes in the metric value.Get the displayName property: A user-friendly display name for the experiment metric shown in reports and dashboards.getETag()Get the eTag property: ETag of the experiment metric.getId()Get the id property: Identifier for this experiment metric.Get the lastModifiedAt property: The timestamp (UTC) of the last modification to the experiment metric resource.Get the lifecycle property: Determines whether it is included in experiment analysis.setCategories(List<String> categories) Set the categories property: Categories associated with the experiment metric.setDefinition(ExperimentMetricDefinition definition) Set the definition property: The metric definition specifying how the metric value is calculated from event data.setDescription(String description) Set the description property: A detailed description of the experiment metric.setDesiredDirection(DesiredDirection desiredDirection) Set the desiredDirection property: The desired direction for changes in the metric value.setDisplayName(String displayName) Set the displayName property: A user-friendly display name for the experiment metric shown in reports and dashboards.setLifecycle(LifecycleStage lifecycle) Set the lifecycle property: Determines whether it is included in experiment analysis.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExperimentMetric
public ExperimentMetric()Creates an instance of ExperimentMetric class.
-
-
Method Details
-
getId
Get the id property: Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.- Returns:
- the id value.
-
getLifecycle
Get the lifecycle property: Determines whether it is included in experiment analysis.- Returns:
- the lifecycle value.
-
setLifecycle
Set the lifecycle property: Determines whether it is included in experiment analysis.Required when create the resource.
- Parameters:
lifecycle- the lifecycle value to set.- Returns:
- the ExperimentMetric object itself.
-
getDisplayName
Get the displayName property: A user-friendly display name for the experiment metric shown in reports and dashboards.- Returns:
- the displayName value.
-
setDisplayName
Set the displayName property: A user-friendly display name for the experiment metric shown in reports and dashboards.Required when create the resource.
- Parameters:
displayName- the displayName value to set.- Returns:
- the ExperimentMetric object itself.
-
getDescription
Get the description property: A detailed description of the experiment metric.- Returns:
- the description value.
-
setDescription
Set the description property: A detailed description of the experiment metric.Required when create the resource.
- Parameters:
description- the description value to set.- Returns:
- the ExperimentMetric object itself.
-
getCategories
Get the categories property: Categories associated with the experiment metric. Used for organizing and filtering metrics.- Returns:
- the categories value.
-
setCategories
Set the categories property: Categories associated with the experiment metric. Used for organizing and filtering metrics.Required when create the resource.
- Parameters:
categories- the categories value to set.- Returns:
- the ExperimentMetric object itself.
-
getDesiredDirection
Get the desiredDirection property: The desired direction for changes in the metric value.- Returns:
- the desiredDirection value.
-
setDesiredDirection
Set the desiredDirection property: The desired direction for changes in the metric value.Required when create the resource.
- Parameters:
desiredDirection- the desiredDirection value to set.- Returns:
- the ExperimentMetric object itself.
-
getDefinition
Get the definition property: The metric definition specifying how the metric value is calculated from event data.- Returns:
- the definition value.
-
setDefinition
Set the definition property: The metric definition specifying how the metric value is calculated from event data.Required when create the resource.
- Parameters:
definition- the definition value to set.- Returns:
- the ExperimentMetric object itself.
-
getETag
Get the eTag property: ETag of the experiment metric.- Returns:
- the eTag value.
-
getLastModifiedAt
Get the lastModifiedAt property: The timestamp (UTC) of the last modification to the experiment metric resource.- Returns:
- the lastModifiedAt value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExperimentMetric>- Throws:
IOException
-
fromJson
Reads an instance of ExperimentMetric from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExperimentMetric if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ExperimentMetric.
-