Static
addStatic
aggregateStatic
createStatic
createView name
Share link
Static
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
get// Body
const tasks = await getTaskReports({
taskColumns: [
{
columns: [
{
dataType: "string",
isNullable: true,
name: "TYPE",
tableName: "custom",
},
],
name: "DURATION_SECONDS",
tableName: "TASK_REPORTS_CLEANING_MODE",
yAxis: "DURATION_SECONDS",
},
],
});
All task reports
Static
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.
// Returns
[
{
name: "",
tableName: "TASK_REPORTS_CLEANING_MODE",
columns: [
{
name: "TYPE",
isNullable: true,
dataType: "string",
tableName: "custom"
}
]
}
]
List all available tables
Static
getOptional
tags: {}Static
getStatic
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
setGenerated using TypeDoc
Example