Share via


EventRateMetricDefinition Class

Definition

The definition of an EventRate metric definition. Calculates the percentage of events satisfying a specified condition.

public class EventRateMetricDefinition : Azure.Analytics.OnlineExperimentation.ExperimentMetricDefinition, System.ClientModel.Primitives.IJsonModel<Azure.Analytics.OnlineExperimentation.EventRateMetricDefinition>, System.ClientModel.Primitives.IPersistableModel<Azure.Analytics.OnlineExperimentation.EventRateMetricDefinition>
type EventRateMetricDefinition = class
    inherit ExperimentMetricDefinition
    interface IJsonModel<EventRateMetricDefinition>
    interface IPersistableModel<EventRateMetricDefinition>
Public Class EventRateMetricDefinition
Inherits ExperimentMetricDefinition
Implements IJsonModel(Of EventRateMetricDefinition), IPersistableModel(Of EventRateMetricDefinition)
Inheritance
EventRateMetricDefinition
Implements

Constructors

EventRateMetricDefinition(ObservedEvent, String)

Initializes a new instance of EventRateMetricDefinition.

EventRateMetricDefinition(String, String)

Initializes a new instance of EventRateMetricDefinition.

Properties

Event

Event to observe as the rate denominator.

RateCondition

The event contributes to the rate numerator if it satisfies this condition.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<EventRateMetricDefinition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<EventRateMetricDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<ExperimentMetricDefinition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ExperimentMetricDefinition)
IJsonModel<ExperimentMetricDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ExperimentMetricDefinition)
IPersistableModel<EventRateMetricDefinition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<EventRateMetricDefinition>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<EventRateMetricDefinition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<ExperimentMetricDefinition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ExperimentMetricDefinition)
IPersistableModel<ExperimentMetricDefinition>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ExperimentMetricDefinition)
IPersistableModel<ExperimentMetricDefinition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ExperimentMetricDefinition)

Applies to