Skip to content

Commit 7c92846

Browse files
author
ci.datadog-api-spec
committed
pre-commit fixes
1 parent f994167 commit 7c92846

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

examples/v2/actions-datastores/BulkPutDatastoreItems.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ func main() {
1919
body := datadogV2.BulkPutAppsDatastoreItemsRequest{
2020
Data: &datadogV2.BulkPutAppsDatastoreItemsRequestData{
2121
Attributes: &datadogV2.BulkPutAppsDatastoreItemsRequestDataAttributes{
22-
Values: []map[string]interface{}{
22+
Values: []interface{}{
2323
{
24-
"data": "example data 1", "key": "value",
24+
"28173b88-1a0e-001e-28c0-7664b6410518": "key1",
25+
"value": "{'data': 'example data 1', 'key': 'value'}",
2526
},
2627
{
27-
"data": "example data 2", "key": "value",
28+
"28173b88-1a0e-001e-28c0-7664b6410518": "key2",
29+
"value": "{'data': 'example data 2', 'key': 'value'}",
2830
},
2931
},
3032
},

examples/v2/actions-datastores/CreateDatastoreFromImport.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ func main() {
1818
Attributes: &datadogV2.CreateAppsDatastoreFromImportRequestDataAttributes{
1919
Name: "datastore-name",
2020
PrimaryColumnName: "primaryKey",
21-
Values: []map[string]interface{}{
21+
Values: []interface{}{
2222
{
23-
"data": "example data 1", "key": "value",
23+
"primaryKey": "key1",
24+
"value": "{'data': 'example data 1', 'key': 'value'}",
2425
},
2526
{
26-
"data": "example data 2", "key": "value",
27+
"primaryKey": "key2",
28+
"value": "{'data': 'example data 2', 'key': 'value'}",
2729
},
2830
},
2931
},

0 commit comments

Comments
 (0)