Skip to content

mdsp aggregates Command

Syntax:

mdsp aggregates

Help:

mdsp aggregates --help

Alternative form:

mc aggregates

(The CLI was using mc as default command name in older versions)

Description

list timeseries aggregates *

Usage

Parameter list:

Usage: mdsp aggregates|ag [options]

list timeseries aggregates *

Options:
 -i, --assetid Insights Hub asset id
 -n, --aspectname Insights Hub aspect name
 -f, --from begining of the time range to read (default: "2022-11-05T01:51:16.065Z")
 -t, --to end of the time range to read
 -r, --intervalvalue interval duration for the aggregates in interval units
 -u, --intervalunit interval duration unit [minute |hour |day |week | month]
 -s, --select comma separated list of variable names
 -d, --download [download] download aggregates to specified file
 -a, --all show all aggregates not just average, min, max, sum and sd
 -l, --local use localtime in aggregate list
 -c, --count number of aggregates in response
 -h, --formatted write JSON strings with indentation
 -p, --passkey passkey
 -y, --retry retry attempts before giving up (default: "3")
 -v, --verbose verbose output
 --help display help for command

Examples

Here are some examples of how to use the mdsp aggregates command:

 Examples:

 mdsp aggregates --asssetid 1234567..ef --aspectname Environment list recent aggregates for aspect Environment
 mdsp aggregates --asssetid 1234567..ef --aspectname Environment --select Temperature 
 list recent temperature aggregates 
 mdsp aggregates --asssetid 1234567..ef --aspectname Environment --select Temperature --all 
 list all recent temperature aggregates
 mdsp aggregates --asssetid 1234567..ef --aspectname Environment --intervalunit hour --intervalvalue 2 
 list all recent temperatre aggregates over every 2 hours

 Important:

 see https://documentation.mindsphere.io/MindSphere/apis/iot-iottsaggregates/api-iottsaggregates-samples-v4.html for documentation about the aggregate parameters

See Insights Hub API documentation for more information about Insights Hub APIs.