Class AggregatedValue
java.lang.Object
com.azure.analytics.onlineexperimentation.models.AggregatedValue
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AggregatedValue>
public final class AggregatedValue
extends Object
implements com.azure.json.JsonSerializable<AggregatedValue>
An event property value aggregated by a metric.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregatedValuefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AggregatedValue from the JsonReader.Get the eventName property: The name of the event.Get the eventProperty property: The key of the event property to aggregate.Get the filter property: [Optional] A condition to filter events.setEventName(String eventName) Set the eventName property: The name of the event.setEventProperty(String eventProperty) Set the eventProperty property: The key of the event property to aggregate.Set the filter property: [Optional] A condition to filter events.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
-
AggregatedValue
public AggregatedValue()Creates an instance of AggregatedValue class.
-
-
Method Details
-
getEventName
Get the eventName property: The name of the event.- Returns:
- the eventName value.
-
setEventName
Set the eventName property: The name of the event.Required when create the resource.
- Parameters:
eventName- the eventName value to set.- Returns:
- the AggregatedValue object itself.
-
getFilter
Get the filter property: [Optional] A condition to filter events.- Returns:
- the filter value.
-
setFilter
Set the filter property: [Optional] A condition to filter events.- Parameters:
filter- the filter value to set.- Returns:
- the AggregatedValue object itself.
-
getEventProperty
Get the eventProperty property: The key of the event property to aggregate.- Returns:
- the eventProperty value.
-
setEventProperty
Set the eventProperty property: The key of the event property to aggregate.Required when create the resource.
- Parameters:
eventProperty- the eventProperty value to set.- Returns:
- the AggregatedValue object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AggregatedValue>- Throws:
IOException
-
fromJson
Reads an instance of AggregatedValue from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AggregatedValue 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 AggregatedValue.
-