Class UserCountMetricDefinition
java.lang.Object
com.azure.analytics.onlineexperimentation.models.ExperimentMetricDefinition
com.azure.analytics.onlineexperimentation.models.UserCountMetricDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExperimentMetricDefinition>
The definition of a UserCount metric definition. Counts unique users who encounter a specified event.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UserCountMetricDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionstatic UserCountMetricDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserCountMetricDefinition from the JsonReader.getEvent()Get the event property: Event to observe.getType()Get the type property: Discriminator property for ExperimentMetricDefinition.setEvent(ObservedEvent event) Set the event property: Event to observe.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
-
UserCountMetricDefinition
public UserCountMetricDefinition()Creates an instance of UserCountMetricDefinition 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.- Returns:
- the event value.
-
setEvent
Set the event property: Event to observe.Required when create the resource.
- Parameters:
event- the event value to set.- Returns:
- the UserCountMetricDefinition object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExperimentMetricDefinition>- Overrides:
toJsonin classExperimentMetricDefinition- Throws:
IOException
-
fromJson
public static UserCountMetricDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UserCountMetricDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserCountMetricDefinition 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 UserCountMetricDefinition.
-