Resource

Retrieves trend summary of infrastructure resources

Retrieves trend summary of infrastructure resources

post/v1/resource/dashboard/trend/summary

Request

  • Base URL
    //api.corestack.io (relative, and the document’s source URL is not known)
  • URL
    //api.corestack.io/v1/resource/dashboard/trend/summary
  • Auth
    API key in header X-Auth-Token

Request body

start_datestring date-time required

Start date of the trend analysis period.

end_datestring date-time

End date of the trend analysis period.

granularity'day' | 'month' required

Granularity for aggregating resource trend data

group_by'category' | 'change_status' required

Grouping criteria for the trend data.

Example request

{
  "granularity": "day",
  "group_by": "category"
}

Response

Success

datestring date

Date of the trend data point.

categorystring

Resource category

change_status'added' | 'unchanged' | 'modified' | 'deleted'

Change status of the infrastructure resource

countinteger

Count of resources for the given date and category.

Example response

[
  {
    "change_status": "added"
  }
]

Changes

No recorded changes to this operation across all 2 revisions of this API.