analytics

List cost composition

Retrieving the cost composition with respect to specified filters. Retrieving information such as the total cost for the given time range, and the top services by cost.

get/inventory/api/v2/analytics/spend/composition

Request

  • Base URL
    https://api.opengovernance.io
  • Auth
    API key in header Authorization

Query parameters

connectorstring[]

Connector type to filter by

connectionIdstring[]

Connection IDs to filter by - mutually exclusive with connectionGroup

connectionGroupstring[]

Connection group to filter by - mutually exclusive with connectionId

topinteger

How many top values to return default is 5

startTimeinteger

timestamp for start in epoch seconds

endTimeinteger

timestamp for end in epoch seconds

Response

OK

othersnumber
top_valuesobject
total_cost_valuenumber
total_countinteger

Example response

{
  "others": 100,
  "total_cost_value": 1000,
  "total_count": 10
}

Changes

No recorded changes to this operation across all 1 revision of this API.