TrueSight API Documentation
OverviewAccountActionsAdministration
Alarms v1Alarms v2BatchingDashboards
DatasetsEventsExtended Metrics
GroupsHostgroupsMetersMetricsProduct
PluginsRelaysSourcesSource-TagsSynchronize Data
Tenants
Terms

GET/v1/metrics

Retrieves the list of metrics in a project.

Request URL parameters

enabled

Filter the list of metrics to only return enabled metrics

custom

Filter the list of metrics to only return custom metrics

Example request:

curl https://api.truesight.bmc.com/v1/metrics \
-X GET \
-u <email>:<api-token>
curl https://api.truesight.bmc.com/v1/metrics?enabled=true \
-X GET \
-u <email>:<api-token>
curl https://api.truesight.bmc.com/v1/metrics?enabled=true&custom=true \
-X GET \
-u <email>:<api-token>

Response:

[
   {
      "name": "MYSQL_READS",
      "type": "DEVICE",
      "defaultAggregate": "AVG",
      "defaultResolutionMS": 1000,
      "description": "The number of MySQL read operations per seconds",
      "displayName": "MySQL Read Operations",
      "displayNameShort": "mysql-reads",
      "unit": "number",
      "isDisabled": false
   }
]