AF Attribute
AF-Attribute-Query
Input
| Inputs | Type | Mandatory | Description | Default |
|---|---|---|---|---|
| ServerName | string | Y | Name of AF Server | |
| ElementPath | string | Y | Parent to element search | |
| ElementName | string | Y | (regex) Child element name (search pattern) | |
| Attribute | string | Y | (regex) Attribute name filter e.g. ' .*' | |
| TemplateName | string | N | Filters results on template (element / attributes) | |
| Category | string | N | Attribute Category | case insensitive |
| StartTime | dynamic | N | May be string, date-time or double (UTC Seconds) | |
| EndTime | dynamic | N | May be string, date-time or double (UTC Seconds) | |
| TagPrefix | string | N | Prefix to be added to each output (for tag interface purposes) | |
| Mode | string | N | Boundary Search Mode : if an input and StartTime is null, mBoundaryType is AFBoundaryType otherwise AFRetrievalMode | |
| ValueTimezone | string | N | Allows inputs Local or UTC, future make it allow specific timezones if not specificed it will be Local | |
| Fetch | string | N | Fetch mode: Archive = 0, Sampled = 1, Summary = 2 | |
| RetrievalMode | String / Numeric | N | Auto = 0, | |
| AtOrBefore = 1, | ||||
| Before = 6, | ||||
| AtOrAfter = 2, | ||||
| After = 7, | ||||
| Exact = 4 | Auto | |||
| BoundaryType | String | N | Inside, | |
| Outside, | ||||
| Interpolated | Interpolated | |||
| RecursionLevels | integer | N | Number of child levels to search (0= none) | 0 |
| Interval | string | N | for the case of sampled fetch, the interval between samples | 1h |
| IncludeTop | boolean | N | Include the top item (Element / DB) in the search | False |
| Result | string/numeric | N | Auto = 0, SingleValue = 1, MultipleValues = 2 | Auto |
payload
Output
| Outputs | Type | Description | Example |
|---|---|---|---|
| object | object | object | |
| Server | string | ""NodeADSTestSystem"" | |
| Data | array | array[1] | |
| 0 | object | object | |
| Events | array | array[8] | |
| 0 | object | object | |
| T | int | 1632787200 | |
| V | string | ""Shutdown"" | |
| Q | boolean | false | |
| U | string | """" | |
| S | string | ""Shutdown"" | |
| N | string | ""Attribute1"" | |
| E | string | ""Test1"" | |
| P | string | ""\PIINTHESKY-DEV4\NodeTestCaseTarget\Parent\Test1"" | |
| Error | array | null |
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