Skip to content

Commit 76bfb79

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit fdabc88 of spec repo (#1226)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 4e5e45a commit 76bfb79

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+337
-101
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.5.1.dev2",
7-
"regenerated": "2021-11-25 13:33:55.111203",
8-
"spec_repo_commit": "71029a4"
7+
"regenerated": "2021-11-26 10:29:43.003956",
8+
"spec_repo_commit": "fdabc88"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-11-25 13:33:55.134478",
13-
"spec_repo_commit": "71029a4"
12+
"regenerated": "2021-11-26 10:29:43.022631",
13+
"spec_repo_commit": "fdabc88"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22848,8 +22848,10 @@ paths:
2284822848
x-codegen-request-body-name: body
2284922849
x-menu-order: 2
2285022850
x-undo:
22851-
operationId: TODO
22852-
parameters: []
22851+
operationId: DeleteTests
22852+
parameters:
22853+
- name: body
22854+
template: '{"public_ids": ["{{ public_id }}"]}'
2285322855
type: unsafe
2285422856
/api/v1/synthetics/tests/browser/{public_id}:
2285522857
get:

examples/v1/dashboards/DeleteDashboards.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func main() {
1818
Data: []datadog.DashboardBulkActionData{
1919
datadog.DashboardBulkActionData{
2020
Id: DASHBOARD_ID,
21-
Type: datadog.DashboardResourceType("dashboard"),
21+
Type: datadog.DASHBOARDRESOURCETYPE_DASHBOARD,
2222
},
2323
},
2424
}

examples/v1/monitors/CreateMonitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func main() {
1717

1818
body := datadog.Monitor{
1919
Name: datadog.PtrString("Example-Create_a_monitor_returns_OK_response"),
20-
Type: datadog.MonitorType("log alert"),
20+
Type: datadog.MONITORTYPE_LOG_ALERT,
2121
Query: `logs("service:foo AND type:error").index("main").rollup("count").by("source").last("5m") > 2`,
2222
Message: datadog.PtrString("some message Notify: @hipchat-channel"),
2323
Tags: &[]string{

examples/v1/monitors/ValidateMonitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
func main() {
1515
body := datadog.Monitor{
1616
Name: datadog.PtrString("Example-Validate_a_monitor_returns_OK_response"),
17-
Type: datadog.MonitorType("log alert"),
17+
Type: datadog.MONITORTYPE_LOG_ALERT,
1818
Query: `logs("service:foo AND type:error").index("main").rollup("count").by("source").last("5m") > 2`,
1919
Message: datadog.PtrString("some message Notify: @hipchat-channel"),
2020
Tags: &[]string{

examples/v1/notebooks/CreateNotebook.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,50 +27,50 @@ var x, y;
2727
x = 5;
2828
y = 6;
2929
` + "```",
30-
Type: datadog.NotebookMarkdownCellDefinitionType("markdown"),
30+
Type: datadog.NOTEBOOKMARKDOWNCELLDEFINITIONTYPE_MARKDOWN,
3131
},
3232
}},
33-
Type: datadog.NotebookCellResourceType("notebook_cells"),
33+
Type: datadog.NOTEBOOKCELLRESOURCETYPE_NOTEBOOK_CELLS,
3434
},
3535
datadog.NotebookCellCreateRequest{
3636
Attributes: datadog.NotebookCellCreateRequestAttributes{
3737
NotebookTimeseriesCellAttributes: &datadog.NotebookTimeseriesCellAttributes{
3838
Definition: datadog.TimeseriesWidgetDefinition{
3939
Requests: []datadog.TimeseriesWidgetRequest{
4040
datadog.TimeseriesWidgetRequest{
41-
DisplayType: datadog.WidgetDisplayType("line").Ptr(),
41+
DisplayType: datadog.WIDGETDISPLAYTYPE_LINE.Ptr(),
4242
Q: datadog.PtrString("avg:system.load.1{*}"),
4343
Style: &datadog.WidgetRequestStyle{
44-
LineType: datadog.WidgetLineType("solid").Ptr(),
45-
LineWidth: datadog.WidgetLineWidth("normal").Ptr(),
44+
LineType: datadog.WIDGETLINETYPE_SOLID.Ptr(),
45+
LineWidth: datadog.WIDGETLINEWIDTH_NORMAL.Ptr(),
4646
Palette: datadog.PtrString("dog_classic"),
4747
},
4848
},
4949
},
5050
ShowLegend: datadog.PtrBool(true),
51-
Type: datadog.TimeseriesWidgetDefinitionType("timeseries"),
51+
Type: datadog.TIMESERIESWIDGETDEFINITIONTYPE_TIMESERIES,
5252
Yaxis: &datadog.WidgetAxis{
5353
Scale: datadog.PtrString("linear"),
5454
},
5555
},
56-
GraphSize: datadog.NotebookGraphSize("m").Ptr(),
56+
GraphSize: datadog.NOTEBOOKGRAPHSIZE_MEDIUM.Ptr(),
5757
SplitBy: &datadog.NotebookSplitBy{
5858
Keys: []string{},
5959
Tags: []string{},
6060
},
6161
Time: *datadog.NewNullableNotebookCellTime(nil),
6262
}},
63-
Type: datadog.NotebookCellResourceType("notebook_cells"),
63+
Type: datadog.NOTEBOOKCELLRESOURCETYPE_NOTEBOOK_CELLS,
6464
},
6565
},
6666
Name: "Example-Create_a_notebook_returns_OK_response",
67-
Status: datadog.NotebookStatus("published").Ptr(),
67+
Status: datadog.NOTEBOOKSTATUS_PUBLISHED.Ptr(),
6868
Time: datadog.NotebookGlobalTime{
6969
NotebookRelativeTime: &datadog.NotebookRelativeTime{
70-
LiveSpan: datadog.WidgetLiveSpan("1h"),
70+
LiveSpan: datadog.WIDGETLIVESPAN_PAST_ONE_HOUR,
7171
}},
7272
},
73-
Type: datadog.NotebookResourceType("notebooks"),
73+
Type: datadog.NOTEBOOKRESOURCETYPE_NOTEBOOKS,
7474
},
7575
}
7676
ctx := datadog.NewDefaultContext(context.Background())

examples/v1/notebooks/UpdateNotebook.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ var x, y;
3232
x = 5;
3333
y = 6;
3434
` + "```",
35-
Type: datadog.NotebookMarkdownCellDefinitionType("markdown"),
35+
Type: datadog.NOTEBOOKMARKDOWNCELLDEFINITIONTYPE_MARKDOWN,
3636
},
3737
}},
38-
Type: datadog.NotebookCellResourceType("notebook_cells"),
38+
Type: datadog.NOTEBOOKCELLRESOURCETYPE_NOTEBOOK_CELLS,
3939
}},
4040
datadog.NotebookUpdateCell{
4141
NotebookCellCreateRequest: &datadog.NotebookCellCreateRequest{
@@ -44,39 +44,39 @@ y = 6;
4444
Definition: datadog.TimeseriesWidgetDefinition{
4545
Requests: []datadog.TimeseriesWidgetRequest{
4646
datadog.TimeseriesWidgetRequest{
47-
DisplayType: datadog.WidgetDisplayType("line").Ptr(),
47+
DisplayType: datadog.WIDGETDISPLAYTYPE_LINE.Ptr(),
4848
Q: datadog.PtrString("avg:system.load.1{*}"),
4949
Style: &datadog.WidgetRequestStyle{
50-
LineType: datadog.WidgetLineType("solid").Ptr(),
51-
LineWidth: datadog.WidgetLineWidth("normal").Ptr(),
50+
LineType: datadog.WIDGETLINETYPE_SOLID.Ptr(),
51+
LineWidth: datadog.WIDGETLINEWIDTH_NORMAL.Ptr(),
5252
Palette: datadog.PtrString("dog_classic"),
5353
},
5454
},
5555
},
5656
ShowLegend: datadog.PtrBool(true),
57-
Type: datadog.TimeseriesWidgetDefinitionType("timeseries"),
57+
Type: datadog.TIMESERIESWIDGETDEFINITIONTYPE_TIMESERIES,
5858
Yaxis: &datadog.WidgetAxis{
5959
Scale: datadog.PtrString("linear"),
6060
},
6161
},
62-
GraphSize: datadog.NotebookGraphSize("m").Ptr(),
62+
GraphSize: datadog.NOTEBOOKGRAPHSIZE_MEDIUM.Ptr(),
6363
SplitBy: &datadog.NotebookSplitBy{
6464
Keys: []string{},
6565
Tags: []string{},
6666
},
6767
Time: *datadog.NewNullableNotebookCellTime(nil),
6868
}},
69-
Type: datadog.NotebookCellResourceType("notebook_cells"),
69+
Type: datadog.NOTEBOOKCELLRESOURCETYPE_NOTEBOOK_CELLS,
7070
}},
7171
},
7272
Name: "Example-Update_a_notebook_returns_OK_response-updated",
73-
Status: datadog.NotebookStatus("published").Ptr(),
73+
Status: datadog.NOTEBOOKSTATUS_PUBLISHED.Ptr(),
7474
Time: datadog.NotebookGlobalTime{
7575
NotebookRelativeTime: &datadog.NotebookRelativeTime{
76-
LiveSpan: datadog.WidgetLiveSpan("1h"),
76+
LiveSpan: datadog.WIDGETLIVESPAN_PAST_ONE_HOUR,
7777
}},
7878
},
79-
Type: datadog.NotebookResourceType("notebooks"),
79+
Type: datadog.NOTEBOOKRESOURCETYPE_NOTEBOOKS,
8080
},
8181
}
8282
ctx := datadog.NewDefaultContext(context.Background())

examples/v1/service-checks/SubmitServiceCheck.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func main() {
1616
datadog.ServiceCheck{
1717
Check: "app.ok",
1818
HostName: "host",
19-
Status: datadog.ServiceCheckStatus(0),
19+
Status: datadog.SERVICECHECKSTATUS_OK,
2020
Tags: []string{
2121
"test:ExampleSubmitaServiceCheckreturnsPayloadacceptedresponse",
2222
},

examples/v1/service-level-objective-corrections/CreateSLOCorrection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ func main() {
1919
body := datadog.SLOCorrectionCreateRequest{
2020
Data: &datadog.SLOCorrectionCreateData{
2121
Attributes: &datadog.SLOCorrectionCreateRequestAttributes{
22-
Category: datadog.SLOCorrectionCategory("Scheduled Maintenance"),
22+
Category: datadog.SLOCORRECTIONCATEGORY_SCHEDULED_MAINTENANCE,
2323
Description: datadog.PtrString("Example-Create_an_SLO_correction_returns_OK_response"),
2424
End: datadog.PtrInt64(time.Now().Add(time.Hour * 1).Unix()),
2525
SloId: SLO_DATA_0_ID,
2626
Start: time.Now().Unix(),
2727
Timezone: datadog.PtrString("UTC"),
2828
},
29-
Type: datadog.SLOCorrectionType("correction"),
29+
Type: datadog.SLOCORRECTIONTYPE_CORRECTION,
3030
},
3131
}
3232
ctx := datadog.NewDefaultContext(context.Background())

examples/v1/service-level-objective-corrections/UpdateSLOCorrection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ func main() {
1919
body := datadog.SLOCorrectionUpdateRequest{
2020
Data: &datadog.SLOCorrectionUpdateData{
2121
Attributes: &datadog.SLOCorrectionUpdateRequestAttributes{
22-
Category: datadog.SLOCorrectionCategory("Deployment").Ptr(),
22+
Category: datadog.SLOCORRECTIONCATEGORY_DEPLOYMENT.Ptr(),
2323
Description: datadog.PtrString("Example-Update_an_SLO_correction_returns_OK_response"),
2424
End: datadog.PtrInt64(time.Now().Add(time.Hour * 1).Unix()),
2525
Start: datadog.PtrInt64(time.Now().Unix()),
2626
Timezone: datadog.PtrString("UTC"),
2727
},
28-
Type: datadog.SLOCorrectionType("correction").Ptr(),
28+
Type: datadog.SLOCORRECTIONTYPE_CORRECTION.Ptr(),
2929
},
3030
}
3131
ctx := datadog.NewDefaultContext(context.Background())

0 commit comments

Comments
 (0)