datadog_api_client 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +129 -41
- data/.generator/schemas/v2/openapi.yaml +36 -95
- data/CHANGELOG.md +15 -0
- data/examples/v1/dashboards/CreateDashboard_109450134.rb +44 -0
- data/examples/v1/service-level-objectives/SearchSLO.rb +0 -3
- data/lib/datadog_api_client/configuration.rb +0 -1
- data/lib/datadog_api_client/inflector.rb +3 -0
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +0 -6
- data/lib/datadog_api_client/v1/models/host_meta.rb +3 -3
- data/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb +105 -0
- data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +10 -10
- data/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb +11 -1
- data/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +16 -4
- data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +24 -1
- data/lib/datadog_api_client/v1/models/slo_state.rb +29 -0
- data/lib/datadog_api_client/v1/models/slo_status.rb +164 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +10 -10
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/monitors_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_data_source.rb +2 -1
- data/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb +1 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +6 -2
@@ -2850,6 +2850,8 @@ components:
|
|
2850
2850
|
type: string
|
2851
2851
|
values:
|
2852
2852
|
description: The array of numerical values for one formula or query.
|
2853
|
+
example:
|
2854
|
+
- 0.5
|
2853
2855
|
items:
|
2854
2856
|
description: An individual value for a given column and group-by.
|
2855
2857
|
example: 0.5
|
@@ -3274,6 +3276,8 @@ components:
|
|
3274
3276
|
$ref: '#/components/schemas/EventsQueryGroupBys'
|
3275
3277
|
indexes:
|
3276
3278
|
description: The indexes in which to search.
|
3279
|
+
example:
|
3280
|
+
- main
|
3277
3281
|
items:
|
3278
3282
|
description: The unique index name.
|
3279
3283
|
example: main
|
@@ -3325,6 +3329,8 @@ components:
|
|
3325
3329
|
$ref: '#/components/schemas/EventsQueryGroupBys'
|
3326
3330
|
indexes:
|
3327
3331
|
description: The indexes in which to search.
|
3332
|
+
example:
|
3333
|
+
- main
|
3328
3334
|
items:
|
3329
3335
|
description: The unique index name.
|
3330
3336
|
example: main
|
@@ -3670,6 +3676,9 @@ components:
|
|
3670
3676
|
values:
|
3671
3677
|
description: The array of tag values for each group found for the results
|
3672
3678
|
of the formulas or queries.
|
3679
|
+
example:
|
3680
|
+
- - production
|
3681
|
+
- - staging
|
3673
3682
|
items:
|
3674
3683
|
description: An individual tag value for a given group column.
|
3675
3684
|
items:
|
@@ -3683,6 +3692,7 @@ components:
|
|
3683
3692
|
description: List of tags that apply to a single response value.
|
3684
3693
|
items:
|
3685
3694
|
description: A single tag that applies to a single response value.
|
3695
|
+
example: env:production
|
3686
3696
|
type: string
|
3687
3697
|
type: array
|
3688
3698
|
HTTPLog:
|
@@ -7218,13 +7228,15 @@ components:
|
|
7218
7228
|
type: object
|
7219
7229
|
MetricsDataSource:
|
7220
7230
|
default: metrics
|
7221
|
-
description: A data source that is powered by the Metrics
|
7231
|
+
description: A data source that is powered by the Metrics platform.
|
7222
7232
|
enum:
|
7223
7233
|
- metrics
|
7234
|
+
- cloud_cost
|
7224
7235
|
example: metrics
|
7225
7236
|
type: string
|
7226
7237
|
x-enum-varnames:
|
7227
7238
|
- METRICS
|
7239
|
+
- CLOUD_COST
|
7228
7240
|
MetricsScalarQuery:
|
7229
7241
|
description: An individual scalar metrics query.
|
7230
7242
|
properties:
|
@@ -12487,6 +12499,7 @@ components:
|
|
12487
12499
|
security_monitoring_rules_read: Read Detection Rules.
|
12488
12500
|
security_monitoring_rules_write: Create and edit Detection Rules.
|
12489
12501
|
security_monitoring_signals_read: View Security Signals.
|
12502
|
+
timeseries_query: Query Timeseries data.
|
12490
12503
|
usage_read: View your organization's usage and usage attribution.
|
12491
12504
|
user_access_invite: Invite other users to your organization.
|
12492
12505
|
user_access_manage: Disable users, manage user roles, manage SAML-to-role
|
@@ -13192,10 +13205,6 @@ paths:
|
|
13192
13205
|
$ref: '#/components/responses/NotAuthorizedResponse'
|
13193
13206
|
'429':
|
13194
13207
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
13195
|
-
security:
|
13196
|
-
- apiKeyAuth: []
|
13197
|
-
appKeyAuth: []
|
13198
|
-
- AuthZ: []
|
13199
13208
|
summary: Aggregate pipelines events
|
13200
13209
|
tags:
|
13201
13210
|
- CI Visibility Pipelines
|
@@ -13271,10 +13280,6 @@ paths:
|
|
13271
13280
|
$ref: '#/components/responses/NotAuthorizedResponse'
|
13272
13281
|
'429':
|
13273
13282
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
13274
|
-
security:
|
13275
|
-
- apiKeyAuth: []
|
13276
|
-
appKeyAuth: []
|
13277
|
-
- AuthZ: []
|
13278
13283
|
summary: Get a list of pipelines events
|
13279
13284
|
tags:
|
13280
13285
|
- CI Visibility Pipelines
|
@@ -13312,10 +13317,6 @@ paths:
|
|
13312
13317
|
$ref: '#/components/responses/NotAuthorizedResponse'
|
13313
13318
|
'429':
|
13314
13319
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
13315
|
-
security:
|
13316
|
-
- apiKeyAuth: []
|
13317
|
-
appKeyAuth: []
|
13318
|
-
- AuthZ: []
|
13319
13320
|
summary: Search pipelines events
|
13320
13321
|
tags:
|
13321
13322
|
- CI Visibility Pipelines
|
@@ -13349,10 +13350,6 @@ paths:
|
|
13349
13350
|
$ref: '#/components/responses/NotAuthorizedResponse'
|
13350
13351
|
'429':
|
13351
13352
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
13352
|
-
security:
|
13353
|
-
- apiKeyAuth: []
|
13354
|
-
appKeyAuth: []
|
13355
|
-
- AuthZ: []
|
13356
13353
|
summary: Aggregate tests events
|
13357
13354
|
tags:
|
13358
13355
|
- CI Visibility Tests
|
@@ -13428,10 +13425,6 @@ paths:
|
|
13428
13425
|
$ref: '#/components/responses/NotAuthorizedResponse'
|
13429
13426
|
'429':
|
13430
13427
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
13431
|
-
security:
|
13432
|
-
- apiKeyAuth: []
|
13433
|
-
appKeyAuth: []
|
13434
|
-
- AuthZ: []
|
13435
13428
|
summary: Get a list of tests events
|
13436
13429
|
tags:
|
13437
13430
|
- CI Visibility Tests
|
@@ -13469,10 +13462,6 @@ paths:
|
|
13469
13462
|
$ref: '#/components/responses/NotAuthorizedResponse'
|
13470
13463
|
'429':
|
13471
13464
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
13472
|
-
security:
|
13473
|
-
- apiKeyAuth: []
|
13474
|
-
appKeyAuth: []
|
13475
|
-
- AuthZ: []
|
13476
13465
|
summary: Search tests events
|
13477
13466
|
tags:
|
13478
13467
|
- CI Visibility Tests
|
@@ -14408,9 +14397,6 @@ paths:
|
|
14408
14397
|
$ref: '#/components/responses/NotFoundResponse'
|
14409
14398
|
'429':
|
14410
14399
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14411
|
-
security:
|
14412
|
-
- apiKeyAuth: []
|
14413
|
-
appKeyAuth: []
|
14414
14400
|
summary: List Cloudflare accounts
|
14415
14401
|
tags:
|
14416
14402
|
- Cloudflare Integration
|
@@ -14438,9 +14424,6 @@ paths:
|
|
14438
14424
|
$ref: '#/components/responses/NotFoundResponse'
|
14439
14425
|
'429':
|
14440
14426
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14441
|
-
security:
|
14442
|
-
- apiKeyAuth: []
|
14443
|
-
appKeyAuth: []
|
14444
14427
|
summary: Add Cloudflare account
|
14445
14428
|
tags:
|
14446
14429
|
- Cloudflare Integration
|
@@ -14467,9 +14450,6 @@ paths:
|
|
14467
14450
|
$ref: '#/components/responses/NotFoundResponse'
|
14468
14451
|
'429':
|
14469
14452
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14470
|
-
security:
|
14471
|
-
- apiKeyAuth: []
|
14472
|
-
appKeyAuth: []
|
14473
14453
|
summary: Delete Cloudflare account
|
14474
14454
|
tags:
|
14475
14455
|
- Cloudflare Integration
|
@@ -14498,9 +14478,6 @@ paths:
|
|
14498
14478
|
$ref: '#/components/responses/NotFoundResponse'
|
14499
14479
|
'429':
|
14500
14480
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14501
|
-
security:
|
14502
|
-
- apiKeyAuth: []
|
14503
|
-
appKeyAuth: []
|
14504
14481
|
summary: Get Cloudflare account
|
14505
14482
|
tags:
|
14506
14483
|
- Cloudflare Integration
|
@@ -14535,9 +14512,6 @@ paths:
|
|
14535
14512
|
$ref: '#/components/responses/NotFoundResponse'
|
14536
14513
|
'429':
|
14537
14514
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14538
|
-
security:
|
14539
|
-
- apiKeyAuth: []
|
14540
|
-
appKeyAuth: []
|
14541
14515
|
summary: Update Cloudflare account
|
14542
14516
|
tags:
|
14543
14517
|
- Cloudflare Integration
|
@@ -14827,9 +14801,6 @@ paths:
|
|
14827
14801
|
$ref: '#/components/responses/NotFoundResponse'
|
14828
14802
|
'429':
|
14829
14803
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14830
|
-
security:
|
14831
|
-
- apiKeyAuth: []
|
14832
|
-
appKeyAuth: []
|
14833
14804
|
summary: List Fastly accounts
|
14834
14805
|
tags:
|
14835
14806
|
- Fastly Integration
|
@@ -14857,9 +14828,6 @@ paths:
|
|
14857
14828
|
$ref: '#/components/responses/NotFoundResponse'
|
14858
14829
|
'429':
|
14859
14830
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14860
|
-
security:
|
14861
|
-
- apiKeyAuth: []
|
14862
|
-
appKeyAuth: []
|
14863
14831
|
summary: Add Fastly account
|
14864
14832
|
tags:
|
14865
14833
|
- Fastly Integration
|
@@ -14881,9 +14849,6 @@ paths:
|
|
14881
14849
|
$ref: '#/components/responses/NotFoundResponse'
|
14882
14850
|
'429':
|
14883
14851
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14884
|
-
security:
|
14885
|
-
- apiKeyAuth: []
|
14886
|
-
appKeyAuth: []
|
14887
14852
|
summary: Delete Fastly account
|
14888
14853
|
tags:
|
14889
14854
|
- Fastly Integration
|
@@ -14907,9 +14872,6 @@ paths:
|
|
14907
14872
|
$ref: '#/components/responses/NotFoundResponse'
|
14908
14873
|
'429':
|
14909
14874
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14910
|
-
security:
|
14911
|
-
- apiKeyAuth: []
|
14912
|
-
appKeyAuth: []
|
14913
14875
|
summary: Get Fastly account
|
14914
14876
|
tags:
|
14915
14877
|
- Fastly Integration
|
@@ -14939,9 +14901,6 @@ paths:
|
|
14939
14901
|
$ref: '#/components/responses/NotFoundResponse'
|
14940
14902
|
'429':
|
14941
14903
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14942
|
-
security:
|
14943
|
-
- apiKeyAuth: []
|
14944
|
-
appKeyAuth: []
|
14945
14904
|
summary: Update Fastly account
|
14946
14905
|
tags:
|
14947
14906
|
- Fastly Integration
|
@@ -14967,9 +14926,6 @@ paths:
|
|
14967
14926
|
$ref: '#/components/responses/NotFoundResponse'
|
14968
14927
|
'429':
|
14969
14928
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
14970
|
-
security:
|
14971
|
-
- apiKeyAuth: []
|
14972
|
-
appKeyAuth: []
|
14973
14929
|
summary: List Fastly services
|
14974
14930
|
tags:
|
14975
14931
|
- Fastly Integration
|
@@ -14999,9 +14955,6 @@ paths:
|
|
14999
14955
|
$ref: '#/components/responses/NotFoundResponse'
|
15000
14956
|
'429':
|
15001
14957
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
15002
|
-
security:
|
15003
|
-
- apiKeyAuth: []
|
15004
|
-
appKeyAuth: []
|
15005
14958
|
summary: Add Fastly service
|
15006
14959
|
tags:
|
15007
14960
|
- Fastly Integration
|
@@ -15024,9 +14977,6 @@ paths:
|
|
15024
14977
|
$ref: '#/components/responses/NotFoundResponse'
|
15025
14978
|
'429':
|
15026
14979
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
15027
|
-
security:
|
15028
|
-
- apiKeyAuth: []
|
15029
|
-
appKeyAuth: []
|
15030
14980
|
summary: Delete Fastly service
|
15031
14981
|
tags:
|
15032
14982
|
- Fastly Integration
|
@@ -15051,9 +15001,6 @@ paths:
|
|
15051
15001
|
$ref: '#/components/responses/NotFoundResponse'
|
15052
15002
|
'429':
|
15053
15003
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
15054
|
-
security:
|
15055
|
-
- apiKeyAuth: []
|
15056
|
-
appKeyAuth: []
|
15057
15004
|
summary: Get Fastly service
|
15058
15005
|
tags:
|
15059
15006
|
- Fastly Integration
|
@@ -15084,9 +15031,6 @@ paths:
|
|
15084
15031
|
$ref: '#/components/responses/NotFoundResponse'
|
15085
15032
|
'429':
|
15086
15033
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
15087
|
-
security:
|
15088
|
-
- apiKeyAuth: []
|
15089
|
-
appKeyAuth: []
|
15090
15034
|
summary: Update Fastly service
|
15091
15035
|
tags:
|
15092
15036
|
- Fastly Integration
|
@@ -16706,11 +16650,6 @@ paths:
|
|
16706
16650
|
description: Forbidden
|
16707
16651
|
'429':
|
16708
16652
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
16709
|
-
security:
|
16710
|
-
- apiKeyAuth: []
|
16711
|
-
appKeyAuth: []
|
16712
|
-
- AuthZ:
|
16713
|
-
- monitors_configuration_policy_write
|
16714
16653
|
summary: Create a monitor configuration policy
|
16715
16654
|
tags:
|
16716
16655
|
- Monitors
|
@@ -16750,11 +16689,6 @@ paths:
|
|
16750
16689
|
description: Not Found
|
16751
16690
|
'429':
|
16752
16691
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
16753
|
-
security:
|
16754
|
-
- apiKeyAuth: []
|
16755
|
-
appKeyAuth: []
|
16756
|
-
- AuthZ:
|
16757
|
-
- monitors_configuration_policy_write
|
16758
16692
|
summary: Delete a monitor configuration policy
|
16759
16693
|
tags:
|
16760
16694
|
- Monitors
|
@@ -16843,11 +16777,6 @@ paths:
|
|
16843
16777
|
description: Unprocessable Entity
|
16844
16778
|
'429':
|
16845
16779
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
16846
|
-
security:
|
16847
|
-
- apiKeyAuth: []
|
16848
|
-
appKeyAuth: []
|
16849
|
-
- AuthZ:
|
16850
|
-
- monitors_configuration_policy_write
|
16851
16780
|
summary: Edit a monitor configuration policy
|
16852
16781
|
tags:
|
16853
16782
|
- Monitors
|
@@ -17010,16 +16939,22 @@ paths:
|
|
17010
16939
|
$ref: '#/components/responses/ForbiddenResponse'
|
17011
16940
|
'429':
|
17012
16941
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
16942
|
+
security:
|
16943
|
+
- apiKeyAuth: []
|
16944
|
+
appKeyAuth: []
|
16945
|
+
- AuthZ:
|
16946
|
+
- timeseries_query
|
17013
16947
|
summary: Query scalar data across multiple products
|
17014
16948
|
tags:
|
17015
16949
|
- Metrics
|
17016
16950
|
x-codegen-request-body-name: body
|
17017
|
-
x-unstable: '**Note**: This endpoint is GA for the metrics
|
17018
|
-
|
16951
|
+
x-unstable: '**Note**: This endpoint is GA for the metrics and cloud cost data
|
16952
|
+
sources. Logs is
|
17019
16953
|
|
17020
|
-
We are gradually onboarding support for more sources. If you have
|
16954
|
+
in beta. We are gradually onboarding support for more sources. If you have
|
16955
|
+
any
|
17021
16956
|
|
17022
|
-
contact [Datadog support](https://docs.datadoghq.com/help/).'
|
16957
|
+
feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
|
17023
16958
|
/api/v2/query/timeseries:
|
17024
16959
|
post:
|
17025
16960
|
description: 'Query timeseries data across various data sources and
|
@@ -17047,16 +16982,22 @@ paths:
|
|
17047
16982
|
$ref: '#/components/responses/ForbiddenResponse'
|
17048
16983
|
'429':
|
17049
16984
|
$ref: '#/components/responses/TooManyRequestsResponse'
|
16985
|
+
security:
|
16986
|
+
- apiKeyAuth: []
|
16987
|
+
appKeyAuth: []
|
16988
|
+
- AuthZ:
|
16989
|
+
- timeseries_query
|
17050
16990
|
summary: Query timeseries data across multiple products
|
17051
16991
|
tags:
|
17052
16992
|
- Metrics
|
17053
16993
|
x-codegen-request-body-name: body
|
17054
|
-
x-unstable: '**Note**: This endpoint is GA for the metrics
|
17055
|
-
|
16994
|
+
x-unstable: '**Note**: This endpoint is GA for the metrics and cloud cost data
|
16995
|
+
sources. Logs is
|
17056
16996
|
|
17057
|
-
We are gradually onboarding support for more sources. If you have
|
16997
|
+
in beta. We are gradually onboarding support for more sources. If you have
|
16998
|
+
any
|
17058
16999
|
|
17059
|
-
contact [Datadog support](https://docs.datadoghq.com/help/).'
|
17000
|
+
feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
|
17060
17001
|
/api/v2/roles:
|
17061
17002
|
get:
|
17062
17003
|
description: Returns all roles, including their names and their unique identifiers.
|
@@ -20037,8 +19978,8 @@ paths:
|
|
20037
19978
|
- description: 'Comma separated list of product families to retrieve. Available
|
20038
19979
|
families are `all`, `analyzed_logs`,
|
20039
19980
|
|
20040
|
-
`application_security`, `audit_logs`, `serverless`, `ci_app`, `
|
20041
|
-
`cws`, `dbm`, `fargate`,
|
19981
|
+
`application_security`, `audit_logs`, `serverless`, `ci_app`, `cloud_cost_management`,
|
19982
|
+
`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,
|
20042
19983
|
|
20043
19984
|
`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`,
|
20044
19985
|
`iot`,
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2.8.0 / 2023-02-15
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
* Set hosts versions as `type any` by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1240
|
7
|
+
### Added
|
8
|
+
* Add orchestrator section in IP ranges by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1232
|
9
|
+
* Add Cloud Cost Management fields to Usage Metering endpoints by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1236
|
10
|
+
* Add cloud-cost as a supported query data source by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1228
|
11
|
+
* Add Cloud Cost And Container Excl Agent Usage Fields by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1241
|
12
|
+
* Add SLO status and error budget remaining to search API by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1245
|
13
|
+
* Add `sort` field to SLOListWidgetQuery by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1243
|
14
|
+
|
15
|
+
|
16
|
+
**Full Changelog**: https://github.com/DataDog/datadog-api-client-ruby/compare/v2.7.0...v2.8.0
|
17
|
+
|
3
18
|
## 2.7.0 / 2023-02-08
|
4
19
|
|
5
20
|
### Fixed
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Create a new dashboard with slo list widget with sort
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V1::Dashboard.new({
|
7
|
+
title: "Example-Create_a_new_dashboard_with_slo_list_widget_with_sort",
|
8
|
+
description: "",
|
9
|
+
widgets: [
|
10
|
+
DatadogAPIClient::V1::Widget.new({
|
11
|
+
layout: DatadogAPIClient::V1::WidgetLayout.new({
|
12
|
+
x: 0,
|
13
|
+
y: 0,
|
14
|
+
width: 60,
|
15
|
+
height: 21,
|
16
|
+
}),
|
17
|
+
definition: DatadogAPIClient::V1::SLOListWidgetDefinition.new({
|
18
|
+
title_size: "16",
|
19
|
+
title_align: DatadogAPIClient::V1::WidgetTextAlign::LEFT,
|
20
|
+
type: DatadogAPIClient::V1::SLOListWidgetDefinitionType::SLO_LIST,
|
21
|
+
requests: [
|
22
|
+
DatadogAPIClient::V1::SLOListWidgetRequest.new({
|
23
|
+
query: DatadogAPIClient::V1::SLOListWidgetQuery.new({
|
24
|
+
query_string: "env:prod AND service:my-app",
|
25
|
+
limit: 75,
|
26
|
+
sort: [
|
27
|
+
DatadogAPIClient::V1::WidgetFieldSort.new({
|
28
|
+
column: "status.sli",
|
29
|
+
order: DatadogAPIClient::V1::WidgetSort::ASCENDING,
|
30
|
+
}),
|
31
|
+
],
|
32
|
+
}),
|
33
|
+
request_type: DatadogAPIClient::V1::SLOListWidgetRequestType::SLO_LIST,
|
34
|
+
}),
|
35
|
+
],
|
36
|
+
}),
|
37
|
+
}),
|
38
|
+
],
|
39
|
+
template_variables: [],
|
40
|
+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::FREE,
|
41
|
+
is_read_only: false,
|
42
|
+
notify_list: [],
|
43
|
+
})
|
44
|
+
p api_instance.create_dashboard(body)
|
@@ -1,9 +1,6 @@
|
|
1
1
|
# Search for SLOs returns "OK" response
|
2
2
|
|
3
3
|
require "datadog_api_client"
|
4
|
-
DatadogAPIClient::V2.configure do |config|
|
5
|
-
config.unstable_operations["v1.search_slo".to_sym] = true
|
6
|
-
end
|
7
4
|
api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new
|
8
5
|
|
9
6
|
# there is a valid "slo" in the system
|
@@ -175,7 +175,6 @@ module DatadogAPIClient
|
|
175
175
|
@http_proxypass = nil
|
176
176
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
177
177
|
@unstable_operations = {
|
178
|
-
"v1.search_slo": false,
|
179
178
|
"v2.list_events": false,
|
180
179
|
"v2.search_events": false,
|
181
180
|
"v2.create_incident": false,
|
@@ -174,6 +174,7 @@ module DatadogAPIClient
|
|
174
174
|
"v1.ip_prefixes_api" => "IPPrefixesAPI",
|
175
175
|
"v1.ip_prefixes_apm" => "IPPrefixesAPM",
|
176
176
|
"v1.ip_prefixes_logs" => "IPPrefixesLogs",
|
177
|
+
"v1.ip_prefixes_orchestrator" => "IPPrefixesOrchestrator",
|
177
178
|
"v1.ip_prefixes_process" => "IPPrefixesProcess",
|
178
179
|
"v1.ip_prefixes_synthetics" => "IPPrefixesSynthetics",
|
179
180
|
"v1.ip_prefixes_synthetics_private_locations" => "IPPrefixesSyntheticsPrivateLocations",
|
@@ -453,6 +454,8 @@ module DatadogAPIClient
|
|
453
454
|
"v1.slo_raw_error_budget_remaining" => "SLORawErrorBudgetRemaining",
|
454
455
|
"v1.slo_response" => "SLOResponse",
|
455
456
|
"v1.slo_response_data" => "SLOResponseData",
|
457
|
+
"v1.slo_state" => "SLOState",
|
458
|
+
"v1.slo_status" => "SLOStatus",
|
456
459
|
"v1.slo_threshold" => "SLOThreshold",
|
457
460
|
"v1.slo_timeframe" => "SLOTimeframe",
|
458
461
|
"v1.slo_type" => "SLOType",
|
@@ -615,12 +615,6 @@ module DatadogAPIClient::V1
|
|
615
615
|
# @option opts [Boolean] :include_facets Whether or not to return facet information in the response `[default=false]`.
|
616
616
|
# @return [Array<(SearchSLOResponse, Integer, Hash)>] SearchSLOResponse data, response status code and response headers
|
617
617
|
def search_slo_with_http_info(opts = {})
|
618
|
-
unstable_enabled = @api_client.config.unstable_operations["v1.search_slo".to_sym]
|
619
|
-
if unstable_enabled
|
620
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v1.search_slo")
|
621
|
-
else
|
622
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.search_slo"))
|
623
|
-
end
|
624
618
|
|
625
619
|
if @api_client.config.debugging
|
626
620
|
@api_client.config.logger.debug 'Calling API: ServiceLevelObjectivesAPI.search_slo ...'
|
@@ -99,18 +99,18 @@ module DatadogAPIClient::V1
|
|
99
99
|
:'agent_checks' => :'Array<Array<Object>>',
|
100
100
|
:'agent_version' => :'String',
|
101
101
|
:'cpu_cores' => :'Integer',
|
102
|
-
:'fbsd_v' => :'Array<
|
102
|
+
:'fbsd_v' => :'Array<Object>',
|
103
103
|
:'gohai' => :'String',
|
104
104
|
:'install_method' => :'HostMetaInstallMethod',
|
105
105
|
:'mac_v' => :'Array<Object>',
|
106
106
|
:'machine' => :'String',
|
107
|
-
:'nix_v' => :'Array<
|
107
|
+
:'nix_v' => :'Array<Object>',
|
108
108
|
:'platform' => :'String',
|
109
109
|
:'processor' => :'String',
|
110
110
|
:'python_v' => :'String',
|
111
111
|
:'socket_fqdn' => :'String',
|
112
112
|
:'socket_hostname' => :'String',
|
113
|
-
:'win_v' => :'Array<
|
113
|
+
:'win_v' => :'Array<Object>'
|
114
114
|
}
|
115
115
|
end
|
116
116
|
|
@@ -0,0 +1,105 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V1 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V1
|
20
|
+
# Available prefix information for the Orchestrator endpoints.
|
21
|
+
class IPPrefixesOrchestrator
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# List of IPv4 prefixes.
|
29
|
+
attr_accessor :prefixes_ipv4
|
30
|
+
|
31
|
+
# List of IPv6 prefixes.
|
32
|
+
attr_accessor :prefixes_ipv6
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
# @!visibility private
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'prefixes_ipv4' => :'prefixes_ipv4',
|
39
|
+
:'prefixes_ipv6' => :'prefixes_ipv6'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
# @!visibility private
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'prefixes_ipv4' => :'Array<String>',
|
48
|
+
:'prefixes_ipv6' => :'Array<String>'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# Initializes the object
|
53
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
54
|
+
# @!visibility private
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesOrchestrator` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesOrchestrator`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'prefixes_ipv4')
|
69
|
+
if (value = attributes[:'prefixes_ipv4']).is_a?(Array)
|
70
|
+
self.prefixes_ipv4 = value
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.key?(:'prefixes_ipv6')
|
75
|
+
if (value = attributes[:'prefixes_ipv6']).is_a?(Array)
|
76
|
+
self.prefixes_ipv6 = value
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Check to see if the all the properties in the model are valid
|
82
|
+
# @return true if the model is valid
|
83
|
+
# @!visibility private
|
84
|
+
def valid?
|
85
|
+
true
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param o [Object] Object to be compared
|
90
|
+
# @!visibility private
|
91
|
+
def ==(o)
|
92
|
+
return true if self.equal?(o)
|
93
|
+
self.class == o.class &&
|
94
|
+
prefixes_ipv4 == o.prefixes_ipv4 &&
|
95
|
+
prefixes_ipv6 == o.prefixes_ipv6
|
96
|
+
end
|
97
|
+
|
98
|
+
# Calculates hash code according to all attributes.
|
99
|
+
# @return [Integer] Hash code
|
100
|
+
# @!visibility private
|
101
|
+
def hash
|
102
|
+
[prefixes_ipv4, prefixes_ipv6].hash
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -40,6 +40,9 @@ module DatadogAPIClient::V1
|
|
40
40
|
# Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`.
|
41
41
|
attr_accessor :modified
|
42
42
|
|
43
|
+
# Available prefix information for the Orchestrator endpoints.
|
44
|
+
attr_accessor :orchestrator
|
45
|
+
|
43
46
|
# Available prefix information for the Process endpoints.
|
44
47
|
attr_accessor :process
|
45
48
|
|
@@ -64,6 +67,7 @@ module DatadogAPIClient::V1
|
|
64
67
|
:'apm' => :'apm',
|
65
68
|
:'logs' => :'logs',
|
66
69
|
:'modified' => :'modified',
|
70
|
+
:'orchestrator' => :'orchestrator',
|
67
71
|
:'process' => :'process',
|
68
72
|
:'synthetics' => :'synthetics',
|
69
73
|
:'synthetics_private_locations' => :'synthetics-private-locations',
|
@@ -81,6 +85,7 @@ module DatadogAPIClient::V1
|
|
81
85
|
:'apm' => :'IPPrefixesAPM',
|
82
86
|
:'logs' => :'IPPrefixesLogs',
|
83
87
|
:'modified' => :'String',
|
88
|
+
:'orchestrator' => :'IPPrefixesOrchestrator',
|
84
89
|
:'process' => :'IPPrefixesProcess',
|
85
90
|
:'synthetics' => :'IPPrefixesSynthetics',
|
86
91
|
:'synthetics_private_locations' => :'IPPrefixesSyntheticsPrivateLocations',
|
@@ -125,6 +130,10 @@ module DatadogAPIClient::V1
|
|
125
130
|
self.modified = attributes[:'modified']
|
126
131
|
end
|
127
132
|
|
133
|
+
if attributes.key?(:'orchestrator')
|
134
|
+
self.orchestrator = attributes[:'orchestrator']
|
135
|
+
end
|
136
|
+
|
128
137
|
if attributes.key?(:'process')
|
129
138
|
self.process = attributes[:'process']
|
130
139
|
end
|
@@ -164,6 +173,7 @@ module DatadogAPIClient::V1
|
|
164
173
|
apm == o.apm &&
|
165
174
|
logs == o.logs &&
|
166
175
|
modified == o.modified &&
|
176
|
+
orchestrator == o.orchestrator &&
|
167
177
|
process == o.process &&
|
168
178
|
synthetics == o.synthetics &&
|
169
179
|
synthetics_private_locations == o.synthetics_private_locations &&
|
@@ -175,7 +185,7 @@ module DatadogAPIClient::V1
|
|
175
185
|
# @return [Integer] Hash code
|
176
186
|
# @!visibility private
|
177
187
|
def hash
|
178
|
-
[agents, api, apm, logs, modified, process, synthetics, synthetics_private_locations, version, webhooks].hash
|
188
|
+
[agents, api, apm, logs, modified, orchestrator, process, synthetics, synthetics_private_locations, version, webhooks].hash
|
179
189
|
end
|
180
190
|
end
|
181
191
|
end
|