GET v1/Delivery/Repositories/{id}/Metrics/{interval}

User roles allowed to make this request: DomainAdministrator RepositoryManager

Permissions required to make this request: Repository.Read

Gets performance metrics for the repository

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The repository id.

integer

Required

interval

The time interval type (1: for the last day's metrics, 2: for the last week's metrics).

integer

Required

Body Parameters

None.

Response Information

Resource Description

The repository metrics.

Response Message

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.

Response Formats

application/json, text/json

Sample:
{
  "DTU": {
    "Value": 1.1,
    "Limit": 2.1,
    "TimeSeries": [
      {
        "TimeStamp": "2024-05-26T05:33:32.204408+00:00",
        "Value": 2.1
      },
      {
        "TimeStamp": "2024-05-26T05:33:32.204408+00:00",
        "Value": 2.1
      }
    ]
  },
  "Storage": {
    "Value": 1.1,
    "Limit": 2.1,
    "TimeSeries": [
      {
        "TimeStamp": "2024-05-26T05:33:32.204408+00:00",
        "Value": 2.1
      },
      {
        "TimeStamp": "2024-05-26T05:33:32.204408+00:00",
        "Value": 2.1
      }
    ]
  }
}

application/xml, text/xml

Sample:
<RepositoryMetricsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models.Delivery">
  <DTU>
    <Limit>2.1</Limit>
    <TimeSeries>
      <TimeMetricElementModel>
        <TimeStamp>2024-05-26T05:33:32.204408+00:00</TimeStamp>
        <Value>2.1</Value>
      </TimeMetricElementModel>
      <TimeMetricElementModel>
        <TimeStamp>2024-05-26T05:33:32.204408+00:00</TimeStamp>
        <Value>2.1</Value>
      </TimeMetricElementModel>
    </TimeSeries>
    <Value>1.1</Value>
  </DTU>
  <Storage>
    <Limit>2.1</Limit>
    <TimeSeries>
      <TimeMetricElementModel>
        <TimeStamp>2024-05-26T05:33:32.204408+00:00</TimeStamp>
        <Value>2.1</Value>
      </TimeMetricElementModel>
      <TimeMetricElementModel>
        <TimeStamp>2024-05-26T05:33:32.204408+00:00</TimeStamp>
        <Value>2.1</Value>
      </TimeMetricElementModel>
    </TimeSeries>
    <Value>1.1</Value>
  </Storage>
</RepositoryMetricsModel>