Reference

What one Savings Plan commitment would have done

Replays a commitment in dollars an hour over the payer's recent daily bill: the eligible on-demand spend it would have covered, the commitment it would have left unused, its utilization, coverage and monthly savings, day by day, beside the sized profiles and AWS's own figure. A day averages its hours, so every figure is an upper bound on the hourly truth. Free to every organization; never calls AWS. A Database plan is sold for 12 months No Upfront only. payer_account_id may be omitted when the organization has one payer. Missing data answers 200 with unavailable_reason.

GET
/api/v1/commitments/purchase-simulation

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

plan_type*Plan Type
commitment_hourly*Commitment Hourly
term_months?Term Months
payment_option?Payment Option
payer_account_id?|null
lookback_days?Lookback Days
curve?Curve

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/commitments/purchase-simulation?plan_type=compute&commitment_hourly=1"
{
  "success": true,
  "timestamp": "2019-08-24T14:15:22Z",
  "data": {
    "grain": "daily",
    "source": "cur",
    "basis": "public_on_demand",
    "currency": "USD",
    "payer_account_id": "string",
    "plan_type": "compute",
    "term_months": 0,
    "payment_option": "all_upfront",
    "unavailable_reason": "schema_pending",
    "window": {
      "first_day": "2019-08-24",
      "last_day": "2019-08-24",
      "days": 0,
      "missing_days": 0,
      "last_loaded": "2019-08-24"
    },
    "caveats": [
      "string"
    ],
    "profiles": {
      "conservative": {
        "commitment_hourly": 0,
        "uncapped_hourly": 0,
        "percentile": 0,
        "capped_by": [
          "string"
        ],
        "utilization_pct": 0,
        "coverage_pct": 0,
        "net_savings_monthly": 0,
        "net_savings_monthly_at_your_rates": 0
      },
      "balanced": {
        "commitment_hourly": 0,
        "uncapped_hourly": 0,
        "percentile": 0,
        "capped_by": [
          "string"
        ],
        "utilization_pct": 0,
        "coverage_pct": 0,
        "net_savings_monthly": 0,
        "net_savings_monthly_at_your_rates": 0
      },
      "max_savings": {
        "commitment_hourly": 0,
        "uncapped_hourly": 0,
        "percentile": 0,
        "capped_by": [
          "string"
        ],
        "utilization_pct": 0,
        "coverage_pct": 0,
        "net_savings_monthly": 0,
        "net_savings_monthly_at_your_rates": 0
      }
    },
    "profiles_inverted": false,
    "guards": [
      {
        "name": "string",
        "limit": 0,
        "applied": true,
        "basis": "string"
      }
    ],
    "aws": {
      "hourly_commitment_to_purchase": 0,
      "cap": 0,
      "cap_basis": "direct",
      "cap_applied": true,
      "lookback_days": 0,
      "fetched_on": "2019-08-24",
      "generated_at": "2019-08-24T14:15:22Z",
      "min_hourly_on_demand": 0,
      "avg_hourly_on_demand": 0,
      "estimated_utilization_pct": 0,
      "estimated_monthly_savings": 0,
      "basis_check_pct": 0,
      "basis_check_flagged": true,
      "gap": [
        {
          "code": "ledger_claims",
          "commitment_hourly": 0
        }
      ]
    },
    "ledger": [
      {
        "source": "queued_plan",
        "reference": "string",
        "commitment_hourly": 0,
        "on_demand_hourly": 0,
        "scope": {
          "family": "string",
          "region": "string"
        },
        "effective_from": "2019-08-24"
      }
    ],
    "ledger_hourly": 0,
    "stale_claims": [
      {
        "reference": "string",
        "commitment_hourly": 0,
        "on_demand_hourly": 0,
        "accepted_days_ago": 0
      }
    ],
    "unmapped_holders": [
      "string"
    ],
    "window_changes": [
      {
        "reference": "string",
        "kind": "string",
        "change": "started",
        "day": "2019-08-24"
      }
    ],
    "excluded": [
      {
        "reason": "string",
        "on_demand_daily": 0
      }
    ],
    "candidate": {
      "commitment_hourly": 0
    },
    "totals": {
      "eligible_on_demand": 0,
      "covered_on_demand": 0,
      "uncovered_on_demand": 0,
      "commitment_cost": 0,
      "used_commitment": 0,
      "wasted_commitment": 0,
      "utilization_pct": 0,
      "coverage_pct": 0,
      "net_savings_monthly": 0,
      "net_savings_monthly_at_your_rates": 0
    },
    "series": [
      {
        "day": "2019-08-24",
        "eligible_on_demand": 0,
        "covered_on_demand": 0,
        "uncovered_on_demand": 0,
        "used_commitment": 0,
        "wasted_commitment": 0,
        "commitment_equivalent_hourly": 0
      }
    ],
    "curve": [
      {
        "commitment_hourly": 0,
        "net_savings_monthly": 0,
        "utilization_pct": 0
      }
    ]
  }
}
{
  "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