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 Details

    • AggregatedValue

      public AggregatedValue()
      Creates an instance of AggregatedValue class.
  • Method Details

    • getEventName

      public String getEventName()
      Get the eventName property: The name of the event.
      Returns:
      the eventName value.
    • setEventName

      public AggregatedValue setEventName(String eventName)
      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

      public String getFilter()
      Get the filter property: [Optional] A condition to filter events.
      Returns:
      the filter value.
    • setFilter

      public AggregatedValue setFilter(String filter)
      Set the filter property: [Optional] A condition to filter events.
      Parameters:
      filter - the filter value to set.
      Returns:
      the AggregatedValue object itself.
    • getEventProperty

      public String getEventProperty()
      Get the eventProperty property: The key of the event property to aggregate.
      Returns:
      the eventProperty value.
    • setEventProperty

      public AggregatedValue setEventProperty(String eventProperty)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AggregatedValue>
      Throws:
      IOException
    • fromJson

      public static AggregatedValue fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.