GetApiKeyBudgetsData
Example Usage
typescript
import { GetApiKeyBudgetsData } from "@meetkai/mka1/models/operations";
let value: GetApiKeyBudgetsData = {
id: "<id>",
scope: "org",
scopeId: "<id>",
scopeOrgId: "<id>",
owner: "cluster",
period: "monthly",
limit: 4333.99,
thresholds: [
{
pct: 652515,
action: "block",
},
],
alertWebhookUrl: "https://shimmering-overcoat.biz",
spend: {
window: "<value>",
costSpent: 7311.25,
limit: 3727.24,
pct: 342301,
status: "ok",
},
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✔️ | N/A |
scope | operations.GetApiKeyBudgetsScope | ✔️ | N/A |
scopeId | string | ✔️ | N/A |
scopeOrgId | string | ✔️ | N/A |
owner | operations.GetApiKeyBudgetsOwner | ✔️ | N/A |
period | operations.GetApiKeyBudgetsPeriod | ✔️ | N/A |
limit | number | ✔️ | N/A |
thresholds | operations.GetApiKeyBudgetsThresholds[] | ✔️ | N/A |
alertWebhookUrl | string | ✔️ | N/A |
spend | operations.GetApiKeyBudgetsSpend | ✔️ | N/A |