C# Class 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"); } 
Show file Open project: tempodb/tempodb-net Class Usage Examples

Public Methods

Method Description
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.

Method Details

AddAttribute() public method

Adds an attribute to the filter.
public AddAttribute ( string key, string value ) : void
key string The attribute key
value string The attribute value
return void

AddId() public method

Adds an id to the filter.
public AddId ( string id ) : void
id string The id to add
return void

AddKey() public method

Adds a key to the filter.
public AddKey ( string key ) : void
key string The key to add
return void

AddTag() public method

Adds a tag to the filter.
public AddTag ( string tag ) : void
tag string The tag to add
return void