Reference

Alert rules this account's own history would support

GET
/api/v1/cost-alerts/suggestions/{account_id}

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

account_id*Account Id

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/cost-alerts/suggestions/string"
{
  "success": true,
  "timestamp": "2019-08-24T14:15:22Z",
  "data": {
    "generated_at": "string",
    "source": {
      "provider": "string",
      "account_id": "string",
      "alias": "string",
      "currency": "string",
      "connected_at": "string"
    },
    "baseline": {
      "months_available": 0,
      "last_closed_month": "string",
      "last_closed_spend": "string",
      "trailing_3m_avg": "string",
      "resource_ids_available": true,
      "maturity": "none",
      "calibration": [
        {
          "deviation_pct": 0,
          "firings": 0
        }
      ]
    },
    "suggestions": [
      {
        "id": "string",
        "name": "string",
        "params": {
          "kind": "budget",
          "budget": "string",
          "reset": "monthly",
          "rules": [
            {
              "amount": "string",
              "unit": "percent",
              "window": "within",
              "days": 1,
              "reference": "start_of_month"
            }
          ],
          "cost_basis": "unblended"
        },
        "source_id": "string"
      }
    ]
  }
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
Ask the FinOps Agent about your cloud spend