Class EventRateMetricDefinition
java.lang.Object
com.azure.analytics.onlineexperimentation.models.ExperimentMetricDefinition
com.azure.analytics.onlineexperimentation.models.EventRateMetricDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExperimentMetricDefinition>
The definition of an EventRate metric definition. Calculates the percentage of events satisfying a specified
condition.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EventRateMetricDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionstatic EventRateMetricDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EventRateMetricDefinition from the JsonReader.getEvent()Get the event property: Event to observe as the rate denominator.Get the rateCondition property: The event contributes to the rate numerator if it satisfies this condition.getType()Get the type property: Discriminator property for ExperimentMetricDefinition.setEvent(ObservedEvent event) Set the event property: Event to observe as the rate denominator.setRateCondition(String rateCondition) Set the rateCondition property: The event contributes to the rate numerator if it satisfies this condition.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
-
EventRateMetricDefinition
public EventRateMetricDefinition()Creates an instance of EventRateMetricDefinition class.
-
-
Method Details
-
getType
Get the type property: Discriminator property for ExperimentMetricDefinition.- Overrides:
getTypein classExperimentMetricDefinition- Returns:
- the type value.
-
getEvent
Get the event property: Event to observe as the rate denominator.- Returns:
- the event value.
-
setEvent
Set the event property: Event to observe as the rate denominator.Required when create the resource.
- Parameters:
event- the event value to set.- Returns:
- the EventRateMetricDefinition object itself.
-
getRateCondition
Get the rateCondition property: The event contributes to the rate numerator if it satisfies this condition.- Returns:
- the rateCondition value.
-
setRateCondition
Set the rateCondition property: The event contributes to the rate numerator if it satisfies this condition.Required when create the resource.
- Parameters:
rateCondition- the rateCondition value to set.- Returns:
- the EventRateMetricDefinition object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExperimentMetricDefinition>- Overrides:
toJsonin classExperimentMetricDefinition- Throws:
IOException
-
fromJson
public static EventRateMetricDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EventRateMetricDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EventRateMetricDefinition 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 EventRateMetricDefinition.
-