Package org.netxms.client.datacollection
Class DataExportRequest
java.lang.Object
org.netxms.client.datacollection.DataExportRequest
Request for export of DCI history. Metrics are selected either by tag patterns under a root object, or by an explicit
list of DCI references (which takes precedence when not empty).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classReference to DCI by owner object ID and DCI ID -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP message with request datalonggetTier()booleanbooleanvoidsetAnonymize(boolean anonymize) voidsetDciList(List<DataExportRequest.DciReference> dciList) voidsetKeepMapping(boolean keepMapping) voidsetRootObjectId(long rootObjectId) voidsetTagPatterns(List<String> tagPatterns) voidvoidsetTimeFrom(Date timeFrom) void
-
Field Details
-
FORMAT_CSV
public static final int FORMAT_CSV- See Also:
-
FLAG_ANONYMIZE
public static final int FLAG_ANONYMIZE- See Also:
-
FLAG_KEEP_MAPPING
public static final int FLAG_KEEP_MAPPING- See Also:
-
-
Constructor Details
-
DataExportRequest
public DataExportRequest()
-
-
Method Details
-
fillMessage
Fill NXCP message with request data- Parameters:
msg- NXCP message
-
getRootObjectId
public long getRootObjectId()- Returns:
- root object ID
-
setRootObjectId
public void setRootObjectId(long rootObjectId) - Parameters:
rootObjectId- root object ID (subtree searched for tagged DCIs)
-
getTagPatterns
- Returns:
- tag glob patterns
-
setTagPatterns
- Parameters:
tagPatterns- tag glob patterns (e.g. "eed.*")
-
getDciList
- Returns:
- explicit DCI list
-
setDciList
- Parameters:
dciList- explicit DCI list; when not empty, root object and tag patterns are ignored
-
getTimeFrom
- Returns:
- start of export period
-
setTimeFrom
- Parameters:
timeFrom- start of export period
-
getTimeTo
- Returns:
- end of export period (inclusive)
-
setTimeTo
- Parameters:
timeTo- end of export period (inclusive)
-
getTier
- Returns:
- history tier to export
-
setTier
- Parameters:
tier- history tier to export (RAW, HOURLY, or DAILY)
-
isAnonymize
public boolean isAnonymize()- Returns:
- true if identities should be replaced with pseudonyms
-
setAnonymize
public void setAnonymize(boolean anonymize) - Parameters:
anonymize- true to replace identities with pseudonyms
-
isKeepMapping
public boolean isKeepMapping()- Returns:
- true if pseudonym mapping file should be produced
-
setKeepMapping
public void setKeepMapping(boolean keepMapping) - Parameters:
keepMapping- true to produce pseudonym mapping file (anonymized exports only)
-