Static addStatic aggregateStatic createStatic createStatic defaultStatic deleteStatic eventsOptional query: IEventQueryStatic getStatic getretrieves a list of all available data streams that can be used for running analytics. This function takes no arguments and returns a list of stream names that can be used for analyzing data.
// Returns
[
{
streamName: "$.agent.health",
streamType : "health"
},
{
streamName: "up.hours",
streamType : "numeric"
}
]
Static getStatic getRetrieves all rows sqlQuery is required
Static getStatic getStatic getStatic getStatic getStatic getStatic getStatic getStatic getStatic getStatic getRest ...ids: (string | string[])[]Static getStatic getStatic getStatic getStatic getStatic getretrieves a list of all available tables that can be used to create task reports. This function takes no arguments and returns a list of table names that can be used for creating task reports.
List all available tables
// Returns
[
{
name: "",
tableName: "TASK_REPORTS_CLEANING_MODE",
columns: [
{
name: "TYPE",
isNullable: true,
dataType: "string",
tableName: "custom"
}
]
}
]
Static getOptional tags: {}Optional latestOnly: booleanStatic getStatic groupStatic knownStatic listStatic patchStatic patchStatic patchStatic patchStatic queryRetrieves all stream rows
// Body
const analytics = await queryAnalytics({
aggregateLevel: "day",
orderByColumn: "TIMESTAMP",
streamColumns: [
{
streamName: "consumables_residual_percentage",
streamType: "numeric set",
},
],
});
//Returns
{
aggregates: [],
columns: [
{
name: 'TIMESTAMP',
isNullable: true,
dataType: 'string',
tableName: 'NUMERIC_SET_MAIN'
}
],
items: [
{
axisLabel: "suction_blade",
name: "consumables_residual_percentage",
tableName: "NUMERIC_SET_TEST",
time: "2020-04-20T08:00:00.000Z",
type: "numeric set",
unitLabel: "percent"
}
],
rowCount: 14,
rows: []
sqlText: "SELECT dateadd(day, dayofweek(TIMESTAMP), to_timestamp_tz('4/20/2020')) AS TIMESTAMP, SUM(VALUE)"
}
Static queryStatic queryStatic queryStatic getStatic getStatic getStatic getStatic getStatic setStatic setSets the group devices for multi-device (coherence group) contexts. This is typically called automatically when overview_devices message is received.
Array of device information from the host container
View name