Skip to content

Commit 854b07d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e05e083 of spec repo
1 parent 0b06210 commit 854b07d

File tree

10 files changed

+41
-22
lines changed

10 files changed

+41
-22
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19961,7 +19961,7 @@ components:
1996119961
type: array
1996219962
type: object
1996319963
UsageIncidentManagementHour:
19964-
description: Incident management usage for a given organization for a given
19964+
description: Incident Management usage for a given organization for a given
1996519965
hour.
1996619966
properties:
1996719967
hour:
@@ -19982,11 +19982,11 @@ components:
1998219982
type: string
1998319983
type: object
1998419984
UsageIncidentManagementResponse:
19985-
description: Response containing the incident management usage for each hour
19985+
description: Response containing the Incident Management usage for each hour
1998619986
for a given organization.
1998719987
properties:
1998819988
usage:
19989-
description: Get hourly usage for incident management.
19989+
description: Get hourly usage for Incident Management.
1999019990
items:
1999119991
$ref: '#/components/schemas/UsageIncidentManagementHour'
1999219992
type: array
@@ -21192,7 +21192,7 @@ components:
2119221192
format: int64
2119321193
type: integer
2119421194
incident_management_monthly_active_users_hwm:
21195-
description: Shows the high-water mark of incident management monthly active
21195+
description: Shows the high-water mark of Incident Management monthly active
2119621196
users over all hours in the current date for all organizations.
2119721197
format: int64
2119821198
type: integer
@@ -22313,7 +22313,7 @@ components:
2231322313
description: The organization id.
2231422314
type: string
2231522315
incident_management_monthly_active_users_hwm:
22316-
description: Shows the high-water mark of incident management monthly active
22316+
description: Shows the high-water mark of Incident Management monthly active
2231722317
users over all hours in the current date for the given org.
2231822318
format: int64
2231922319
type: integer
@@ -23435,7 +23435,7 @@ components:
2343523435
format: int64
2343623436
type: integer
2343723437
incident_management_monthly_active_users_hwm_sum:
23438-
description: Shows sum of the high-water marks of incident management monthly
23438+
description: Shows sum of the high-water marks of Incident Management monthly
2343923439
active users in the current month for all organizations.
2344023440
format: int64
2344123441
type: integer
@@ -36523,7 +36523,7 @@ paths:
3652336523
/api/v1/usage/incident-management:
3652436524
get:
3652536525
deprecated: true
36526-
description: 'Get hourly usage for incident management.
36526+
description: 'Get hourly usage for Incident Management.
3652736527

3652836528
**Note:** This endpoint has been deprecated. Hourly usage data for all products
3652936529
is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family).
@@ -36579,7 +36579,7 @@ paths:
3657936579
appKeyAuth: []
3658036580
- AuthZ:
3658136581
- usage_read
36582-
summary: Get hourly usage for incident management
36582+
summary: Get hourly usage for Incident Management
3658336583
tags:
3658436584
- Usage Metering
3658536585
x-permission:
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# Get hourly usage for incident management returns "OK" response
1+
# Get hourly usage for Incident Management returns "OK" response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new
5-
opts = {
6-
end_hr: (Time.now + -3 * 86400),
7-
}
8-
p api_instance.get_incident_management((Time.now + -5 * 86400), opts)
5+
p api_instance.get_incident_management("2021-11-11T11:11:11.111+00:00")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Get hourly usage for incident management returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new
5+
opts = {
6+
end_hr: (Time.now + -3 * 86400),
7+
}
8+
p api_instance.get_incident_management((Time.now + -5 * 86400), opts)

features/v1/usage_metering.feature

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,20 @@ Feature: Usage Metering
125125
When the request is sent
126126
Then the response status is 200 OK
127127

128+
@generated @skip @team:DataDog/revenue-query
129+
Scenario: Get hourly usage for Incident Management returns "Bad Request" response
130+
Given new "GetIncidentManagement" request
131+
And request contains "start_hr" parameter from "REPLACE.ME"
132+
When the request is sent
133+
Then the response status is 400 Bad Request
134+
135+
@generated @skip @team:DataDog/revenue-query
136+
Scenario: Get hourly usage for Incident Management returns "OK" response
137+
Given new "GetIncidentManagement" request
138+
And request contains "start_hr" parameter from "REPLACE.ME"
139+
When the request is sent
140+
Then the response status is 200 OK
141+
128142
@skip @team:DataDog/revenue-query
129143
Scenario: Get hourly usage for IoT returns "Bad Request" response
130144
Given new "GetUsageInternetOfThings" request

lib/datadog_api_client/v1/api/usage_metering_api.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,17 +203,17 @@ def get_hourly_usage_attribution_with_http_info(start_hr, usage_type, opts = {})
203203
return data, status_code, headers
204204
end
205205

206-
# Get hourly usage for incident management.
206+
# Get hourly usage for Incident Management.
207207
#
208208
# @see #get_incident_management_with_http_info
209209
def get_incident_management(start_hr, opts = {})
210210
data, _status_code, _headers = get_incident_management_with_http_info(start_hr, opts)
211211
data
212212
end
213213

214-
# Get hourly usage for incident management.
214+
# Get hourly usage for Incident Management.
215215
#
216-
# Get hourly usage for incident management.
216+
# Get hourly usage for Incident Management.
217217
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
218218
#
219219
# @deprecated This API is deprecated.

lib/datadog_api_client/v1/models/usage_incident_management_hour.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V1
20-
# Incident management usage for a given organization for a given hour.
20+
# Incident Management usage for a given organization for a given hour.
2121
class UsageIncidentManagementHour
2222
include BaseGenericModel
2323

lib/datadog_api_client/v1/models/usage_incident_management_response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V1
20-
# Response containing the incident management usage for each hour for a given organization.
20+
# Response containing the Incident Management usage for each hour for a given organization.
2121
class UsageIncidentManagementResponse
2222
include BaseGenericModel
2323

24-
# Get hourly usage for incident management.
24+
# Get hourly usage for Incident Management.
2525
attr_accessor :usage
2626

2727
attr_accessor :additional_properties

lib/datadog_api_client/v1/models/usage_summary_date.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class UsageSummaryDate
315315
# Shows the 99th percentile of all Heroku dynos over all hours in the current date for all organizations.
316316
attr_accessor :heroku_host_top99p
317317

318-
# Shows the high-water mark of incident management monthly active users over all hours in the current date for all organizations.
318+
# Shows the high-water mark of Incident Management monthly active users over all hours in the current date for all organizations.
319319
attr_accessor :incident_management_monthly_active_users_hwm
320320

321321
# Shows the high-water mark of Incident Management seats over all hours on the current date for all organizations.

lib/datadog_api_client/v1/models/usage_summary_date_org.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class UsageSummaryDateOrg
327327
# The organization id.
328328
attr_accessor :id
329329

330-
# Shows the high-water mark of incident management monthly active users over all hours in the current date for the given org.
330+
# Shows the high-water mark of Incident Management monthly active users over all hours in the current date for the given org.
331331
attr_accessor :incident_management_monthly_active_users_hwm
332332

333333
# Shows the high-water mark of Incident Management seats over all hours on the current date for the given organization.

lib/datadog_api_client/v1/models/usage_summary_response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class UsageSummaryResponse
324324
# Shows the 99th percentile of all Heroku dynos over all hours in the current month for all organizations.
325325
attr_accessor :heroku_host_top99p_sum
326326

327-
# Shows sum of the high-water marks of incident management monthly active users in the current month for all organizations.
327+
# Shows sum of the high-water marks of Incident Management monthly active users in the current month for all organizations.
328328
attr_accessor :incident_management_monthly_active_users_hwm_sum
329329

330330
# Shows the sum of the high-water marks of Incident Management seats over all hours in the current month for all organizations.

0 commit comments

Comments
 (0)