Filter Class

Definition

Model that represents available filter types that can be applied to a targets list.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.FilterTypeConverter))]
public class Filter : Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilter
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.FilterTypeConverter))>]
type Filter = class
    interface IFilter
    interface IJsonSerializable
Public Class Filter
Implements IFilter
Inheritance
Filter
Attributes
Implements

Constructors

Name Description
Filter()

Creates an new Filter instance.

Properties

Name Description
Type

Enum that discriminates between filter types. Currently only Simple type is supported.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Filter.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Filter.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilter. Note: the Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilter interface is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload.

FromJsonString(String)

Creates a new instance of Filter, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Filter into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to