Metrics
List and Create Metrics
Search metrics within tenant.
- Examples:
- https://{{server}}/api/v2/tenants/{{tenantId}}/metrics?queryString=scope:client
- https://{{server}}/api/v2/tenants/{{tenantId}}/metrics?queryString=metricName:esx_problem_vmfs_heartbeat_timedout
- https://{{server}}/api/v2/tenants/{{tenantId}}/metrics?queryString=groupName:vmware_vsan_host_net_rxPackets
Path Parameters
- tenantId
Describes clientId or mspId of the tenant
Query Parameters
- queryString
The query string to prepare query
- metricName
Filter on metric name
- groupName
Filter on metric group name
- displayName
Filter on metric display name
- scope
Filter metrics within scope. e.g. partner scope lists only partner scoped metrics.'global' scope lists metrics visible to all.
- Enum:
- clientpartnerglobalservice provider
Responses
- results
- totalResults
- pageNo
- pageSize
- totalPages
- sortOrder
- sortBy
Loading Examples...
Create new custom metric.
Path Parameters
- tenantId
Describes clientId or mspId of the tenant
Request Body
application/json
- metricName
- groupName
- type
- resourceType
- displayName
- unit
- displayUnit
- factor
- unitLabel
- description
- consolFunc
- displayByComponent
- displayOrder
- topMetric
- adapterType
Loading Examples...
Responses
200Metric already exists
Loading Examples...
Update a basic metric details by metric name
Path Parameters
- tenantId
Describes clientId or mspId of the tenant
Request Body
application/json
- metricName
- metricSource
- displayName
- description
- unit
- unitLabel
- groupName
- factor
- consolFunc
- displayByComponent
- displayOrder
- topMetric
- timeSeries
- warnRepeatCount
- criticalRepeatCount
- recommended
- useExpression
- unitConversionFactor
- status
- Enum:
- activedelete-pending
- type
- resourceType
Loading Examples...
Responses
- metricName
- metricSource
- displayName
- description
- unit
- unitLabel
- groupName
- factor
- consolFunc
- displayByComponent
- displayOrder
- topMetric
- timeSeries
- warnRepeatCount
- criticalRepeatCount
- recommended
- useExpression
- unitConversionFactor
- status
- Enum:
- activedelete-pending
- type
- resourceType
Loading Examples...