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 |
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.
|
com.fasterxml.jackson.databind.JsonNode |
getEnd() |
List<FieldFilter> |
getFields() |
com.fasterxml.jackson.databind.JsonNode |
getStart() |
Map<String,List<String>> |
getTags() |
String |
getValue() |
void |
setEnd(com.fasterxml.jackson.databind.JsonNode end) |
void |
setFields(List<FieldFilter> fields) |
void |
setStart(com.fasterxml.jackson.databind.JsonNode start) |
void |
setTags(Map<String,List<String>> 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 |
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 |
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 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 - Copyright © 2017. All rights reserved.