|
145 | 145 | }
|
146 | 146 | },
|
147 | 147 | "resources": {
|
| 148 | + "anomalies": { |
| 149 | + "methods": { |
| 150 | + "get": { |
| 151 | + "description": "Gets an anomaly for a billing account or a project.", |
| 152 | + "flatPath": "v1beta/billingAccounts/{billingAccountsId}/anomalies/{anomaliesId}", |
| 153 | + "httpMethod": "GET", |
| 154 | + "id": "cloudbilling.billingAccounts.anomalies.get", |
| 155 | + "parameterOrder": [ |
| 156 | + "name" |
| 157 | + ], |
| 158 | + "parameters": { |
| 159 | + "name": { |
| 160 | + "description": "Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}.", |
| 161 | + "location": "path", |
| 162 | + "pattern": "^billingAccounts/[^/]+/anomalies/[^/]+$", |
| 163 | + "required": true, |
| 164 | + "type": "string" |
| 165 | + } |
| 166 | + }, |
| 167 | + "path": "v1beta/{+name}", |
| 168 | + "response": { |
| 169 | + "$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly" |
| 170 | + }, |
| 171 | + "scopes": [ |
| 172 | + "https://www.googleapis.com/auth/cloud-billing", |
| 173 | + "https://www.googleapis.com/auth/cloud-billing.readonly", |
| 174 | + "https://www.googleapis.com/auth/cloud-platform" |
| 175 | + ] |
| 176 | + }, |
| 177 | + "list": { |
| 178 | + "description": "Lists anomalies for a billing account or a project.", |
| 179 | + "flatPath": "v1beta/billingAccounts/{billingAccountsId}/anomalies", |
| 180 | + "httpMethod": "GET", |
| 181 | + "id": "cloudbilling.billingAccounts.anomalies.list", |
| 182 | + "parameterOrder": [ |
| 183 | + "parent" |
| 184 | + ], |
| 185 | + "parameters": { |
| 186 | + "filter": { |
| 187 | + "description": "Optional. Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days' anomalies. Examples: - start_time = \"20231201\" AND end_time = \"20240120\" .", |
| 188 | + "location": "query", |
| 189 | + "type": "string" |
| 190 | + }, |
| 191 | + "pageSize": { |
| 192 | + "description": "Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.", |
| 193 | + "format": "int32", |
| 194 | + "location": "query", |
| 195 | + "type": "integer" |
| 196 | + }, |
| 197 | + "pageToken": { |
| 198 | + "description": "Optional. Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned.", |
| 199 | + "location": "query", |
| 200 | + "type": "string" |
| 201 | + }, |
| 202 | + "parent": { |
| 203 | + "description": "Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}.", |
| 204 | + "location": "path", |
| 205 | + "pattern": "^billingAccounts/[^/]+$", |
| 206 | + "required": true, |
| 207 | + "type": "string" |
| 208 | + } |
| 209 | + }, |
| 210 | + "path": "v1beta/{+parent}/anomalies", |
| 211 | + "response": { |
| 212 | + "$ref": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse" |
| 213 | + }, |
| 214 | + "scopes": [ |
| 215 | + "https://www.googleapis.com/auth/cloud-billing", |
| 216 | + "https://www.googleapis.com/auth/cloud-billing.readonly", |
| 217 | + "https://www.googleapis.com/auth/cloud-platform" |
| 218 | + ] |
| 219 | + } |
| 220 | + } |
| 221 | + }, |
148 | 222 | "services": {
|
149 | 223 | "methods": {
|
150 | 224 | "get": {
|
|
515 | 589 | }
|
516 | 590 | }
|
517 | 591 | },
|
| 592 | + "projects": { |
| 593 | + "resources": { |
| 594 | + "anomalies": { |
| 595 | + "methods": { |
| 596 | + "get": { |
| 597 | + "description": "Gets an anomaly for a billing account or a project.", |
| 598 | + "flatPath": "v1beta/projects/{projectsId}/anomalies/{anomaliesId}", |
| 599 | + "httpMethod": "GET", |
| 600 | + "id": "cloudbilling.projects.anomalies.get", |
| 601 | + "parameterOrder": [ |
| 602 | + "name" |
| 603 | + ], |
| 604 | + "parameters": { |
| 605 | + "name": { |
| 606 | + "description": "Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}.", |
| 607 | + "location": "path", |
| 608 | + "pattern": "^projects/[^/]+/anomalies/[^/]+$", |
| 609 | + "required": true, |
| 610 | + "type": "string" |
| 611 | + } |
| 612 | + }, |
| 613 | + "path": "v1beta/{+name}", |
| 614 | + "response": { |
| 615 | + "$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly" |
| 616 | + }, |
| 617 | + "scopes": [ |
| 618 | + "https://www.googleapis.com/auth/cloud-billing", |
| 619 | + "https://www.googleapis.com/auth/cloud-billing.readonly", |
| 620 | + "https://www.googleapis.com/auth/cloud-platform" |
| 621 | + ] |
| 622 | + }, |
| 623 | + "list": { |
| 624 | + "description": "Lists anomalies for a billing account or a project.", |
| 625 | + "flatPath": "v1beta/projects/{projectsId}/anomalies", |
| 626 | + "httpMethod": "GET", |
| 627 | + "id": "cloudbilling.projects.anomalies.list", |
| 628 | + "parameterOrder": [ |
| 629 | + "parent" |
| 630 | + ], |
| 631 | + "parameters": { |
| 632 | + "filter": { |
| 633 | + "description": "Optional. Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days' anomalies. Examples: - start_time = \"20231201\" AND end_time = \"20240120\" .", |
| 634 | + "location": "query", |
| 635 | + "type": "string" |
| 636 | + }, |
| 637 | + "pageSize": { |
| 638 | + "description": "Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.", |
| 639 | + "format": "int32", |
| 640 | + "location": "query", |
| 641 | + "type": "integer" |
| 642 | + }, |
| 643 | + "pageToken": { |
| 644 | + "description": "Optional. Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned.", |
| 645 | + "location": "query", |
| 646 | + "type": "string" |
| 647 | + }, |
| 648 | + "parent": { |
| 649 | + "description": "Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}.", |
| 650 | + "location": "path", |
| 651 | + "pattern": "^projects/[^/]+$", |
| 652 | + "required": true, |
| 653 | + "type": "string" |
| 654 | + } |
| 655 | + }, |
| 656 | + "path": "v1beta/{+parent}/anomalies", |
| 657 | + "response": { |
| 658 | + "$ref": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse" |
| 659 | + }, |
| 660 | + "scopes": [ |
| 661 | + "https://www.googleapis.com/auth/cloud-billing", |
| 662 | + "https://www.googleapis.com/auth/cloud-billing.readonly", |
| 663 | + "https://www.googleapis.com/auth/cloud-platform" |
| 664 | + ] |
| 665 | + } |
| 666 | + } |
| 667 | + } |
| 668 | + } |
| 669 | + }, |
518 | 670 | "skuGroups": {
|
519 | 671 | "methods": {
|
520 | 672 | "get": {
|
|
758 | 910 | }
|
759 | 911 | }
|
760 | 912 | },
|
761 |
| - "revision": "20231215", |
| 913 | + "revision": "20240311", |
762 | 914 | "rootUrl": "https://cloudbilling.googleapis.com/",
|
763 | 915 | "schemas": {
|
764 | 916 | "CacheFillRegions": {
|
|
1319 | 1471 | },
|
1320 | 1472 | "type": "object"
|
1321 | 1473 | },
|
| 1474 | + "GoogleCloudBillingAnomaliesV1betaAnomaly": { |
| 1475 | + "description": "Encapsulates an anomaly.", |
| 1476 | + "id": "GoogleCloudBillingAnomaliesV1betaAnomaly", |
| 1477 | + "properties": { |
| 1478 | + "detectionTime": { |
| 1479 | + "description": "Time that the anomaly was detected. Will be set to 00:00 google time of the detected date.", |
| 1480 | + "format": "google-datetime", |
| 1481 | + "type": "string" |
| 1482 | + }, |
| 1483 | + "deviation": { |
| 1484 | + "$ref": "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation", |
| 1485 | + "description": "Deviation information of the anomaly." |
| 1486 | + }, |
| 1487 | + "name": { |
| 1488 | + "description": "Identifier. Resource name for the anomaly.", |
| 1489 | + "type": "string" |
| 1490 | + }, |
| 1491 | + "resourceDisplayName": { |
| 1492 | + "description": "The display name of the resource that the anomaly occurred in/belongs to.", |
| 1493 | + "type": "string" |
| 1494 | + }, |
| 1495 | + "rootCauses": { |
| 1496 | + "description": "A list of causes which contribute to the anomaly.", |
| 1497 | + "items": { |
| 1498 | + "$ref": "GoogleCloudBillingAnomaliesV1betaCause" |
| 1499 | + }, |
| 1500 | + "type": "array" |
| 1501 | + }, |
| 1502 | + "scope": { |
| 1503 | + "description": "Indicate the scope of the anomaly.", |
| 1504 | + "enum": [ |
| 1505 | + "SCOPE_UNSPECIFIED", |
| 1506 | + "SCOPE_BILLING_ACCOUNT", |
| 1507 | + "SCOPE_PROJECT" |
| 1508 | + ], |
| 1509 | + "enumDescriptions": [ |
| 1510 | + "Default unspecified value.", |
| 1511 | + "Indicates the anomaly is for a billing account.", |
| 1512 | + "Indicates the anomaly is for a project." |
| 1513 | + ], |
| 1514 | + "type": "string" |
| 1515 | + }, |
| 1516 | + "severity": { |
| 1517 | + "description": "Severity of the anomaly. Unspecified if severity is not met/assigned.", |
| 1518 | + "enum": [ |
| 1519 | + "ANOMALY_SEVERITY_UNSPECIFIED", |
| 1520 | + "ANOMALY_SEVERITY_LOW", |
| 1521 | + "ANOMALY_SEVERITY_MEDIUM", |
| 1522 | + "ANOMALY_SEVERITY_HIGH" |
| 1523 | + ], |
| 1524 | + "enumDescriptions": [ |
| 1525 | + "Default unspecified value.", |
| 1526 | + "Indicates the anomaly's severity is low.", |
| 1527 | + "Indicates the anomaly's severity is medium.", |
| 1528 | + "Indicates the anomaly's severity is high." |
| 1529 | + ], |
| 1530 | + "type": "string" |
| 1531 | + }, |
| 1532 | + "updateTime": { |
| 1533 | + "description": "Output only. The most recent anomaly's last updated time.", |
| 1534 | + "format": "google-datetime", |
| 1535 | + "readOnly": true, |
| 1536 | + "type": "string" |
| 1537 | + } |
| 1538 | + }, |
| 1539 | + "type": "object" |
| 1540 | + }, |
| 1541 | + "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation": { |
| 1542 | + "description": "Encapsulates the deviation information.", |
| 1543 | + "id": "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation", |
| 1544 | + "properties": { |
| 1545 | + "actualSpend": { |
| 1546 | + "$ref": "Money", |
| 1547 | + "description": "The actual spend for the anomaly." |
| 1548 | + }, |
| 1549 | + "deviationAmount": { |
| 1550 | + "$ref": "Money", |
| 1551 | + "description": "The difference between the actual spend and expected spend's upper bound. Calculation formula: deviation_amount = actual_spend - expected_spend." |
| 1552 | + }, |
| 1553 | + "deviationPercentage": { |
| 1554 | + "description": "The percentage of devition amount from expected spend's upper bound. Calculation formula: deviation_percentage = divation_amount / expected_spend * 100.", |
| 1555 | + "format": "double", |
| 1556 | + "type": "number" |
| 1557 | + }, |
| 1558 | + "expectedSpend": { |
| 1559 | + "$ref": "Money", |
| 1560 | + "description": "The expected spend for the anomaly." |
| 1561 | + } |
| 1562 | + }, |
| 1563 | + "type": "object" |
| 1564 | + }, |
| 1565 | + "GoogleCloudBillingAnomaliesV1betaCause": { |
| 1566 | + "description": "Encapsulates the information of the reason which caused the anomaly.", |
| 1567 | + "id": "GoogleCloudBillingAnomaliesV1betaCause", |
| 1568 | + "properties": { |
| 1569 | + "causeType": { |
| 1570 | + "description": "The cause type.", |
| 1571 | + "enum": [ |
| 1572 | + "CAUSE_TYPE_UNSPECIFIED", |
| 1573 | + "CAUSE_TYPE_PROJECT", |
| 1574 | + "CAUSE_TYPE_SERVICE", |
| 1575 | + "CAUSE_TYPE_SKU", |
| 1576 | + "CAUSE_TYPE_LOCATION" |
| 1577 | + ], |
| 1578 | + "enumDescriptions": [ |
| 1579 | + "Default unspecified value.", |
| 1580 | + "Caused by a project.", |
| 1581 | + "Caused by a service.", |
| 1582 | + "Caused by a SKU.", |
| 1583 | + "Caused by a location." |
| 1584 | + ], |
| 1585 | + "type": "string" |
| 1586 | + }, |
| 1587 | + "deviation": { |
| 1588 | + "$ref": "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation", |
| 1589 | + "description": "The deviation information for the cause." |
| 1590 | + }, |
| 1591 | + "displayName": { |
| 1592 | + "description": "The display name of the cause.", |
| 1593 | + "type": "string" |
| 1594 | + }, |
| 1595 | + "resource": { |
| 1596 | + "description": "The resource name of the cause. project: projects/{project}. service: services/{service}. sku: services/{service}/skus/{sku}. location: locations/{location}.", |
| 1597 | + "type": "string" |
| 1598 | + }, |
| 1599 | + "subCauses": { |
| 1600 | + "description": "The sub causes.", |
| 1601 | + "items": { |
| 1602 | + "$ref": "GoogleCloudBillingAnomaliesV1betaCause" |
| 1603 | + }, |
| 1604 | + "type": "array" |
| 1605 | + } |
| 1606 | + }, |
| 1607 | + "type": "object" |
| 1608 | + }, |
| 1609 | + "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse": { |
| 1610 | + "description": "Response message for ListAnomalies.", |
| 1611 | + "id": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse", |
| 1612 | + "properties": { |
| 1613 | + "anomalies": { |
| 1614 | + "description": "The returned anomalies.", |
| 1615 | + "items": { |
| 1616 | + "$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly" |
| 1617 | + }, |
| 1618 | + "type": "array" |
| 1619 | + }, |
| 1620 | + "nextPageToken": { |
| 1621 | + "description": "Token that can be sent as `page_token` in the subsequent request to retrieve the next page. If this field is empty, there are no subsequent pages.", |
| 1622 | + "type": "string" |
| 1623 | + } |
| 1624 | + }, |
| 1625 | + "type": "object" |
| 1626 | + }, |
1322 | 1627 | "GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo": {
|
1323 | 1628 | "description": "Encapsulates the aggregation information such as aggregation level and interval for a billing account price.",
|
1324 | 1629 | "id": "GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo",
|
|
0 commit comments