Class UserRateMetricDefinition
java.lang.Object
com.azure.analytics.onlineexperimentation.models.ExperimentMetricDefinition
com.azure.analytics.onlineexperimentation.models.UserRateMetricDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExperimentMetricDefinition>
The definition of a UserRate metric definition. Calculates the percentage of users who encounter a start event and
subsequently an end event. Users must encounter events in the specified order.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UserRateMetricDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionstatic UserRateMetricDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserRateMetricDefinition from the JsonReader.Get the endEvent property: The end event to observe, which is a condition for the rate numerator.Get the startEvent property: The start event to observe as the rate denominator.getType()Get the type property: Discriminator property for ExperimentMetricDefinition.setEndEvent(ObservedEvent endEvent) Set the endEvent property: The end event to observe, which is a condition for the rate numerator.setStartEvent(ObservedEvent startEvent) Set the startEvent property: The start event to observe as the rate denominator.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
-
UserRateMetricDefinition
public UserRateMetricDefinition()Creates an instance of UserRateMetricDefinition class.
-
-
Method Details
-
getType
Get the type property: Discriminator property for ExperimentMetricDefinition.- Overrides:
getTypein classExperimentMetricDefinition- Returns:
- the type value.
-
getStartEvent
Get the startEvent property: The start event to observe as the rate denominator.- Returns:
- the startEvent value.
-
setStartEvent
Set the startEvent property: The start event to observe as the rate denominator.Required when create the resource.
- Parameters:
startEvent- the startEvent value to set.- Returns:
- the UserRateMetricDefinition object itself.
-
getEndEvent
Get the endEvent property: The end event to observe, which is a condition for the rate numerator.- Returns:
- the endEvent value.
-
setEndEvent
Set the endEvent property: The end event to observe, which is a condition for the rate numerator.Required when create the resource.
- Parameters:
endEvent- the endEvent value to set.- Returns:
- the UserRateMetricDefinition object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExperimentMetricDefinition>- Overrides:
toJsonin classExperimentMetricDefinition- Throws:
IOException
-
fromJson
public static UserRateMetricDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UserRateMetricDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserRateMetricDefinition 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 UserRateMetricDefinition.
-