POST Api/DataMart/MetricTimeseries

Post Timeseries Data for a Single Metric

Request Information

URI Parameters

None.

Body Parameters

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

MetricTimeseriesRequest
NameDescriptionTypeAdditional information
ProjectId

integer

None.

DataSourceName

string

None.

SourceKey1

string

None.

SourceKey2

string

None.

SourceKey3

string

None.

SourceKey4

string

None.

SourceKey5

string

None.

MetricName

string

None.

MetricTimeseries

Collection of MetricTimeseries

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",
  "MetricName": "sample string 8",
  "MetricTimeseries": [
    {
      "MetricValue": "sample string 1",
      "DataDateTime": "2020-01-29T06:11:51.6234054+00:00"
    },
    {
      "MetricValue": "sample string 1",
      "DataDateTime": "2020-01-29T06:11:51.6234054+00:00"
    }
  ]
}

application/xml, text/xml

Sample:
<MetricTimeseriesRequest 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>
  <MetricName>sample string 8</MetricName>
  <MetricTimeseries>
    <MetricTimeseries>
      <DataDateTime>2020-01-29T06:11:51.6234054+00:00</DataDateTime>
      <MetricValue>sample string 1</MetricValue>
    </MetricTimeseries>
    <MetricTimeseries>
      <DataDateTime>2020-01-29T06:11:51.6234054+00:00</DataDateTime>
      <MetricValue>sample string 1</MetricValue>
    </MetricTimeseries>
  </MetricTimeseries>
  <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>
</MetricTimeseriesRequest>

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.