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 

© 2014 Adaptive Computing