5.238 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:

5.238.1 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

5.238.1.A 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 

© 2016 Adaptive Computing