Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26432,15 +26432,15 @@ components:
description: A short summary of the issue or context.
type: string
tags:
description: Tags to help categorize or filter the page.
description: Tags to help categorize or filter the Page.
items:
description: A single tag for categorizing the page.
description: A single tag for categorizing the Page.
type: string
type: array
target:
$ref: "#/components/schemas/CreatePageRequestDataAttributesTarget"
title:
description: The title of the page.
description: The title of the Page.
example: "Service: Test is down"
type: string
urgency:
Expand Down Expand Up @@ -26479,10 +26479,10 @@ components:
$ref: "#/components/schemas/CreatePageResponseData"
type: object
CreatePageResponseData:
description: The information returned after successfully creating a page.
description: The information returned after successfully creating a Page.
properties:
id:
description: The unique ID of the created page.
description: The unique ID of the created Page.
type: string
type:
$ref: "#/components/schemas/CreatePageResponseDataType"
Expand Down Expand Up @@ -106350,7 +106350,7 @@ components:
description: Details about where to reroute the On-Call Page.
properties:
comment:
description: An optional comment explaining why the page is being rerouted.
description: An optional comment explaining why the Page is being rerouted.
example: Rerouting to the database team.
type: string
target:
Expand Down Expand Up @@ -208562,7 +208562,7 @@ paths:
$ref: "#/components/schemas/CreatePageRequest"
required: true
responses:
"200":
"201":
content:
application/json:
examples:
Expand All @@ -208573,7 +208573,7 @@ paths:
type: pages
schema:
$ref: "#/components/schemas/CreatePageResponse"
description: OK.
description: Created.
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
Expand Down Expand Up @@ -208765,7 +208765,7 @@ paths:
Acknowledges an On-Call Page.
operationId: AcknowledgeOnCallPage
parameters:
- description: The page ID.
- description: The Page ID.
in: path
name: page_id
required: true
Expand All @@ -208774,8 +208774,8 @@ paths:
format: uuid
type: string
responses:
"202":
description: Accepted.
"204":
description: No Content.
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
Expand Down Expand Up @@ -208867,7 +208867,7 @@ paths:
Escalates an On-Call Page.
operationId: EscalateOnCallPage
parameters:
- description: The page ID.
- description: The Page ID.
in: path
name: page_id
required: true
Expand All @@ -208876,8 +208876,8 @@ paths:
format: uuid
type: string
responses:
"202":
description: Accepted.
"204":
description: No Content.
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
Expand Down Expand Up @@ -208969,7 +208969,7 @@ paths:
Reroutes an On-Call Page.
operationId: RerouteOnCallPage
parameters:
- description: The page ID.
- description: The Page ID.
in: path
name: page_id
required: true
Expand Down Expand Up @@ -209105,7 +209105,7 @@ paths:
Resolves an On-Call Page.
operationId: ResolveOnCallPage
parameters:
- description: The page ID.
- description: The Page ID.
in: path
name: page_id
required: true
Expand All @@ -209114,8 +209114,8 @@ paths:
format: uuid
type: string
responses:
"202":
description: Accepted.
"204":
description: No Content.
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
Expand Down
4 changes: 2 additions & 2 deletions examples/v2/on-call-paging/AcknowledgeOnCallPage.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Acknowledge On-Call Page returns "Accepted." response
# Acknowledge On-Call Page returns "No Content." response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
end
api_instance = DatadogAPIClient::V2::OnCallPagingAPI.new
p api_instance.acknowledge_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f")
api_instance.acknowledge_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f")
2 changes: 1 addition & 1 deletion examples/v2/on-call-paging/CreateOnCallPage.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Create On-Call Page returns "OK." response
# Create On-Call Page returns "Created." response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
Expand Down
4 changes: 2 additions & 2 deletions examples/v2/on-call-paging/EscalateOnCallPage.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Escalate On-Call Page returns "Accepted." response
# Escalate On-Call Page returns "No Content." response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
end
api_instance = DatadogAPIClient::V2::OnCallPagingAPI.new
p api_instance.escalate_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f")
api_instance.escalate_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f")
4 changes: 2 additions & 2 deletions examples/v2/on-call-paging/ResolveOnCallPage.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Resolve On-Call Page returns "Accepted." response
# Resolve On-Call Page returns "No Content." response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
end
api_instance = DatadogAPIClient::V2::OnCallPagingAPI.new
p api_instance.resolve_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f")
api_instance.resolve_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f")
16 changes: 8 additions & 8 deletions features/v2/on-call_paging.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ Feature: On-Call Paging
And an instance of "On-CallPaging" API

@generated @skip @team:ddoghq/on-call
Scenario: Acknowledge On-Call Page returns "Accepted." response
Scenario: Acknowledge On-Call Page returns "No Content." response
Given new "AcknowledgeOnCallPage" request
And request contains "page_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 202 Accepted.
Then the response status is 204 No Content.

@generated @skip @team:ddoghq/on-call
Scenario: Create On-Call Page returns "OK." response
Scenario: Create On-Call Page returns "Created." response
Given new "CreateOnCallPage" request
And body with value {"data": {"attributes": {"description": "Page details.", "tags": ["service:test"], "target": {"identifier": "my-team", "type": "team_handle"}, "title": "Page title", "urgency": "low"}, "type": "pages"}}
When the request is sent
Then the response status is 200 OK.
Then the response status is 201 Created.

@generated @skip @team:ddoghq/on-call
Scenario: Escalate On-Call Page returns "Accepted." response
Scenario: Escalate On-Call Page returns "No Content." response
Given new "EscalateOnCallPage" request
And request contains "page_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 202 Accepted.
Then the response status is 204 No Content.

@generated @skip @team:ddoghq/on-call
Scenario: Reroute On-Call Page returns "Bad Request" response
Expand All @@ -47,8 +47,8 @@ Feature: On-Call Paging
Then the response status is 204 No Content.

@generated @skip @team:ddoghq/on-call
Scenario: Resolve On-Call Page returns "Accepted." response
Scenario: Resolve On-Call Page returns "No Content." response
Given new "ResolveOnCallPage" request
And request contains "page_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 202 Accepted.
Then the response status is 204 No Content.
8 changes: 4 additions & 4 deletions lib/datadog_api_client/v2/api/on_call_paging_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def acknowledge_on_call_page(page_id, opts = {})
#
# Acknowledges an On-Call Page.
#
# @param page_id [UUID] The page ID.
# @param page_id [UUID] The Page ID.
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def acknowledge_on_call_page_with_http_info(page_id, opts = {})
Expand Down Expand Up @@ -167,7 +167,7 @@ def escalate_on_call_page(page_id, opts = {})
#
# Escalates an On-Call Page.
#
# @param page_id [UUID] The page ID.
# @param page_id [UUID] The Page ID.
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def escalate_on_call_page_with_http_info(page_id, opts = {})
Expand Down Expand Up @@ -232,7 +232,7 @@ def reroute_on_call_page(page_id, body, opts = {})
#
# Reroutes an On-Call Page.
#
# @param page_id [UUID] The page ID.
# @param page_id [UUID] The Page ID.
# @param body [RerouteOnCallPageRequest]
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Expand Down Expand Up @@ -304,7 +304,7 @@ def resolve_on_call_page(page_id, opts = {})
#
# Resolves an On-Call Page.
#
# @param page_id [UUID] The page ID.
# @param page_id [UUID] The Page ID.
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def resolve_on_call_page_with_http_info(page_id, opts = {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class CreatePageRequestDataAttributes
# A short summary of the issue or context.
attr_accessor :description

# Tags to help categorize or filter the page.
# Tags to help categorize or filter the Page.
attr_accessor :tags

# Information about the target to notify (such as a team or user).
attr_reader :target

# The title of the page.
# The title of the Page.
attr_reader :title

# On-Call Page urgency level.
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/models/create_page_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module DatadogAPIClient::V2
class CreatePageResponse
include BaseGenericModel

# The information returned after successfully creating a page.
# The information returned after successfully creating a Page.
attr_accessor :data

attr_accessor :additional_properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
require 'time'

module DatadogAPIClient::V2
# The information returned after successfully creating a page.
# The information returned after successfully creating a Page.
class CreatePageResponseData
include BaseGenericModel

# The unique ID of the created page.
# The unique ID of the created Page.
attr_accessor :id

# The type of resource used when creating an On-Call Page.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module DatadogAPIClient::V2
class RerouteOnCallPageRequestDataAttributes
include BaseGenericModel

# An optional comment explaining why the page is being rerouted.
# An optional comment explaining why the Page is being rerouted.
attr_accessor :comment

# Information about the target to notify (such as a team or user).
Expand Down
Loading