POST Api/DataMart/Metrics

Post Metrics Data for a Single Entity

Request Information

URI Parameters

None.

Body Parameters

Contains the ProjectId and Entity identifiers and List of Metrics data rows

MetricsRequest
NameDescriptionTypeAdditional information
ProjectId

integer

None.

DataSourceName

string

None.

SourceKey1

string

None.

SourceKey2

string

None.

SourceKey3

string

None.

SourceKey4

string

None.

SourceKey5

string

None.

Metrics

Collection of Metrics

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "DataSourceName": "sample string 2",
  "SourceKey1": "sample string 3",
  "SourceKey2": "sample string 4",
  "SourceKey3": "sample string 5",
  "SourceKey4": "sample string 6",
  "SourceKey5": "sample string 7",
  "Metrics": [
    {
      "MetricName": "sample string 1",
      "MetricValue": "sample string 2",
      "DataDateTime": "2020-01-29T05:54:54.8399372+00:00"
    },
    {
      "MetricName": "sample string 1",
      "MetricValue": "sample string 2",
      "DataDateTime": "2020-01-29T05:54:54.8399372+00:00"
    }
  ]
}

application/xml, text/xml

Sample:
<MetricsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sumerian.CapacityPlanner.DAL.BusinessObjects.DataMart">
  <DataSourceName>sample string 2</DataSourceName>
  <Metrics>
    <Metrics>
      <DataDateTime>2020-01-29T05:54:54.8399372+00:00</DataDateTime>
      <MetricName>sample string 1</MetricName>
      <MetricValue>sample string 2</MetricValue>
    </Metrics>
    <Metrics>
      <DataDateTime>2020-01-29T05:54:54.8399372+00:00</DataDateTime>
      <MetricName>sample string 1</MetricName>
      <MetricValue>sample string 2</MetricValue>
    </Metrics>
  </Metrics>
  <ProjectId>1</ProjectId>
  <SourceKey1>sample string 3</SourceKey1>
  <SourceKey2>sample string 4</SourceKey2>
  <SourceKey3>sample string 5</SourceKey3>
  <SourceKey4>sample string 6</SourceKey4>
  <SourceKey5>sample string 7</SourceKey5>
</MetricsRequest>

Response Information

Resource Description

Void, only HTTP status code

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.