From 0cc584b19149b03bda00dffcf13d7150b239aec1 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 24 Nov 2020 10:20:54 +0000 Subject: [PATCH] Regenerate client from commit 605e8f8 of spec repo --- .apigentools-info | 8 ++++---- api/v1/datadog/api/openapi.yaml | 12 ++++++++++++ api/v1/datadog/api_usage_metering.go | 8 ++++++++ api/v1/datadog/docs/UsageMeteringApi.md | 6 ++++-- 4 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 3e44b0878d2..870880cf706 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.3.0", - "regenerated": "2020-11-24 09:46:05.393174", - "spec_repo_commit": "8ea24b0" + "regenerated": "2020-11-24 10:20:46.934268", + "spec_repo_commit": "605e8f8" }, "v2": { "apigentools_version": "1.3.0", - "regenerated": "2020-11-24 09:46:11.549725", - "spec_repo_commit": "8ea24b0" + "regenerated": "2020-11-24 10:20:53.463651", + "spec_repo_commit": "605e8f8" } } } \ No newline at end of file diff --git a/api/v1/datadog/api/openapi.yaml b/api/v1/datadog/api/openapi.yaml index d04b1053f06..a158647225c 100644 --- a/api/v1/datadog/api/openapi.yaml +++ b/api/v1/datadog/api/openapi.yaml @@ -6670,6 +6670,18 @@ paths: type: string type: array style: form + - description: Maximum number of results to return. + explode: true + in: query + name: limit + required: false + schema: + default: 500 + format: int32 + maximum: 5000 + minimum: 1 + type: integer + style: form responses: "200": content: diff --git a/api/v1/datadog/api_usage_metering.go b/api/v1/datadog/api_usage_metering.go index 084683f6fa1..3d58010f117 100644 --- a/api/v1/datadog/api_usage_metering.go +++ b/api/v1/datadog/api_usage_metering.go @@ -4495,6 +4495,7 @@ type ApiGetUsageTopAvgMetricsRequest struct { ApiService *UsageMeteringApiService month *time.Time names *[]string + limit *int32 } func (r ApiGetUsageTopAvgMetricsRequest) Month(month time.Time) ApiGetUsageTopAvgMetricsRequest { @@ -4505,6 +4506,10 @@ func (r ApiGetUsageTopAvgMetricsRequest) Names(names []string) ApiGetUsageTopAvg r.names = &names return r } +func (r ApiGetUsageTopAvgMetricsRequest) Limit(limit int32) ApiGetUsageTopAvgMetricsRequest { + r.limit = &limit + return r +} func (r ApiGetUsageTopAvgMetricsRequest) Execute() (UsageTopAvgMetricsResponse, *_nethttp.Response, error) { return r.ApiService.GetUsageTopAvgMetricsExecute(r) @@ -4563,6 +4568,9 @@ func (a *UsageMeteringApiService) GetUsageTopAvgMetricsExecute(r ApiGetUsageTopA localVarQueryParams.Add("names", parameterToString(t, "multi")) } } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api/v1/datadog/docs/UsageMeteringApi.md b/api/v1/datadog/docs/UsageMeteringApi.md index 516c790af52..a4ae41061a1 100644 --- a/api/v1/datadog/docs/UsageMeteringApi.md +++ b/api/v1/datadog/docs/UsageMeteringApi.md @@ -2219,7 +2219,7 @@ Name | Type | Description | Notes ## GetUsageTopAvgMetrics -> UsageTopAvgMetricsResponse GetUsageTopAvgMetrics(ctx).Month(month).Names(names).Execute() +> UsageTopAvgMetricsResponse GetUsageTopAvgMetrics(ctx).Month(month).Names(names).Limit(limit).Execute() Get top 500 custom metrics by hourly average @@ -2254,11 +2254,12 @@ func main() { month := time.Now() // time.Time | Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for usage beginning at this hour. names := []string{"Inner_example"} // []string | Comma-separated list of metric names. (optional) + limit := int32(56) // int32 | Maximum number of results to return. (optional) (default to 500) configuration := datadog.NewConfiguration() api_client := datadog.NewAPIClient(configuration) - resp, r, err := api_client.UsageMeteringApi.GetUsageTopAvgMetrics(ctx).Month(month).Names(names).Execute() + resp, r, err := api_client.UsageMeteringApi.GetUsageTopAvgMetrics(ctx).Month(month).Names(names).Limit(limit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageTopAvgMetrics``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2281,6 +2282,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **month** | **time.Time** | Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for usage beginning at this hour. | **names** | **[]string** | Comma-separated list of metric names. | + **limit** | **int32** | Maximum number of results to return. | [default to 500] ### Return type