Share via


OperationalInsightsWorkspacePurgeFilter Class

Definition

User-defined filters to return data which will be purged from the table.

public class OperationalInsightsWorkspacePurgeFilter : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsWorkspacePurgeFilter>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsWorkspacePurgeFilter>
type OperationalInsightsWorkspacePurgeFilter = class
    interface IJsonModel<OperationalInsightsWorkspacePurgeFilter>
    interface IPersistableModel<OperationalInsightsWorkspacePurgeFilter>
Public Class OperationalInsightsWorkspacePurgeFilter
Implements IJsonModel(Of OperationalInsightsWorkspacePurgeFilter), IPersistableModel(Of OperationalInsightsWorkspacePurgeFilter)
Inheritance
OperationalInsightsWorkspacePurgeFilter
Implements

Constructors

OperationalInsightsWorkspacePurgeFilter()

Initializes a new instance of OperationalInsightsWorkspacePurgeFilter.

Properties

Column

The column of the table over which the given query should run.

Key

When filtering over custom dimensions, this key will be used as the name of the custom dimension.

Operator

A query operator to evaluate over the provided column and value(s). Supported operators are ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL query.

Value

the value for the operator to function over. This can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of values.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<OperationalInsightsWorkspacePurgeFilter>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<OperationalInsightsWorkspacePurgeFilter>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<OperationalInsightsWorkspacePurgeFilter>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<OperationalInsightsWorkspacePurgeFilter>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<OperationalInsightsWorkspacePurgeFilter>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to