类 Filters
- java.lang.Object
-
- com.baidubce.services.tsdb.model.Filters
-
public class Filters extends Object
Represent the filters for querying datapoints from Tsdb.
-
-
构造器概要
构造器 构造器 说明 Filters()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 FiltersaddField(FieldFilter field)Add field filter to fields which just append not replace.FiltersaddField(String field, String value)Add field filter to fields which just append not replace.FiltersaddOr(Filters or)Add an or condition.FiltersaddTag(String tagKey, String... tagValues)Add tag to tags which just append not replace.FiltersaddTag(String tagKey, List<String> tagValues)Add tag to tags which just append not replace.FiltersaddTagFilter(TagFilter tagFilter)com.fasterxml.jackson.databind.JsonNodegetEnd()List<FieldFilter>getFields()List<Filters>getOr()com.fasterxml.jackson.databind.JsonNodegetStart()List<TagFilter>getTagFilters()Map<String,List<String>>getTags()com.fasterxml.jackson.databind.JsonNodegetTagsJsonNode()StringgetValue()voidsetEnd(com.fasterxml.jackson.databind.JsonNode end)voidsetFields(List<FieldFilter> fields)voidsetOr(List<Filters> or)voidsetStart(com.fasterxml.jackson.databind.JsonNode start)voidsetTagFilters(List<TagFilter> tagFilters)voidsetTags(Map<String,List<String>> tags)voidsetTagsJsonNode(com.fasterxml.jackson.databind.JsonNode tags)voidsetValue(String value)FilterswithAbsoluteEnd(long end)Set absolute end time.FilterswithAbsoluteStart(long start)Set absolute start time.FilterswithFields(List<FieldFilter> fields)Set field filters.FilterswithOr(List<Filters> or)FilterswithRelativeEnd(String end)Set relative end time, like "5 days ago", "2 minutes ago" or "3 seconds ago".FilterswithRelativeStart(String start)Set relative start time, like "5 days ago", "2 minutes ago" or "3 seconds ago".FilterswithTagFilters(List<TagFilter> tagFilters)FilterswithTags(Map<String,List<String>> tags)FilterswithValue(ValueFilter value)Set value for filter.FilterswithValue(String value)Set value for filter.
-
-
-
方法详细资料
-
getStart
public com.fasterxml.jackson.databind.JsonNode getStart()
-
setStart
public void setStart(com.fasterxml.jackson.databind.JsonNode start)
-
getEnd
public com.fasterxml.jackson.databind.JsonNode getEnd()
-
setEnd
public void setEnd(com.fasterxml.jackson.databind.JsonNode end)
-
getValue
public String getValue()
-
setValue
public void setValue(String value)
-
getFields
public List<FieldFilter> getFields()
-
setFields
public void setFields(List<FieldFilter> fields)
-
getTagsJsonNode
public com.fasterxml.jackson.databind.JsonNode getTagsJsonNode()
-
setTagsJsonNode
public void setTagsJsonNode(com.fasterxml.jackson.databind.JsonNode tags) throws com.fasterxml.jackson.core.JsonProcessingException- 抛出:
com.fasterxml.jackson.core.JsonProcessingException
-
withValue
public Filters withValue(ValueFilter value)
Set value for filter.- 参数:
value- The value for filter.- 返回:
- Filters
-
withFields
public Filters withFields(List<FieldFilter> fields)
Set field filters.- 参数:
fields- The field filters list.- 返回:
- Filters
-
withAbsoluteStart
public Filters withAbsoluteStart(long start)
Set absolute start time.- 参数:
start- The unit is millisecond.- 返回:
- Filters
-
withRelativeStart
public Filters withRelativeStart(String start)
Set relative start time, like "5 days ago", "2 minutes ago" or "3 seconds ago".- 参数:
start-- 返回:
- Filters
-
withAbsoluteEnd
public Filters withAbsoluteEnd(long end)
Set absolute end time.- 参数:
end- The unit is millisecond.- 返回:
- Filters
-
withRelativeEnd
public Filters withRelativeEnd(String end)
Set relative end time, like "5 days ago", "2 minutes ago" or "3 seconds ago".- 参数:
end-- 返回:
- Filters
-
addField
public Filters addField(FieldFilter field)
Add field filter to fields which just append not replace.- 参数:
field- The field filter- 返回:
- Filters
-
addField
public Filters addField(String field, String value)
Add field filter to fields which just append not replace.- 参数:
field- The field name for filtervalue- The value filter- 返回:
- Filters
-
addTag
public Filters addTag(String tagKey, List<String> tagValues)
Add tag to tags which just append not replace.- 参数:
tagKey-tagValues-- 返回:
- Filters
-
addTag
public Filters addTag(String tagKey, String... tagValues)
Add tag to tags which just append not replace.- 参数:
tagKey-tagValues-- 返回:
- Filters
-
-