Moab Web Services > Resources > Metric Types

Metric Types

This section describes behavior of the Metric Type object in Moab Web Services. It contains the URLs, request bodies, and responses delivered to and from MWS.

The Fields: Metric Types reference section contains the type and description of all fields in the Metric Type object.

Supported methods

Resource GET PUT POST DELETE
/rest/metric-types Get All Metric Types -- -- --

This topic contains these sections:

Getting Metric Types

The HTTP GET method is used to retrieve Metric Type information.

Quick reference

GET http://localhost:8080/mws/rest/metric-types?api-version=3

Get All Metric Types

URLs and parameters

GET http://localhost:8080/mws/rest/metric-types?api-version=3

See Global URL Parameters for available URL parameters.

Sample response

GET http://localhost:8080/mws/rest/metric-types?api-version=3&fields=id
------------------------------------

{
  "totalCount": 9,
  "resultCount": 9,
  "results":   [
    {"id": "vmcount"},
    {"id": "watts"},
    {"id": "pwatts"},
    {"id": "temp"},
    {"id": "cpu"},
    {"id": "mem"},
    {"id": "io"},
    {"id": "ccores"},
    {"id": "threads"}
  ]
}

Related Topics 

© 2015 Adaptive Computing