-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 0c154010 of spec repo (#1410)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
- Loading branch information
1 parent
6bdfef2
commit 85f41ae
Showing
32 changed files
with
586 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// List tag configurations with configured filter returns "Success" response | ||
|
||
package main | ||
|
||
import ( | ||
"context" | ||
"encoding/json" | ||
"fmt" | ||
"os" | ||
|
||
datadog "github.com/DataDog/datadog-api-client-go/api/v2/datadog" | ||
) | ||
|
||
func main() { | ||
ctx := datadog.NewDefaultContext(context.Background()) | ||
configuration := datadog.NewConfiguration() | ||
configuration.SetUnstableOperationEnabled("ListTagConfigurations", true) | ||
apiClient := datadog.NewAPIClient(configuration) | ||
resp, r, err := apiClient.MetricsApi.ListTagConfigurations(ctx, *datadog.NewListTagConfigurationsOptionalParameters().WithFilterConfigured(true)) | ||
|
||
if err != nil { | ||
fmt.Fprintf(os.Stderr, "Error when calling `MetricsApi.ListTagConfigurations`: %v\n", err) | ||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) | ||
} | ||
|
||
responseContent, _ := json.MarshalIndent(resp, "", " ") | ||
fmt.Fprintf(os.Stdout, "Response from `MetricsApi.ListTagConfigurations`:\n%s\n", responseContent) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ure_Metrics/Scenario_Configure_tags_for_multiple_metrics_returns_Accepted_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2022-02-11T14:39:32.612Z | ||
2022-03-29T16:50:50.982Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...os/v2/Feature_Metrics/Scenario_Create_a_tag_configuration_returns_Created_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2022-03-28T20:32:26.156Z |
54 changes: 54 additions & 0 deletions
54
...rios/v2/Feature_Metrics/Scenario_Create_a_tag_configuration_returns_Created_response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
interactions: | ||
- request: | ||
body: | | ||
{"series":[{"metric":"TestCreateatagconfigurationreturnsCreatedresponse1648499546","points":[[1648499546,1.1]],"tags":["test:ExampleSubmitmetricsreturnsPayloadacceptedresponse"],"type":"gauge"}]} | ||
form: {} | ||
headers: | ||
Accept: | ||
- text/json | ||
Content-Type: | ||
- text/json | ||
method: POST | ||
url: https://api.datadoghq.com/api/v1/series | ||
response: | ||
body: '{"status": "ok"}' | ||
code: 202 | ||
duration: '' | ||
headers: | ||
Content-Type: | ||
- text/json | ||
status: 202 Accepted | ||
- request: | ||
body: | | ||
{"data":{"attributes":{"metric_type":"gauge","tags":["app","datacenter"]},"id":"TestCreateatagconfigurationreturnsCreatedresponse1648499546","type":"manage_tags"}} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
method: POST | ||
url: https://api.datadoghq.com/api/v2/metrics/TestCreateatagconfigurationreturnsCreatedresponse1648499546/tags | ||
response: | ||
body: '{"data":{"type":"manage_tags","id":"TestCreateatagconfigurationreturnsCreatedresponse1648499546","attributes":{"tags":["datacenter","app"],"created_at":"2022-03-28T20:32:28.716208+00:00","modified_at":"2022-03-28T20:32:28.716208+00:00","metric_type":"gauge","aggregations":[{"space":"avg","time":"avg"}]}}}' | ||
code: 201 | ||
duration: '' | ||
headers: | ||
Content-Type: | ||
- application/json | ||
status: 201 Created | ||
- request: | ||
body: '' | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
method: DELETE | ||
url: https://api.datadoghq.com/api/v2/metrics/TestCreateatagconfigurationreturnsCreatedresponse1648499546/tags | ||
response: | ||
body: '' | ||
code: 204 | ||
duration: '' | ||
headers: {} | ||
status: 204 No Content | ||
version: 1 |
1 change: 1 addition & 0 deletions
1
...v2/Feature_Metrics/Scenario_Delete_a_tag_configuration_returns_No_Content_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2022-03-29T13:29:02.583Z |
71 changes: 71 additions & 0 deletions
71
...s/v2/Feature_Metrics/Scenario_Delete_a_tag_configuration_returns_No_Content_response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
interactions: | ||
- request: | ||
body: | | ||
{"series":[{"metric":"TestDeleteatagconfigurationreturnsNoContentresponse1648560542","points":[[1648560542,1.1]],"tags":["test:ExampleSubmitmetricsreturnsPayloadacceptedresponse"],"type":"gauge"}]} | ||
form: {} | ||
headers: | ||
Accept: | ||
- text/json | ||
Content-Type: | ||
- text/json | ||
method: POST | ||
url: https://api.datadoghq.com/api/v1/series | ||
response: | ||
body: '{"status": "ok"}' | ||
code: 202 | ||
duration: '' | ||
headers: | ||
Content-Type: | ||
- text/json | ||
status: 202 Accepted | ||
- request: | ||
body: | | ||
{"data":{"attributes":{"metric_type":"gauge","tags":["app","datacenter","TestDeleteatagconfigurationreturnsNoContentresponse1648560542"]},"id":"TestDeleteatagconfigurationreturnsNoContentresponse1648560542","type":"manage_tags"}} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
method: POST | ||
url: https://api.datadoghq.com/api/v2/metrics/TestDeleteatagconfigurationreturnsNoContentresponse1648560542/tags | ||
response: | ||
body: '{"data":{"type":"manage_tags","id":"TestDeleteatagconfigurationreturnsNoContentresponse1648560542","attributes":{"tags":["datacenter","app","TestDeleteatagconfigurationreturnsNoContentresponse1648560542"],"created_at":"2022-03-29T13:29:03.991675+00:00","modified_at":"2022-03-29T13:29:03.991675+00:00","metric_type":"gauge","aggregations":[{"space":"avg","time":"avg"}]}}}' | ||
code: 201 | ||
duration: '' | ||
headers: | ||
Content-Type: | ||
- application/json | ||
status: 201 Created | ||
- request: | ||
body: '' | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
method: DELETE | ||
url: https://api.datadoghq.com/api/v2/metrics/TestDeleteatagconfigurationreturnsNoContentresponse1648560542/tags | ||
response: | ||
body: '' | ||
code: 204 | ||
duration: '' | ||
headers: {} | ||
status: 204 No Content | ||
- request: | ||
body: '' | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
method: DELETE | ||
url: https://api.datadoghq.com/api/v2/metrics/TestDeleteatagconfigurationreturnsNoContentresponse1648560542/tags | ||
response: | ||
body: '{"errors": ["TestDeleteatagconfigurationreturnsNoContentresponse1648560542 | ||
not found"]}' | ||
code: 404 | ||
duration: '' | ||
headers: | ||
Content-Type: | ||
- application/json | ||
status: 404 Not Found | ||
version: 1 |
1 change: 1 addition & 0 deletions
1
...rics/Scenario_List_distinct_metric_volumes_by_metric_name_returns_Success_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2022-04-01T20:32:14.721Z |
70 changes: 70 additions & 0 deletions
70
...etrics/Scenario_List_distinct_metric_volumes_by_metric_name_returns_Success_response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
interactions: | ||
- request: | ||
body: | | ||
{"series":[{"metric":"TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648845134","points":[[1648845134,1.1]],"tags":["test:ExampleSubmitmetricsreturnsPayloadacceptedresponse"],"type":"gauge"}]} | ||
form: {} | ||
headers: | ||
Accept: | ||
- text/json | ||
Content-Type: | ||
- text/json | ||
method: POST | ||
url: https://api.datadoghq.com/api/v1/series | ||
response: | ||
body: '{"status": "ok"}' | ||
code: 202 | ||
duration: '' | ||
headers: | ||
Content-Type: | ||
- text/json | ||
status: 202 Accepted | ||
- request: | ||
body: | | ||
{"data":{"attributes":{"metric_type":"gauge","tags":["app","datacenter","TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648845134"]},"id":"TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648845134","type":"manage_tags"}} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
method: POST | ||
url: https://api.datadoghq.com/api/v2/metrics/TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648845134/tags | ||
response: | ||
body: '{"data":{"type":"manage_tags","id":"TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648845134","attributes":{"tags":["datacenter","app","TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648845134"],"created_at":"2022-04-01T20:32:15.216397+00:00","modified_at":"2022-04-01T20:32:15.216397+00:00","metric_type":"gauge","aggregations":[{"space":"avg","time":"avg"}]}}}' | ||
code: 201 | ||
duration: '' | ||
headers: | ||
Content-Type: | ||
- application/json | ||
status: 201 Created | ||
- request: | ||
body: '' | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
method: GET | ||
url: https://api.datadoghq.com/api/v2/metrics/TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648845134/volumes | ||
response: | ||
body: '{"data":{"type":"metric_volumes","id":"TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648845134","attributes":{"indexed_volume":0,"ingested_volume":0}}}' | ||
code: 200 | ||
duration: '' | ||
headers: | ||
Content-Type: | ||
- application/json | ||
status: 200 OK | ||
- request: | ||
body: '' | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
method: DELETE | ||
url: https://api.datadoghq.com/api/v2/metrics/TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648845134/tags | ||
response: | ||
body: '' | ||
code: 204 | ||
duration: '' | ||
headers: {} | ||
status: 204 No Content | ||
version: 1 |
1 change: 1 addition & 0 deletions
1
...2/Feature_Metrics/Scenario_List_tag_configuration_by_name_returns_Success_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2022-03-29T14:55:17.199Z |
Oops, something went wrong.