Skip to content

Commit

Permalink
pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Feb 11, 2022
1 parent cfcbed9 commit 6022c49
Show file tree
Hide file tree
Showing 322 changed files with 739 additions and 739 deletions.
2 changes: 1 addition & 1 deletion examples/generated/v1/authentication/Validate.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AuthenticationAPI.new

begin
Expand Down
2 changes: 1 addition & 1 deletion examples/generated/v1/aws-integration/CreateAWSAccount.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new
body = DatadogAPIClient::V1::AWSAccount.new # AWSAccount | AWS Request Object

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new
body = DatadogAPIClient::V1::AWSTagFilterCreateRequest.new # AWSTagFilterCreateRequest | Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new
body = DatadogAPIClient::V1::AWSAccount.new # AWSAccount | Your Datadog role delegation name. For more information about your AWS account Role name, see the [Datadog AWS integration configuration info](https://docs.datadoghq.com/integrations/amazon_web_services/#setup).

Expand Down
2 changes: 1 addition & 1 deletion examples/generated/v1/aws-integration/DeleteAWSAccount.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new
body = DatadogAPIClient::V1::AWSAccountDeleteRequest.new # AWSAccountDeleteRequest | AWS request object

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new
body = DatadogAPIClient::V1::AWSTagFilterDeleteRequest.new # AWSTagFilterDeleteRequest | Delete a tag filtering entry for a given AWS account and `dd-aws` namespace.

Expand Down
8 changes: 4 additions & 4 deletions examples/generated/v1/aws-integration/ListAWSAccounts.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new
opts = {
account_id: "account_id_example", # String | Only return AWS accounts that matches this `account_id`.
role_name: "role_name_example", # String | Only return AWS accounts that matches this role_name.
access_key_id: "access_key_id_example", # String | Only return AWS accounts that matches this `access_key_id`.
account_id: 'account_id_example', # String | Only return AWS accounts that matches this `account_id`.
role_name: 'role_name_example', # String | Only return AWS accounts that matches this role_name.
access_key_id: 'access_key_id_example' # String | Only return AWS accounts that matches this `access_key_id`.
}

begin
Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/aws-integration/ListAWSTagFilters.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new
account_id = "account_id_example" # String | Only return AWS filters that matches this `account_id`.
account_id = 'account_id_example' # String | Only return AWS filters that matches this `account_id`.

begin
# Get all AWS tag filters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new

begin
Expand Down
8 changes: 4 additions & 4 deletions examples/generated/v1/aws-integration/UpdateAWSAccount.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new
body = DatadogAPIClient::V1::AWSAccount.new # AWSAccount | AWS request object
opts = {
account_id: "account_id_example", # String | Only return AWS accounts that matches this `account_id`.
role_name: "role_name_example", # String | Only return AWS accounts that match this `role_name`. Required if `account_id` is specified.
access_key_id: "access_key_id_example", # String | Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified.
account_id: 'account_id_example', # String | Only return AWS accounts that matches this `account_id`.
role_name: 'role_name_example', # String | Only return AWS accounts that match this `role_name`. Required if `account_id` is specified.
access_key_id: 'access_key_id_example' # String | Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified.
}

begin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new
body = DatadogAPIClient::V1::AWSAccountAndLambdaRequest.new({ account_id: "1234567", lambda_arn: "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest" }) # AWSAccountAndLambdaRequest | Check AWS Log Lambda Async request body.
body = DatadogAPIClient::V1::AWSAccountAndLambdaRequest.new({account_id: '1234567', lambda_arn: 'arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest'}) # AWSAccountAndLambdaRequest | Check AWS Log Lambda Async request body.

begin
# Check that an AWS Lambda Function exists
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new
body = DatadogAPIClient::V1::AWSLogsServicesRequest.new({ account_id: "1234567", services: ["services_example"] }) # AWSLogsServicesRequest | Check AWS Logs Async Services request body.
body = DatadogAPIClient::V1::AWSLogsServicesRequest.new({account_id: '1234567', services: ['services_example']}) # AWSLogsServicesRequest | Check AWS Logs Async Services request body.

begin
# Check permissions for log services
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new
body = DatadogAPIClient::V1::AWSAccountAndLambdaRequest.new({ account_id: "1234567", lambda_arn: "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest" }) # AWSAccountAndLambdaRequest | AWS Log Lambda Async request body.
body = DatadogAPIClient::V1::AWSAccountAndLambdaRequest.new({account_id: '1234567', lambda_arn: 'arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest'}) # AWSAccountAndLambdaRequest | AWS Log Lambda Async request body.

begin
# Add AWS Log Lambda ARN
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new
body = DatadogAPIClient::V1::AWSAccountAndLambdaRequest.new({ account_id: "1234567", lambda_arn: "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest" }) # AWSAccountAndLambdaRequest | Delete AWS Lambda ARN request body.
body = DatadogAPIClient::V1::AWSAccountAndLambdaRequest.new({account_id: '1234567', lambda_arn: 'arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest'}) # AWSAccountAndLambdaRequest | Delete AWS Lambda ARN request body.

begin
# Delete an AWS Logs integration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new
body = DatadogAPIClient::V1::AWSLogsServicesRequest.new({ account_id: "1234567", services: ["services_example"] }) # AWSLogsServicesRequest | Enable AWS Log Services request body.
body = DatadogAPIClient::V1::AWSLogsServicesRequest.new({account_id: '1234567', services: ['services_example']}) # AWSLogsServicesRequest | Enable AWS Log Services request body.

begin
# Enable an AWS Logs integration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new

begin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new

begin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new
body = DatadogAPIClient::V1::AzureAccount.new # AzureAccount | Create a Datadog-Azure integration for your Datadog account request body.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new
body = DatadogAPIClient::V1::AzureAccount.new # AzureAccount | Delete a given Datadog-Azure integration request body.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new

begin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new
body = DatadogAPIClient::V1::AzureAccount.new # AzureAccount | Update a Datadog-Azure integration's host filters request body.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new
body = DatadogAPIClient::V1::AzureAccount.new # AzureAccount | Update a Datadog-Azure integration request body.

Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/dashboard-lists/CreateDashboardList.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardListsAPI.new
body = DatadogAPIClient::V1::DashboardList.new({ name: "My Dashboard" }) # DashboardList | Create a dashboard list request body.
body = DatadogAPIClient::V1::DashboardList.new({name: 'My Dashboard'}) # DashboardList | Create a dashboard list request body.

begin
# Create a dashboard list
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardListsAPI.new
list_id = 789 # Integer | ID of the dashboard list to delete.

Expand Down
2 changes: 1 addition & 1 deletion examples/generated/v1/dashboard-lists/GetDashboardList.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardListsAPI.new
list_id = 789 # Integer | ID of the dashboard list to fetch.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardListsAPI.new

begin
Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/dashboard-lists/UpdateDashboardList.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardListsAPI.new
list_id = 789 # Integer | ID of the dashboard list to update.
body = DatadogAPIClient::V1::DashboardList.new({ name: "My Dashboard" }) # DashboardList | Update a dashboard list request body.
body = DatadogAPIClient::V1::DashboardList.new({name: 'My Dashboard'}) # DashboardList | Update a dashboard list request body.

begin
# Update a dashboard list
Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/dashboards/CreateDashboard.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
body = DatadogAPIClient::V1::Dashboard.new({ layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED, title: "title_example", widgets: [DatadogAPIClient::V1::Widget.new({ definition: DatadogAPIClient::V1::AlertGraphWidgetDefinition.new({ alert_id: "alert_id_example", type: DatadogAPIClient::V1::AlertGraphWidgetDefinitionType::ALERT_GRAPH, viz_type: DatadogAPIClient::V1::WidgetVizType::TIMESERIES }) })] }) # Dashboard | Create a dashboard request body.
body = DatadogAPIClient::V1::Dashboard.new({layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED, title: 'title_example', widgets: [DatadogAPIClient::V1::Widget.new({definition: DatadogAPIClient::V1::AlertGraphWidgetDefinition.new({alert_id: 'alert_id_example', type: DatadogAPIClient::V1::AlertGraphWidgetDefinitionType::ALERT_GRAPH, viz_type: DatadogAPIClient::V1::WidgetVizType::TIMESERIES})})]}) # Dashboard | Create a dashboard request body.

begin
# Create a new dashboard
Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/dashboards/DeleteDashboard.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
dashboard_id = "dashboard_id_example" # String | The ID of the dashboard.
dashboard_id = 'dashboard_id_example' # String | The ID of the dashboard.

begin
# Delete a dashboard
Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/dashboards/DeleteDashboards.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
body = DatadogAPIClient::V1::DashboardBulkDeleteRequest.new({ data: [DatadogAPIClient::V1::DashboardBulkActionData.new({ id: "123-abc-456", type: DatadogAPIClient::V1::DashboardResourceType::DASHBOARD })] }) # DashboardBulkDeleteRequest | Delete dashboards request body.
body = DatadogAPIClient::V1::DashboardBulkDeleteRequest.new({data: [DatadogAPIClient::V1::DashboardBulkActionData.new({id: '123-abc-456', type: DatadogAPIClient::V1::DashboardResourceType::DASHBOARD})]}) # DashboardBulkDeleteRequest | Delete dashboards request body.

begin
# Delete dashboards
Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/dashboards/GetDashboard.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
dashboard_id = "dashboard_id_example" # String | The ID of the dashboard.
dashboard_id = 'dashboard_id_example' # String | The ID of the dashboard.

begin
# Get a dashboard
Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/dashboards/ListDashboards.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
opts = {
filter_shared: true, # Boolean | When `true`, this query only returns shared custom created or cloned dashboards.
filter_deleted: true, # Boolean | When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`.
filter_deleted: true # Boolean | When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`.
}

begin
Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/dashboards/RestoreDashboards.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
body = DatadogAPIClient::V1::DashboardRestoreRequest.new({ data: [DatadogAPIClient::V1::DashboardBulkActionData.new({ id: "123-abc-456", type: DatadogAPIClient::V1::DashboardResourceType::DASHBOARD })] }) # DashboardRestoreRequest | Restore dashboards request body.
body = DatadogAPIClient::V1::DashboardRestoreRequest.new({data: [DatadogAPIClient::V1::DashboardBulkActionData.new({id: '123-abc-456', type: DatadogAPIClient::V1::DashboardResourceType::DASHBOARD})]}) # DashboardRestoreRequest | Restore dashboards request body.

begin
# Restore deleted dashboards
Expand Down
6 changes: 3 additions & 3 deletions examples/generated/v1/dashboards/UpdateDashboard.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
dashboard_id = "dashboard_id_example" # String | The ID of the dashboard.
body = DatadogAPIClient::V1::Dashboard.new({ layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED, title: "title_example", widgets: [DatadogAPIClient::V1::Widget.new({ definition: DatadogAPIClient::V1::AlertGraphWidgetDefinition.new({ alert_id: "alert_id_example", type: DatadogAPIClient::V1::AlertGraphWidgetDefinitionType::ALERT_GRAPH, viz_type: DatadogAPIClient::V1::WidgetVizType::TIMESERIES }) })] }) # Dashboard | Update Dashboard request body.
dashboard_id = 'dashboard_id_example' # String | The ID of the dashboard.
body = DatadogAPIClient::V1::Dashboard.new({layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED, title: 'title_example', widgets: [DatadogAPIClient::V1::Widget.new({definition: DatadogAPIClient::V1::AlertGraphWidgetDefinition.new({alert_id: 'alert_id_example', type: DatadogAPIClient::V1::AlertGraphWidgetDefinitionType::ALERT_GRAPH, viz_type: DatadogAPIClient::V1::WidgetVizType::TIMESERIES})})]}) # Dashboard | Update Dashboard request body.

begin
# Update a dashboard
Expand Down
2 changes: 1 addition & 1 deletion examples/generated/v1/downtimes/CancelDowntime.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DowntimesAPI.new
downtime_id = 123456 # Integer | ID of the downtime to cancel.

Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/downtimes/CancelDowntimesByScope.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DowntimesAPI.new
body = DatadogAPIClient::V1::CancelDowntimesByScopeRequest.new({ scope: "host:myserver" }) # CancelDowntimesByScopeRequest | Scope to cancel downtimes for.
body = DatadogAPIClient::V1::CancelDowntimesByScopeRequest.new({scope: 'host:myserver'}) # CancelDowntimesByScopeRequest | Scope to cancel downtimes for.

begin
# Cancel downtimes by scope
Expand Down
2 changes: 1 addition & 1 deletion examples/generated/v1/downtimes/CreateDowntime.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DowntimesAPI.new
body = DatadogAPIClient::V1::Downtime.new # Downtime | Schedule a downtime request body.

Expand Down
2 changes: 1 addition & 1 deletion examples/generated/v1/downtimes/GetDowntime.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DowntimesAPI.new
downtime_id = 123456 # Integer | ID of the downtime to fetch.

Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/downtimes/ListDowntimes.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DowntimesAPI.new
opts = {
current_only: true, # Boolean | Only return downtimes that are active when the request is made.
current_only: true # Boolean | Only return downtimes that are active when the request is made.
}

begin
Expand Down
2 changes: 1 addition & 1 deletion examples/generated/v1/downtimes/ListMonitorDowntimes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DowntimesAPI.new
monitor_id = 789 # Integer | The id of the monitor

Expand Down
2 changes: 1 addition & 1 deletion examples/generated/v1/downtimes/UpdateDowntime.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::DowntimesAPI.new
downtime_id = 123456 # Integer | ID of the downtime to update.
body = DatadogAPIClient::V1::Downtime.new # Downtime | Update a downtime request body.
Expand Down
4 changes: 2 additions & 2 deletions examples/generated/v1/events/CreateEvent.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::EventsAPI.new
body = DatadogAPIClient::V1::EventCreateRequest.new({ text: "Oh boy!", title: "Did you hear the news today?" }) # EventCreateRequest | Event request object
body = DatadogAPIClient::V1::EventCreateRequest.new({text: 'Oh boy!', title: 'Did you hear the news today?'}) # EventCreateRequest | Event request object

begin
# Post an event
Expand Down
2 changes: 1 addition & 1 deletion examples/generated/v1/events/GetEvent.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::EventsAPI.new
event_id = 789 # Integer | The ID of the event.

Expand Down
8 changes: 4 additions & 4 deletions examples/generated/v1/events/ListEvents.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::EventsAPI.new
start = 789 # Integer | POSIX timestamp.
_end = 789 # Integer | POSIX timestamp.
opts = {
priority: DatadogAPIClient::V1::EventPriority::NORMAL, # EventPriority | Priority of your events, either `low` or `normal`.
sources: "sources_example", # String | A comma separated string of sources.
tags: "host:host0", # String | A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope.
sources: 'sources_example', # String | A comma separated string of sources.
tags: 'host:host0', # String | A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope.
unaggregated: true, # Boolean | Set unaggregated to `true` to return all events within the specified [`start`,`end`] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won't be available in the output. Aggregated events with `is_aggregate=true` in the response will still be returned unless exclude_aggregate is set to `true.`
exclude_aggregate: true, # Boolean | Set `exclude_aggregate` to `true` to only return unaggregated events where `is_aggregate=false` in the response. If the `exclude_aggregate` parameter is set to `true`, then the unaggregated parameter is ignored and will be `true` by default.
page: 56, # Integer | By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to `true.`
page: 56 # Integer | By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to `true.`
}

begin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new
body = DatadogAPIClient::V1::GCPAccount.new # GCPAccount | Create a Datadog-GCP integration.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new
body = DatadogAPIClient::V1::GCPAccount.new # GCPAccount | Delete a given Datadog-GCP integration.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "datadog_api_client"
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new

begin
Expand Down
Loading

0 comments on commit 6022c49

Please sign in to comment.