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"); } 
파일 보기 프로젝트 열기: tempodb/tempodb-net 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