await client.timeseries.syntheticQuery([
{
expression: "24 * TS{externalId='production/hour', aggregate='average', granularity='1d'}",
start: '48h-ago',
end: 'now',
limit: 100
}
]);{
"items": [
{
"datapoints": [
{
"timestamp": 1730204346000,
"value": 123
}
],
"isString": false
}
]
}Execute an on-the-fly synthetic query
await client.timeseries.syntheticQuery([
{
expression: "24 * TS{externalId='production/hour', aggregate='average', granularity='1d'}",
start: '48h-ago',
end: 'now',
limit: 100
}
]);{
"items": [
{
"datapoints": [
{
"timestamp": 1730204346000,
"value": 123
}
],
"isString": false
}
]
}Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
The list of queries to perform
1 - 10 elementsShow child attributes
List of datapoints for the specified queries.
Show child attributes
Was this page helpful?