Class AverageMetricDefinition
java.lang.Object
com.azure.analytics.onlineexperimentation.models.ExperimentMetricDefinition
com.azure.analytics.onlineexperimentation.models.AverageMetricDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExperimentMetricDefinition>
The definition of an Average metric definition. Calculates the average value of a specified event property.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AverageMetricDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AverageMetricDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AverageMetricDefinition from the JsonReader.getType()Get the type property: Discriminator property for ExperimentMetricDefinition.getValue()Get the value property: The value to aggregate.setValue(AggregatedValue value) Set the value property: The value to aggregate.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
-
AverageMetricDefinition
public AverageMetricDefinition()Creates an instance of AverageMetricDefinition class.
-
-
Method Details
-
getType
Get the type property: Discriminator property for ExperimentMetricDefinition.- Overrides:
getTypein classExperimentMetricDefinition- Returns:
- the type value.
-
getValue
Get the value property: The value to aggregate.- Returns:
- the value value.
-
setValue
Set the value property: The value to aggregate.Required when create the resource.
- Parameters:
value- the value value to set.- Returns:
- the AverageMetricDefinition object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExperimentMetricDefinition>- Overrides:
toJsonin classExperimentMetricDefinition- Throws:
IOException
-
fromJson
public static AverageMetricDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AverageMetricDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AverageMetricDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AverageMetricDefinition.
-