C# Класс Client.Model.Filter

Represents a filter on the set of Series. This is used to query a set of series with specific properties. A filter can include ids, keys, tags and attributes. An empty filter is created and filter predicates are added. For example a filter to return series with keys myagley-1 and myagley-2 looks like this:
 {@code Filter filter = new Filter(); filter.addKey("myagley-1"); filter.addKey("myagley-1"); } 
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddAttribute ( string key, string value ) : void

Adds an attribute to the filter.

AddId ( string id ) : void

Adds an id to the filter.

AddKey ( string key ) : void

Adds a key to the filter.

AddTag ( string tag ) : void

Adds a tag to the filter.

Описание методов

AddAttribute() публичный Метод

Adds an attribute to the filter.
public AddAttribute ( string key, string value ) : void
key string The attribute key
value string The attribute value
Результат void

AddId() публичный Метод

Adds an id to the filter.
public AddId ( string id ) : void
id string The id to add
Результат void

AddKey() публичный Метод

Adds a key to the filter.
public AddKey ( string key ) : void
key string The key to add
Результат void

AddTag() публичный Метод

Adds a tag to the filter.
public AddTag ( string tag ) : void
tag string The tag to add
Результат void