|
| 1 | +/** |
| 2 | + * Copyright Elasticsearch B.V. and contributors |
| 3 | + * SPDX-License-Identifier: Apache-2.0 |
| 4 | + * |
| 5 | + * This file was auto generated by elastic/elastic-client-generator-js. |
| 6 | + * DO NOT MODIFY IT BY HAND. Instead, modify the source open API file, |
| 7 | + * and elastic/elastic-client-generator-js to regenerate this file again. |
| 8 | + */ |
| 9 | + |
| 10 | +import type { CloudApiDefinition } from '../types.ts' |
| 11 | + |
| 12 | +export const billingCostsAnalysisApis: CloudApiDefinition[] = [ |
| 13 | + { |
| 14 | + name: "get-costs-overview", |
| 15 | + namespace: "billing-costs-analysis", |
| 16 | + description: "Get costs overview for the organization. Currently unavailable in self-hosted ECE.", |
| 17 | + method: "GET", |
| 18 | + path: "/api/v1/billing/costs/{organization_id}", |
| 19 | + pathParams: [ |
| 20 | + { name: "organization_id", description: "Identifier for the organization", required: true }, |
| 21 | + ], |
| 22 | + queryParams: [ |
| 23 | + { name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month." }, |
| 24 | + { name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch costs. Defaults to the current date." }, |
| 25 | + ], |
| 26 | + }, |
| 27 | + { |
| 28 | + name: "get-costs-charts", |
| 29 | + namespace: "billing-costs-analysis", |
| 30 | + description: "Get charts for the organization. Currently unavailable in self-hosted ECE.", |
| 31 | + method: "GET", |
| 32 | + path: "/api/v1/billing/costs/{organization_id}/charts", |
| 33 | + pathParams: [ |
| 34 | + { name: "organization_id", description: "Identifier for the organization", required: true }, |
| 35 | + ], |
| 36 | + queryParams: [ |
| 37 | + { name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month." }, |
| 38 | + { name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch costs. Defaults to the current date." }, |
| 39 | + { name: "bucketing_strategy", type: "string", description: "The desired bucketing strategy for the charts. Defaults to `daily`." }, |
| 40 | + ], |
| 41 | + }, |
| 42 | + { |
| 43 | + name: "get-costs-deployments", |
| 44 | + namespace: "billing-costs-analysis", |
| 45 | + description: "Get deployments costs for the organization. Currently unavailable in self-hosted ECE.", |
| 46 | + method: "GET", |
| 47 | + path: "/api/v1/billing/costs/{organization_id}/deployments", |
| 48 | + pathParams: [ |
| 49 | + { name: "organization_id", description: "Identifier for the organization", required: true }, |
| 50 | + ], |
| 51 | + queryParams: [ |
| 52 | + { name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch activity. Defaults to start of current month." }, |
| 53 | + { name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch activity. Defaults to the current date." }, |
| 54 | + ], |
| 55 | + }, |
| 56 | + { |
| 57 | + name: "get-costs-charts-by-deployment", |
| 58 | + namespace: "billing-costs-analysis", |
| 59 | + description: "Get charts by deployment. Currently unavailable in self-hosted ECE.", |
| 60 | + method: "GET", |
| 61 | + path: "/api/v1/billing/costs/{organization_id}/deployments/{deployment_id}/charts", |
| 62 | + pathParams: [ |
| 63 | + { name: "organization_id", description: "Identifier for the organization", required: true }, |
| 64 | + { name: "deployment_id", description: "Id of a Deployment", required: true }, |
| 65 | + ], |
| 66 | + queryParams: [ |
| 67 | + { name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month." }, |
| 68 | + { name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch costs. Defaults to the current date." }, |
| 69 | + { name: "bucketing_strategy", type: "string", description: "The desired bucketing strategy for the charts. Defaults to `daily`." }, |
| 70 | + ], |
| 71 | + }, |
| 72 | + { |
| 73 | + name: "get-costs-items-by-deployment", |
| 74 | + namespace: "billing-costs-analysis", |
| 75 | + description: "Get itemized costs by deployments. Currently unavailable in self-hosted ECE.", |
| 76 | + method: "GET", |
| 77 | + path: "/api/v1/billing/costs/{organization_id}/deployments/{deployment_id}/items", |
| 78 | + pathParams: [ |
| 79 | + { name: "organization_id", description: "Identifier for the organization", required: true }, |
| 80 | + { name: "deployment_id", description: "Id of a Deployment", required: true }, |
| 81 | + ], |
| 82 | + queryParams: [ |
| 83 | + { name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month." }, |
| 84 | + { name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch costs. Defaults to the current date." }, |
| 85 | + ], |
| 86 | + }, |
| 87 | + { |
| 88 | + name: "get-costs-items", |
| 89 | + namespace: "billing-costs-analysis", |
| 90 | + description: "Get itemized costs for the organization. Currently unavailable in self-hosted ECE.", |
| 91 | + method: "GET", |
| 92 | + path: "/api/v1/billing/costs/{organization_id}/items", |
| 93 | + pathParams: [ |
| 94 | + { name: "organization_id", description: "Identifier for the organization", required: true }, |
| 95 | + ], |
| 96 | + queryParams: [ |
| 97 | + { name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month." }, |
| 98 | + { name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch costs. Defaults to the current date." }, |
| 99 | + ], |
| 100 | + }, |
| 101 | +] |
0 commit comments