Cisco Prime Infrastructure API
Prime Infrastructure API Documentation

GET apiHealth/requestCountTrend

Resource Information

Rate Limiting?

Yes

Sorting?

No

Paging?

No

Filtering?

No

Response Formats

xml

json

User Group

NBI Read

HTTP Methods

GET

Reports the number of requests, grouped by day and HTTP status, for all services or a given service if specified, over the last seven days.

Resource URL

/webacs/api/v1/op/apiHealth/requestCountTrend

Since : 2.2

Request Parameters

Type Attribute Name Source Description

String

service optional

query

The service path. If unspecified, data will be returned for all services.

Sample Payloads

Sample payloads are for information only. They are automatically generated and the values included may not be representative of actual valid data values.

Sample XML Response Payload

https://szier-m8-106.cisco.com/webacs/api/v1/op/apiHealth/requestCountTrend

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<mgmtResponse rootUrl="https://szier-m8-106.cisco.com/webacs/api/v1/op/" requestUrl="https://szier-m8-106.cisco.com/webacs/api/v1/op/apiHealth/requestCountTrend" responseType="operation">
    <apiRequestCountTrend>
        <responseCount>2</responseCount>
        <responseStatus>1</responseStatus>
        <startOfDay>2</startOfDay>
    </apiRequestCountTrend>
</mgmtResponse>

Sample JSON Response Payload

https://szier-m8-106.cisco.com/webacs/api/v1/op/apiHealth/requestCountTrend.json

{
  "mgmtResponse" : {
    "@rootUrl" : "https : \/\/szier-m8-106.cisco.com\/webacs\/api\/v1\/op\/",
    "@requestUrl" : "https : \/\/szier-m8-106.cisco.com\/webacs\/api\/v1\/op\/apiHealth\/requestCountTrend",
    "@responseType" : "operation",
    "apiRequestCountTrend" : {
      "responseCount" : 2,
      "responseStatus" : 1,
      "startOfDay" : 2
    }
  }
}