GET api/metrics?projectId={projectId}&baselineId={baselineId}

Returns an array of metrics for a given project and baseline combination.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectId

The id for the project you would like to see a list of metrics for

integer

Required

baselineId

The specific baseline id of the specific set of data.

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Metric
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

UnitofMeasurement

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "CPU",
    "UnitofMeasurement": "Mhz"
  },
  {
    "Id": 2,
    "Name": "Memory",
    "UnitofMeasurement": "MB"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMetric xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sumerian.API.Controllers">
  <Metric>
    <Id>1</Id>
    <Name>CPU</Name>
    <UnitofMeasurement>Mhz</UnitofMeasurement>
  </Metric>
  <Metric>
    <Id>2</Id>
    <Name>Memory</Name>
    <UnitofMeasurement>MB</UnitofMeasurement>
  </Metric>
</ArrayOfMetric>