public class Filters extends Object
| Constructor and Description |
|---|
Filters() |
| Modifier and Type | Method and Description |
|---|---|
Filters |
addField(FieldFilter field)
Add field filter to fields which just append not replace.
|
Filters |
addField(String field,
String value)
Add field filter to fields which just append not replace.
|
Filters |
addOr(Filters or)
Add an or condition.
|
Filters |
addTag(String tagKey,
List<String> tagValues)
Add tag to tags which just append not replace.
|
Filters |
addTag(String tagKey,
String... tagValues)
Add tag to tags which just append not replace.
|
Filters |
addTagFilter(TagFilter tagFilter) |
com.fasterxml.jackson.databind.JsonNode |
getEnd() |
List<FieldFilter> |
getFields() |
List<Filters> |
getOr() |
com.fasterxml.jackson.databind.JsonNode |
getStart() |
List<TagFilter> |
getTagFilters() |
Map<String,List<String>> |
getTags() |
com.fasterxml.jackson.databind.JsonNode |
getTagsJsonNode() |
String |
getValue() |
void |
setEnd(com.fasterxml.jackson.databind.JsonNode end) |
void |
setFields(List<FieldFilter> fields) |
void |
setOr(List<Filters> or) |
void |
setStart(com.fasterxml.jackson.databind.JsonNode start) |
void |
setTagFilters(List<TagFilter> tagFilters) |
void |
setTags(Map<String,List<String>> tags) |
void |
setTagsJsonNode(com.fasterxml.jackson.databind.JsonNode tags) |
void |
setValue(String value) |
Filters |
withAbsoluteEnd(long end)
Set absolute end time.
|
Filters |
withAbsoluteStart(long start)
Set absolute start time.
|
Filters |
withFields(List<FieldFilter> fields)
Set field filters.
|
Filters |
withOr(List<Filters> or) |
Filters |
withRelativeEnd(String end)
Set relative end time, like "5 days ago", "2 minutes ago" or "3 seconds ago".
|
Filters |
withRelativeStart(String start)
Set relative start time, like "5 days ago", "2 minutes ago" or "3 seconds ago".
|
Filters |
withTagFilters(List<TagFilter> tagFilters) |
Filters |
withTags(Map<String,List<String>> tags) |
Filters |
withValue(String value)
Set value for filter.
|
Filters |
withValue(ValueFilter value)
Set value for filter.
|
public com.fasterxml.jackson.databind.JsonNode getStart()
public void setStart(com.fasterxml.jackson.databind.JsonNode start)
public com.fasterxml.jackson.databind.JsonNode getEnd()
public void setEnd(com.fasterxml.jackson.databind.JsonNode end)
public String getValue()
public void setValue(String value)
public List<FieldFilter> getFields()
public void setFields(List<FieldFilter> fields)
public com.fasterxml.jackson.databind.JsonNode getTagsJsonNode()
public void setTagsJsonNode(com.fasterxml.jackson.databind.JsonNode tags)
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic Filters withValue(ValueFilter value)
value - The value for filter.public Filters withFields(List<FieldFilter> fields)
fields - The field filters list.public Filters withAbsoluteStart(long start)
start - The unit is millisecond.public Filters withRelativeStart(String start)
start - public Filters withAbsoluteEnd(long end)
end - The unit is millisecond.public Filters withRelativeEnd(String end)
end - public Filters addField(FieldFilter field)
field - The field filterpublic Filters addField(String field, String value)
field - The field name for filtervalue - The value filterpublic Filters addTag(String tagKey, List<String> tagValues)
tagKey - tagValues - public Filters addTag(String tagKey, String... tagValues)
tagKey - tagValues - Copyright © 2020. All rights reserved.