SetApiKeyBudgetResponseBody
OK
Example Usage
typescript
import { SetApiKeyBudgetResponseBody } from "@meetkai/mka1/models/operations";
let value: SetApiKeyBudgetResponseBody = {
id: "<id>",
scope: "apikey",
scopeId: "<id>",
scopeOrgId: "<id>",
owner: "org",
period: "daily",
limit: 7466.55,
thresholds: [
{
pct: 578788,
action: "alert",
},
],
alertWebhookUrl: "https://yearly-thunderbolt.org/",
spend: {
window: "<value>",
costSpent: 6750.89,
limit: 6135.07,
pct: 292089,
status: "ok",
},
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✔️ | N/A |
scope | operations.SetApiKeyBudgetScope | ✔️ | N/A |
scopeId | string | ✔️ | N/A |
scopeOrgId | string | ✔️ | N/A |
owner | operations.SetApiKeyBudgetBudgetsOwner | ✔️ | N/A |
period | operations.SetApiKeyBudgetBudgetsPeriod | ✔️ | N/A |
limit | number | ✔️ | N/A |
thresholds | operations.SetApiKeyBudgetBudgetsThresholds[] | ✔️ | N/A |
alertWebhookUrl | string | ✔️ | N/A |
spend | operations.SetApiKeyBudgetSpend | ✔️ | N/A |