TrueSight API Documentation
OverviewAccountActionsAdministration
Alarms v1Alarms v2BatchingDashboards
DatasetsEventsExtended Metrics
HostgroupsGroupsMetersMetricsProduct
PluginsRelaysSourcesSynchronize Data
Tenants
Terms

GET/v1/measurements/:metric

Retrieves measurement readings.

Request path parameters

metric

The name of the metric

Request query parameters

source

Can be one of:

start

Unix timestamp for start of range.

end

Unix timestamp for end of range or if omitted, current time is used.

sample

Downsample rate in seconds or if ommitted, 1 second is used.

agg

An aggregate function to use if downsampling, can be one of:

Example request:

curl https://api.truesight.bmc.com/v1/measurements/CPU?start=1416863824973&end=1416863825973&source=wills-macbook-pro.local \
-X GET \
-u <email>:<api-token>

Example response:

Format of response -

[ [[timestamp,unused],[[sourcename,measurement],...]]... ]

{
   "timestamp": 1416866689799,
   "aggregates": [
      [
         [
            1416863824000,
            null
         ],
         [
            [
               "wills-macbook-pro.local",
               0.18144044280052185
            ],
            [
               "wills-macbook-pro-2.local",
               0.11838439851999283
            ]
         ]
      ],
      [
         [
            1416863825000,
            null
         ],
         [
            [
               "wills-macbook-pro.local",
               0.17499999701976776
            ],
            [
               "wills-macbook-pro-2.local",
               0.17337031662464142
            ]
         ]
      ]
   ]
}