Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Commitment Orchestrator Events APIs

This contains APIs to fetch commitment orchestrator events data.

List event logs

post

Obtains list of events and the count of their occurences grouped by date

Path parameters
account_idstringRequired

Account Identifier for the Entity

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity

start_datestringRequired

Start time of the period

Example: 2021-10-19
end_datestringRequired

End time of the period

Example: 2021-10-19
Body
eventsstring[]Optional
group_bystringOptional
servicestring · enumOptional

Service to fetch the details for.

Default: Amazon Elastic Compute Cloud - ComputePossible values:
Responses
200

successful operation

application/json
tsintegerOptional

Response timestamp

successbooleanOptional

Specifies if the operation is successful

errorsstringOptional

Specifies the error if the operation failed

post/accounts/{account_id}/v1/events/chart
POST /gateway/accounts/{account_id}/v1/events/chart?accountIdentifier=text&start_date=2021-10-19&end_date=2021-10-19 HTTP/1.1
Host: app.harness.io
Content-Type: */*
Accept: */*
Content-Length: 88

{
  "events": [
    "text"
  ],
  "group_by": "text",
  "service": "Amazon Elastic Compute Cloud - Compute"
}
{
  "ts": 1,
  "success": true,
  "errors": "text",
  "response": {
    "total": 1,
    "pages": 1,
    "events": [
      {
        "date": "2023-07-14T00:59:00.619568Z",
        "count": 1,
        "event_type": "text"
      }
    ]
  }
}

List auto-renewal events

post

Returns auto-renewal activities (upcoming and completed) for the account, filtered by date range and optional cloud account, regions, and AWS service. Used to annotate charts such as Compute Coverage when savings or coverage dip around RI/SP renewals. If start_date and end_date are omitted, the server defaults to the last 30 days (UTC).

Path parameters
account_idstringRequired

Account Identifier for the Entity

Body
cloud_account_idsstring[]Optional

When non-empty, only renewal events for these cloud accounts are returned

start_datestring · dateOptional

Start of filter range (YYYY-MM-DD). Defaults to 30 days before today (UTC) when omitted.

Example: 2025-01-01
end_datestring · dateOptional

End of filter range (YYYY-MM-DD). Defaults to today (UTC) when omitted.

Example: 2025-01-31
regionsstring[]Optional

When non-empty, only events whose region matches one of these values

servicestring · enumOptional

AWS service type; defaults to Amazon Elastic Compute Cloud - Compute when omitted

Default: Amazon Elastic Compute Cloud - ComputePossible values:
Responses
200

successful operation

application/json
tsintegerOptional

Response timestamp

successbooleanOptional

Specifies if the operation is successful

errorsstring · nullableOptional

Specifies the error if the operation failed

post/accounts/{account_id}/v1/events/renewal_events
POST /gateway/accounts/{account_id}/v1/events/renewal_events HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 150

{
  "cloud_account_ids": [
    "text"
  ],
  "start_date": "2025-01-01",
  "end_date": "2025-01-31",
  "regions": [
    "text"
  ],
  "service": "Amazon Elastic Compute Cloud - Compute"
}
{
  "ts": 1,
  "success": true,
  "errors": "text",
  "response": {
    "events": [
      {
        "id": 1,
        "cloud_account_id": "text",
        "region": "text",
        "status": "text",
        "expiry_date": "2026-01-01",
        "renewal_scheduled_at": "2026-01-01T00:00:00.000Z",
        "updated_at": "2026-01-01T00:00:00.000Z",
        "description": "text"
      }
    ]
  }
}

RI recommendation cooldown schedule

get

Returns the configured minimum interval between RI recommendation engine runs and when the next run becomes eligible, based on the latest completed approval transaction for the account and service.

Path parameters
account_idstringRequired

Account Identifier for the Entity

Query parameters
servicestring · enumOptional

AWS Service type

Default: Amazon Elastic Compute Cloud - ComputePossible values:
Responses
200

successful operation

application/json
tsintegerOptional

Response timestamp

successbooleanOptional

Specifies if the operation is successful

errorsstringOptional

Specifies the error if the operation failed

get/accounts/{account_id}/v1/events/ri_recommendation_schedule
GET /gateway/accounts/{account_id}/v1/events/ri_recommendation_schedule HTTP/1.1
Host: app.harness.io
Accept: */*
{
  "ts": 1,
  "success": true,
  "errors": "text",
  "response": {
    "minIntervalDays": 1,
    "lastTransactionAt": "2026-01-01T00:00:00.000Z",
    "nextEligibleAt": "2026-01-01T00:00:00.000Z",
    "isEligibleNow": true,
    "lastRunCompletedAt": "2026-01-01T00:00:00.000Z",
    "recommendationsGenerated": 1,
    "noNewRecommendationsReason": "text",
    "noNewRecommendationsReasonMessage": "text"
  }
}

Last updated

Was this helpful?