datadog_api_client 2.8.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +66 -5
  4. data/.generator/schemas/v2/openapi.yaml +860 -20
  5. data/.generator/src/generator/formatter.py +1 -0
  6. data/.generator/src/generator/templates/model_base.j2 +8 -4
  7. data/CHANGELOG.md +24 -0
  8. data/examples/v1/dashboards/CreateDashboard_2800096921.rb +62 -0
  9. data/examples/v1/dashboards/CreateDashboard_3195475781.rb +32 -0
  10. data/examples/v2/incidents/CreateIncidentIntegration.rb +31 -0
  11. data/examples/v2/incidents/DeleteIncidentIntegration.rb +14 -0
  12. data/examples/v2/incidents/GetIncidentIntegration.rb +14 -0
  13. data/examples/v2/incidents/ListIncidentIntegrations.rb +11 -0
  14. data/examples/v2/incidents/UpdateIncidentIntegration.rb +34 -0
  15. data/examples/v2/ip-allowlist/GetIPAllowlist.rb +5 -0
  16. data/examples/v2/ip-allowlist/UpdateIPAllowlist.rb +25 -0
  17. data/examples/v2/logs-metrics/CreateLogsMetric.rb +1 -1
  18. data/examples/v2/restriction-policies/DeleteRestrictionPolicy.rb +5 -0
  19. data/examples/v2/restriction-policies/GetRestrictionPolicy.rb +5 -0
  20. data/examples/v2/restriction-policies/UpdateRestrictionPolicy.rb +25 -0
  21. data/examples/v2/synthetics/GetOnDemandConcurrencyCap.rb +5 -0
  22. data/examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.rb +5 -0
  23. data/examples/v2/synthetics/SetOnDemandConcurrencyCap.rb +7 -0
  24. data/examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.rb +9 -0
  25. data/lib/datadog_api_client/configuration.rb +5 -0
  26. data/lib/datadog_api_client/inflector.rb +35 -0
  27. data/lib/datadog_api_client/v1/api/snapshots_api.rb +2 -2
  28. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
  29. data/lib/datadog_api_client/v1/model_base.rb +7 -3
  30. data/lib/datadog_api_client/v1/models/application_key.rb +16 -16
  31. data/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb +1 -1
  32. data/lib/datadog_api_client/v1/models/downtime.rb +1 -1
  33. data/lib/datadog_api_client/v1/models/downtime_child.rb +1 -1
  34. data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
  35. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
  36. data/lib/datadog_api_client/v1/models/list_stream_source.rb +3 -0
  37. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
  38. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  39. data/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb +12 -1
  40. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
  41. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  42. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
  43. data/lib/datadog_api_client/v2/api/incidents_api.rb +384 -0
  44. data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +153 -0
  45. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -0
  46. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +236 -0
  47. data/lib/datadog_api_client/v2/api/synthetics_api.rb +153 -0
  48. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  49. data/lib/datadog_api_client/v2/model_base.rb +7 -3
  50. data/lib/datadog_api_client/v2/models/events_data_source.rb +1 -0
  51. data/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +161 -0
  52. data/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb +123 -0
  53. data/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb +102 -0
  54. data/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb +126 -0
  55. data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +63 -0
  56. data/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb +123 -0
  57. data/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb +102 -0
  58. data/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb +114 -0
  59. data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +133 -0
  60. data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_included_item.rb +62 -0
  61. data/lib/datadog_api_client/v2/models/incident_update_data.rb +1 -1
  62. data/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb +103 -0
  63. data/lib/datadog_api_client/v2/models/ip_allowlist_data.rb +122 -0
  64. data/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb +102 -0
  65. data/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb +121 -0
  66. data/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb +122 -0
  67. data/lib/datadog_api_client/v2/models/ip_allowlist_entry_type.rb +26 -0
  68. data/lib/datadog_api_client/v2/models/ip_allowlist_response.rb +91 -0
  69. data/lib/datadog_api_client/v2/models/ip_allowlist_type.rb +26 -0
  70. data/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb +102 -0
  71. data/lib/datadog_api_client/v2/models/jira_integration_metadata.rb +104 -0
  72. data/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb +153 -0
  73. data/lib/datadog_api_client/v2/models/metrics_aggregator.rb +4 -0
  74. data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +91 -0
  75. data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb +91 -0
  76. data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb +91 -0
  77. data/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb +1 -1
  78. data/lib/datadog_api_client/v2/models/restriction_policy.rb +144 -0
  79. data/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb +104 -0
  80. data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +127 -0
  81. data/lib/datadog_api_client/v2/models/restriction_policy_response.rb +102 -0
  82. data/lib/datadog_api_client/v2/models/restriction_policy_type.rb +26 -0
  83. data/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb +102 -0
  84. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +7 -7
  85. data/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +7 -7
  86. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
  87. data/lib/datadog_api_client/v2/models/slack_integration_metadata.rb +104 -0
  88. data/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb +154 -0
  89. data/lib/datadog_api_client/version.rb +1 -1
  90. metadata +53 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfcd86bdc842ea275c973bb387536a28bf7b669ad69c46b4b218dcb5865d7b97
4
- data.tar.gz: 496277194f0cf0fd16564b517cf8a675ba48c4f3ae834f26e301192d9a965a03
3
+ metadata.gz: f9c8454cff1256c1d83b93a839e8090f28028a23b5f40aa72c911bdd2cd233b1
4
+ data.tar.gz: 5e1d1b1b8cd0b0636b390db66807be0c18f81dd5d057a67193611e62813e18c7
5
5
  SHA512:
6
- metadata.gz: da0a8f215389429429ac2ef36f43a2129383e130b3a137128dfd385df02631a449969bf678574604fe65156a404136549f25bb64f54fb484fb27dbb32931cacb
7
- data.tar.gz: 6164233d26946caed6177ffe90a7d43012c93e91dde79616c0ab45f41d21041841950854d18b319603d2e8fe98ee553ab3bdb3bde86f0c8344cefeabaa10d6de
6
+ metadata.gz: 0e1aef92d09652ca8fa486c699cff1486443eddafe1d565cf7cca2ffbcea189c5f0de7bd76ccd484069770db3fe23fa7d2754956e74ea7b36c8fc1b4a269cd14
7
+ data.tar.gz: 3738e0b902435368bc2eab6151a9e9d0bee206de9e27865e64aa72e8a57c564560270a9356b9bcceb767d517b28bfcd7c36fadd709b5b9e67a96194632058602
data/.apigentools-info CHANGED
@@ -4,13 +4,13 @@
4
4
  "spec_versions": {
5
5
  "v1": {
6
6
  "apigentools_version": "1.6.4",
7
- "regenerated": "2023-02-15 14:52:56.430550",
8
- "spec_repo_commit": "3371aaa2"
7
+ "regenerated": "2023-03-13 16:14:01.974205",
8
+ "spec_repo_commit": "13001c30"
9
9
  },
10
10
  "v2": {
11
11
  "apigentools_version": "1.6.4",
12
- "regenerated": "2023-02-15 14:52:56.443856",
13
- "spec_repo_commit": "3371aaa2"
12
+ "regenerated": "2023-03-13 16:14:01.986760",
13
+ "spec_repo_commit": "13001c30"
14
14
  }
15
15
  }
16
16
  }
@@ -697,7 +697,8 @@ components:
697
697
  description: Cancel downtimes according to scope.
698
698
  properties:
699
699
  scope:
700
- description: 'The scope(s) to which the downtime applies. For example, `host:app2`.
700
+ description: 'The scope(s) to which the downtime applies and must be in
701
+ `key:value` format. For example, `host:app2`.
701
702
 
702
703
  Provide multiple scopes as a comma-separated list like `env:dev,env:prod`.
703
704
 
@@ -1678,7 +1679,8 @@ components:
1678
1679
  recurrence:
1679
1680
  $ref: '#/components/schemas/DowntimeRecurrence'
1680
1681
  scope:
1681
- description: 'The scope(s) to which the downtime applies. For example, `host:app2`.
1682
+ description: 'The scope(s) to which the downtime applies and must be in
1683
+ `key:value` format. For example, `host:app2`.
1682
1684
 
1683
1685
  Provide multiple scopes as a comma-separated list like `env:dev,env:prod`.
1684
1686
 
@@ -1812,7 +1814,8 @@ components:
1812
1814
  recurrence:
1813
1815
  $ref: '#/components/schemas/DowntimeRecurrence'
1814
1816
  scope:
1815
- description: 'The scope(s) to which the downtime applies. For example, `host:app2`.
1817
+ description: 'The scope(s) to which the downtime applies and must be in
1818
+ `key:value` format. For example, `host:app2`.
1816
1819
 
1817
1820
  Provide multiple scopes as a comma-separated list like `env:dev,env:prod`.
1818
1821
 
@@ -2518,6 +2521,7 @@ components:
2518
2521
  - audit
2519
2522
  - events
2520
2523
  - ci_tests
2524
+ - ci_pipelines
2521
2525
  example: logs
2522
2526
  type: string
2523
2527
  x-enum-varnames:
@@ -2530,6 +2534,7 @@ components:
2530
2534
  - AUDIT
2531
2535
  - EVENTS
2532
2536
  - CI_TESTS
2537
+ - CI_PIPELINES
2533
2538
  FormulaAndFunctionMetricAggregation:
2534
2539
  description: The aggregation methods available for metrics queries.
2535
2540
  enum:
@@ -3665,6 +3670,7 @@ components:
3665
3670
  - invocations_usage
3666
3671
  - npm_host_usage
3667
3672
  - profiled_container_usage
3673
+ - profiled_fargate_usage
3668
3674
  - profiled_host_usage
3669
3675
  - snmp_usage
3670
3676
  - estimated_rum_sessions_usage
@@ -3695,6 +3701,7 @@ components:
3695
3701
  - INVOCATIONS_USAGE
3696
3702
  - NPM_HOST_USAGE
3697
3703
  - PROFILED_CONTAINER_USAGE
3704
+ - PROFILED_FARGATE_USAGE
3698
3705
  - PROFILED_HOST_USAGE
3699
3706
  - SNMP_USAGE
3700
3707
  - ESTIMATED_RUM_SESSIONS_USAGE
@@ -4132,8 +4139,11 @@ components:
4132
4139
  enum:
4133
4140
  - logs_stream
4134
4141
  - audit_stream
4142
+ - ci_pipeline_stream
4143
+ - ci_test_stream
4135
4144
  - rum_issue_stream
4136
4145
  - apm_issue_stream
4146
+ - logs_issue_stream
4137
4147
  - logs_pattern_stream
4138
4148
  - logs_transaction_stream
4139
4149
  - event_stream
@@ -4142,8 +4152,11 @@ components:
4142
4152
  x-enum-varnames:
4143
4153
  - LOGS_STREAM
4144
4154
  - AUDIT_STREAM
4155
+ - CI_PIPELINE_STREAM
4156
+ - CI_TEST_STREAM
4145
4157
  - RUM_ISSUE_STREAM
4146
4158
  - APM_ISSUE_STREAM
4159
+ - LOGS_ISSUE_STREAM
4147
4160
  - LOGS_PATTERN_STREAM
4148
4161
  - LOGS_TRANSACTION_STREAM
4149
4162
  - EVENT_STREAM
@@ -7138,6 +7151,8 @@ components:
7138
7151
  - npm_host_percentage
7139
7152
  - profiled_container_usage
7140
7153
  - profiled_container_percentage
7154
+ - profiled_fargate_usage
7155
+ - profiled_fargate_percentage
7141
7156
  - profiled_host_usage
7142
7157
  - profiled_host_percentage
7143
7158
  - snmp_usage
@@ -7197,6 +7212,8 @@ components:
7197
7212
  - NPM_HOST_PERCENTAGE
7198
7213
  - PROFILED_CONTAINER_USAGE
7199
7214
  - PROFILED_CONTAINER_PERCENTAGE
7215
+ - PROFILED_FARGATE_USAGE
7216
+ - PROFILED_FARGATE_PERCENTAGE
7200
7217
  - PROFILED_HOST_USAGE
7201
7218
  - PROFILED_HOST_PERCENTAGE
7202
7219
  - SNMP_USAGE
@@ -7420,6 +7437,14 @@ components:
7420
7437
  description: The profiled container usage by tag(s).
7421
7438
  format: double
7422
7439
  type: number
7440
+ profiled_fargate_percentage:
7441
+ description: The percentage of profiled Fargate task usage by tag(s).
7442
+ format: double
7443
+ type: number
7444
+ profiled_fargate_usage:
7445
+ description: The profiled Fargate task usage by tag(s).
7446
+ format: double
7447
+ type: number
7423
7448
  profiled_host_percentage:
7424
7449
  description: The percentage of profiled hosts usage by tag(s).
7425
7450
  format: double
@@ -16425,6 +16450,12 @@ components:
16425
16450
  format: int64
16426
16451
  nullable: true
16427
16452
  type: integer
16453
+ session_count_flutter:
16454
+ description: Contains the number of mobile RUM Sessions on Flutter (data
16455
+ available beginning March 1, 2023).
16456
+ format: int64
16457
+ nullable: true
16458
+ type: integer
16428
16459
  session_count_ios:
16429
16460
  description: Contains the number of mobile RUM Sessions on iOS (data available
16430
16461
  beginning December 1, 2020).
@@ -16683,6 +16714,11 @@ components:
16683
16714
  the current date for all organizations.
16684
16715
  format: int64
16685
16716
  type: integer
16717
+ audit_trail_enabled_hwm:
16718
+ description: Shows the number of organizations that had Audit Trail enabled
16719
+ in the current date.
16720
+ format: int64
16721
+ type: integer
16686
16722
  avg_profiled_fargate_tasks:
16687
16723
  description: The average profiled task count for Fargate Profiling.
16688
16724
  format: int64
@@ -16891,6 +16927,11 @@ components:
16891
16927
  hours in the current date for all organizations.
16892
16928
  format: int64
16893
16929
  type: integer
16930
+ mobile_rum_session_count_flutter_sum:
16931
+ description: Shows the sum of all mobile RUM Sessions on Flutter over all
16932
+ hours in the current date for all organizations.
16933
+ format: int64
16934
+ type: integer
16894
16935
  mobile_rum_session_count_ios_sum:
16895
16936
  description: Shows the sum of all mobile RUM Sessions on iOS over all hours
16896
16937
  in the current date for all organizations.
@@ -17064,6 +17105,11 @@ components:
17064
17105
  in the current date for the given org.
17065
17106
  format: int64
17066
17107
  type: integer
17108
+ audit_trail_enabled_hwm:
17109
+ description: Shows whether Audit Trail is enabled for the current date for
17110
+ the given org.
17111
+ format: int64
17112
+ type: integer
17067
17113
  avg_profiled_fargate_tasks:
17068
17114
  description: The average profiled task count for Fargate Profiling.
17069
17115
  format: int64
@@ -17271,6 +17317,11 @@ components:
17271
17317
  hours in the current date for the given org.
17272
17318
  format: int64
17273
17319
  type: integer
17320
+ mobile_rum_session_count_flutter_sum:
17321
+ description: Shows the sum of all mobile RUM Sessions on Flutter over all
17322
+ hours in the current date for the given org.
17323
+ format: int64
17324
+ type: integer
17274
17325
  mobile_rum_session_count_ios_sum:
17275
17326
  description: Shows the sum of all mobile RUM Sessions on iOS over all hours
17276
17327
  in the current date for the given org.
@@ -17448,6 +17499,11 @@ components:
17448
17499
  in the current months for all organizations.
17449
17500
  format: int64
17450
17501
  type: integer
17502
+ audit_trail_enabled_hwm_sum:
17503
+ description: Shows the total number of organizations that had Audit Trail
17504
+ enabled over a specific number of months.
17505
+ format: int64
17506
+ type: integer
17451
17507
  avg_profiled_fargate_tasks_sum:
17452
17508
  description: Shows the average of all profiled Fargate tasks over all hours
17453
17509
  in the current months for all organizations.
@@ -17688,6 +17744,11 @@ components:
17688
17744
  hours in the current months for all organizations.
17689
17745
  format: int64
17690
17746
  type: integer
17747
+ mobile_rum_session_count_flutter_agg_sum:
17748
+ description: Shows the sum of all mobile RUM Sessions on Flutter over all
17749
+ hours in the current months for all organizations.
17750
+ format: int64
17751
+ type: integer
17691
17752
  mobile_rum_session_count_ios_agg_sum:
17692
17753
  description: Shows the sum of all mobile RUM Sessions on iOS over all hours
17693
17754
  in the current months for all organizations.
@@ -20718,14 +20779,14 @@ paths:
20718
20779
  name: metric_query
20719
20780
  schema:
20720
20781
  type: string
20721
- - description: The POSIX timestamp of the start of the query.
20782
+ - description: The POSIX timestamp of the start of the query in seconds.
20722
20783
  in: query
20723
20784
  name: start
20724
20785
  required: true
20725
20786
  schema:
20726
20787
  format: int64
20727
20788
  type: integer
20728
- - description: The POSIX timestamp of the end of the query.
20789
+ - description: The POSIX timestamp of the end of the query in seconds.
20729
20790
  in: query
20730
20791
  name: end
20731
20792
  required: true