Skip to main content

AF Attribute AF Attribute


AF Attribute QueryAF-Attribute-Query


Input​

InputsTypeMandatoryDescriptionDefault
ServerNamestringYName of AF Server
ElementPathstringYParent to element search
ElementNamestringY(regex) Child element name (search pattern)
AttributestringY(regex) Attribute name filter e.g. ' .*'
TemplateNamestringNFilters results on template (element / attributes)
CategorystringNAttribute Categorycase insensitive
StartTimedynamicNMay be string, date-time or double (UTC Seconds)
EndTimedynamicNMay be string, date-time or double (UTC Seconds)
TagPrefixstringNPrefix to be added to each output (for tag interface purposes)
ModestringNBoundary Search Mode : if an input and StartTime is null, mBoundaryType is AFBoundaryType otherwise AFRetrievalMode
ValueTimezonestringNAllows inputs Local or UTC, future make it allow specific timezones if not specificed it will be Local
FetchstringNFetch mode: Archive = 0, Sampled = 1, Summary = 2
RetrievalModeString / NumericNAuto = 0,
AtOrBefore = 1,
Before = 6,
AtOrAfter = 2,
After = 7,
Exact = 4Auto
BoundaryTypeStringNInside,
Outside,
InterpolatedInterpolated
RecursionLevelsintegerNNumber of child levels to search (0= none)0
IntervalstringNfor the case of sampled fetch, the interval between samples1h
IncludeTopbooleanNInclude the top item (Element / DB) in the searchFalse
Resultstring/numericNAuto = 0, SingleValue = 1, MultipleValues = 2Auto

payload

Output​

OutputsTypeDescriptionExample
objectobjectobject
Serverstring""NodeADSTestSystem""
Dataarrayarray[1]
   0objectobject
   Eventsarrayarray[8]
      0objectobject
      Tint1632787200
      Vstring""Shutdown""
      Qbooleanfalse
      Ustring""""
      Sstring""Shutdown""
Nstring""Attribute1""
Estring""Test1""
Pstring""\PIINTHESKY-DEV4\NodeTestCaseTarget\Parent\Test1""
Errorarraynull

Payload Example​

msg.payload = {
ElementPath:"\\\\ "+ env.get("TestSystem") + "\\" + env.get("TestDatabase") + "\\" + env.get("ParentElement"),
ServerName: env.get("TestSystem"),
ElementName: env.get("ElementName"),
Category: "",
TemplateName:null,
TagPrefix: null,
Attribute:".*",
StartTime: "y-1d",
EndTime: "t+1h-1d",
Mode: "Interpolated"
}

Help Version 1.4