From f90503e88e18a69245e1bcaf8f902c03a6e11445 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 2 Feb 2022 19:34:30 +0000 Subject: [PATCH] pre-commit fixes --- examples/generated/v1/authentication/Validate.rb | 2 +- .../v1/aws-integration/CreateAWSAccount.rb | 2 +- .../v1/aws-integration/CreateAWSTagFilter.rb | 2 +- .../v1/aws-integration/CreateNewAWSExternalId.rb | 2 +- .../v1/aws-integration/DeleteAWSAccount.rb | 2 +- .../v1/aws-integration/DeleteAWSTagFilter.rb | 2 +- .../v1/aws-integration/ListAWSAccounts.rb | 8 ++++---- .../v1/aws-integration/ListAWSTagFilters.rb | 4 ++-- .../aws-integration/ListAvailableAWSNamespaces.rb | 2 +- .../v1/aws-integration/UpdateAWSAccount.rb | 8 ++++---- .../CheckAWSLogsLambdaAsync.rb | 4 ++-- .../CheckAWSLogsServicesAsync.rb | 4 ++-- .../v1/aws-logs-integration/CreateAWSLambdaArn.rb | 4 ++-- .../v1/aws-logs-integration/DeleteAWSLambdaArn.rb | 4 ++-- .../aws-logs-integration/EnableAWSLogServices.rb | 4 ++-- .../ListAWSLogsIntegrations.rb | 2 +- .../v1/aws-logs-integration/ListAWSLogsServices.rb | 2 +- .../v1/azure-integration/CreateAzureIntegration.rb | 2 +- .../v1/azure-integration/DeleteAzureIntegration.rb | 2 +- .../v1/azure-integration/ListAzureIntegration.rb | 2 +- .../v1/azure-integration/UpdateAzureHostFilters.rb | 2 +- .../v1/azure-integration/UpdateAzureIntegration.rb | 2 +- .../v1/dashboard-lists/CreateDashboardList.rb | 4 ++-- .../v1/dashboard-lists/DeleteDashboardList.rb | 2 +- .../v1/dashboard-lists/GetDashboardList.rb | 2 +- .../v1/dashboard-lists/ListDashboardLists.rb | 2 +- .../v1/dashboard-lists/UpdateDashboardList.rb | 4 ++-- .../generated/v1/dashboards/CreateDashboard.rb | 4 ++-- .../generated/v1/dashboards/DeleteDashboard.rb | 4 ++-- .../generated/v1/dashboards/DeleteDashboards.rb | 4 ++-- examples/generated/v1/dashboards/GetDashboard.rb | 4 ++-- examples/generated/v1/dashboards/ListDashboards.rb | 4 ++-- .../generated/v1/dashboards/RestoreDashboards.rb | 4 ++-- .../generated/v1/dashboards/UpdateDashboard.rb | 6 +++--- examples/generated/v1/downtimes/CancelDowntime.rb | 2 +- .../v1/downtimes/CancelDowntimesByScope.rb | 4 ++-- examples/generated/v1/downtimes/CreateDowntime.rb | 2 +- examples/generated/v1/downtimes/GetDowntime.rb | 2 +- examples/generated/v1/downtimes/ListDowntimes.rb | 4 ++-- .../generated/v1/downtimes/ListMonitorDowntimes.rb | 2 +- examples/generated/v1/downtimes/UpdateDowntime.rb | 2 +- examples/generated/v1/events/CreateEvent.rb | 4 ++-- examples/generated/v1/events/GetEvent.rb | 2 +- examples/generated/v1/events/ListEvents.rb | 8 ++++---- .../v1/gcp-integration/CreateGCPIntegration.rb | 2 +- .../v1/gcp-integration/DeleteGCPIntegration.rb | 2 +- .../v1/gcp-integration/ListGCPIntegration.rb | 2 +- .../v1/gcp-integration/UpdateGCPIntegration.rb | 2 +- examples/generated/v1/hosts/GetHostTotals.rb | 4 ++-- examples/generated/v1/hosts/ListHosts.rb | 10 +++++----- examples/generated/v1/hosts/MuteHost.rb | 4 ++-- examples/generated/v1/hosts/UnmuteHost.rb | 4 ++-- examples/generated/v1/ip-ranges/GetIPRanges.rb | 2 +- .../generated/v1/key-management/CreateApiKey.rb | 4 ++-- .../v1/key-management/CreateApplicationKey.rb | 4 ++-- .../generated/v1/key-management/DeleteApiKey.rb | 4 ++-- .../v1/key-management/DeleteApplicationKey.rb | 4 ++-- examples/generated/v1/key-management/GetApiKey.rb | 4 ++-- .../v1/key-management/GetApplicationKey.rb | 4 ++-- .../generated/v1/key-management/ListApiKeys.rb | 2 +- .../v1/key-management/ListApplicationKeys.rb | 2 +- .../generated/v1/key-management/UpdateApiKey.rb | 6 +++--- .../v1/key-management/UpdateApplicationKey.rb | 6 +++--- .../generated/v1/logs-indexes/CreateLogsIndex.rb | 4 ++-- examples/generated/v1/logs-indexes/GetLogsIndex.rb | 4 ++-- .../generated/v1/logs-indexes/GetLogsIndexOrder.rb | 2 +- .../generated/v1/logs-indexes/ListLogIndexes.rb | 2 +- .../generated/v1/logs-indexes/UpdateLogsIndex.rb | 6 +++--- .../v1/logs-indexes/UpdateLogsIndexOrder.rb | 4 ++-- .../v1/logs-pipelines/CreateLogsPipeline.rb | 4 ++-- .../v1/logs-pipelines/DeleteLogsPipeline.rb | 4 ++-- .../generated/v1/logs-pipelines/GetLogsPipeline.rb | 4 ++-- .../v1/logs-pipelines/GetLogsPipelineOrder.rb | 2 +- .../v1/logs-pipelines/ListLogsPipelines.rb | 2 +- .../v1/logs-pipelines/UpdateLogsPipeline.rb | 6 +++--- .../v1/logs-pipelines/UpdateLogsPipelineOrder.rb | 4 ++-- examples/generated/v1/logs/ListLogs.rb | 4 ++-- examples/generated/v1/logs/SubmitLog.rb | 4 ++-- examples/generated/v1/metrics/GetMetricMetadata.rb | 4 ++-- examples/generated/v1/metrics/ListActiveMetrics.rb | 6 +++--- examples/generated/v1/metrics/ListMetrics.rb | 4 ++-- examples/generated/v1/metrics/QueryMetrics.rb | 4 ++-- examples/generated/v1/metrics/SubmitMetrics.rb | 6 +++--- .../generated/v1/metrics/UpdateMetricMetadata.rb | 4 ++-- .../generated/v1/monitors/CheckCanDeleteMonitor.rb | 2 +- examples/generated/v1/monitors/CreateMonitor.rb | 4 ++-- examples/generated/v1/monitors/DeleteMonitor.rb | 4 ++-- examples/generated/v1/monitors/GetMonitor.rb | 4 ++-- examples/generated/v1/monitors/ListMonitors.rb | 12 ++++++------ .../generated/v1/monitors/SearchMonitorGroups.rb | 6 +++--- examples/generated/v1/monitors/SearchMonitors.rb | 6 +++--- examples/generated/v1/monitors/UpdateMonitor.rb | 2 +- examples/generated/v1/monitors/ValidateMonitor.rb | 4 ++-- examples/generated/v1/notebooks/CreateNotebook.rb | 4 ++-- examples/generated/v1/notebooks/DeleteNotebook.rb | 2 +- examples/generated/v1/notebooks/GetNotebook.rb | 2 +- examples/generated/v1/notebooks/ListNotebooks.rb | 14 +++++++------- examples/generated/v1/notebooks/UpdateNotebook.rb | 4 ++-- .../generated/v1/organizations/CreateChildOrg.rb | 4 ++-- examples/generated/v1/organizations/GetOrg.rb | 4 ++-- examples/generated/v1/organizations/ListOrgs.rb | 2 +- examples/generated/v1/organizations/UpdateOrg.rb | 6 +++--- .../generated/v1/organizations/UploadIDPForOrg.rb | 6 +++--- .../CreatePagerDutyIntegrationService.rb | 4 ++-- .../DeletePagerDutyIntegrationService.rb | 4 ++-- .../GetPagerDutyIntegrationService.rb | 4 ++-- .../UpdatePagerDutyIntegrationService.rb | 6 +++--- .../v1/service-checks/SubmitServiceCheck.rb | 4 ++-- .../CreateSLOCorrection.rb | 2 +- .../DeleteSLOCorrection.rb | 4 ++-- .../GetSLOCorrection.rb | 4 ++-- .../ListSLOCorrection.rb | 2 +- .../UpdateSLOCorrection.rb | 4 ++-- .../service-level-objectives/CheckCanDeleteSLO.rb | 4 ++-- .../v1/service-level-objectives/CreateSLO.rb | 4 ++-- .../v1/service-level-objectives/DeleteSLO.rb | 6 +++--- .../DeleteSLOTimeframeInBulk.rb | 4 ++-- .../v1/service-level-objectives/GetSLO.rb | 6 +++--- .../service-level-objectives/GetSLOCorrections.rb | 4 ++-- .../v1/service-level-objectives/GetSLOHistory.rb | 6 +++--- .../v1/service-level-objectives/ListSLOs.rb | 12 ++++++------ .../v1/service-level-objectives/UpdateSLO.rb | 6 +++--- .../CreateSlackIntegrationChannel.rb | 4 ++-- .../GetSlackIntegrationChannel.rb | 6 +++--- .../GetSlackIntegrationChannels.rb | 4 ++-- .../RemoveSlackIntegrationChannel.rb | 6 +++--- .../UpdateSlackIntegrationChannel.rb | 6 +++--- .../generated/v1/snapshots/GetGraphSnapshot.rb | 10 +++++----- .../v1/synthetics/CreateGlobalVariable.rb | 4 ++-- .../v1/synthetics/CreatePrivateLocation.rb | 4 ++-- .../v1/synthetics/CreateSyntheticsApiTest.rb | 4 ++-- .../v1/synthetics/CreateSyntheticsBrowserTest.rb | 4 ++-- .../v1/synthetics/DeleteGlobalVariable.rb | 4 ++-- .../v1/synthetics/DeletePrivateLocation.rb | 4 ++-- examples/generated/v1/synthetics/DeleteTests.rb | 2 +- .../generated/v1/synthetics/EditGlobalVariable.rb | 6 +++--- examples/generated/v1/synthetics/GetApiTest.rb | 4 ++-- .../v1/synthetics/GetApiTestLatestResults.rb | 6 +++--- .../generated/v1/synthetics/GetApiTestResult.rb | 6 +++--- examples/generated/v1/synthetics/GetBrowserTest.rb | 4 ++-- .../v1/synthetics/GetBrowserTestLatestResults.rb | 6 +++--- .../v1/synthetics/GetBrowserTestResult.rb | 6 +++--- .../generated/v1/synthetics/GetGlobalVariable.rb | 4 ++-- .../generated/v1/synthetics/GetPrivateLocation.rb | 4 ++-- .../v1/synthetics/GetSyntheticsCiBatch.rb | 4 ++-- examples/generated/v1/synthetics/GetTest.rb | 4 ++-- .../generated/v1/synthetics/ListGlobalVariables.rb | 2 +- examples/generated/v1/synthetics/ListLocations.rb | 2 +- examples/generated/v1/synthetics/ListTests.rb | 2 +- examples/generated/v1/synthetics/TriggerCiTests.rb | 2 +- examples/generated/v1/synthetics/TriggerTests.rb | 4 ++-- examples/generated/v1/synthetics/UpdateApiTest.rb | 6 +++--- .../generated/v1/synthetics/UpdateBrowserTest.rb | 6 +++--- .../v1/synthetics/UpdatePrivateLocation.rb | 6 +++--- .../v1/synthetics/UpdateTestPauseStatus.rb | 4 ++-- examples/generated/v1/tags/CreateHostTags.rb | 6 +++--- examples/generated/v1/tags/DeleteHostTags.rb | 6 +++--- examples/generated/v1/tags/GetHostTags.rb | 6 +++--- examples/generated/v1/tags/ListHostTags.rb | 4 ++-- examples/generated/v1/tags/UpdateHostTags.rb | 6 +++--- .../v1/usage-metering/GetDailyCustomReports.rb | 4 ++-- .../v1/usage-metering/GetHourlyUsageAttribution.rb | 10 +++++----- .../v1/usage-metering/GetIncidentManagement.rb | 6 +++--- .../v1/usage-metering/GetIngestedSpans.rb | 6 +++--- .../v1/usage-metering/GetMonthlyCustomReports.rb | 4 ++-- .../usage-metering/GetMonthlyUsageAttribution.rb | 10 +++++----- .../GetSpecifiedDailyCustomReports.rb | 4 ++-- .../GetSpecifiedMonthlyCustomReports.rb | 4 ++-- .../v1/usage-metering/GetUsageAnalyzedLogs.rb | 6 +++--- .../v1/usage-metering/GetUsageAttribution.rb | 8 ++++---- .../v1/usage-metering/GetUsageAuditLogs.rb | 6 +++--- .../v1/usage-metering/GetUsageBillableSummary.rb | 4 ++-- .../GetUsageCloudSecurityPostureManagement.rb | 6 +++--- .../generated/v1/usage-metering/GetUsageCws.rb | 6 +++--- .../generated/v1/usage-metering/GetUsageDbm.rb | 6 +++--- .../generated/v1/usage-metering/GetUsageFargate.rb | 6 +++--- .../generated/v1/usage-metering/GetUsageHosts.rb | 6 +++--- .../v1/usage-metering/GetUsageIndexedSpans.rb | 6 +++--- .../v1/usage-metering/GetUsageInternetOfThings.rb | 6 +++--- .../generated/v1/usage-metering/GetUsageLambda.rb | 6 +++--- .../generated/v1/usage-metering/GetUsageLogs.rb | 6 +++--- .../v1/usage-metering/GetUsageLogsByIndex.rb | 8 ++++---- .../v1/usage-metering/GetUsageLogsByRetention.rb | 6 +++--- .../v1/usage-metering/GetUsageNetworkFlows.rb | 6 +++--- .../v1/usage-metering/GetUsageNetworkHosts.rb | 6 +++--- .../v1/usage-metering/GetUsageProfiling.rb | 6 +++--- .../v1/usage-metering/GetUsageRumSessions.rb | 8 ++++---- .../v1/usage-metering/GetUsageRumUnits.rb | 6 +++--- .../generated/v1/usage-metering/GetUsageSds.rb | 6 +++--- .../generated/v1/usage-metering/GetUsageSnmp.rb | 6 +++--- .../generated/v1/usage-metering/GetUsageSummary.rb | 8 ++++---- .../v1/usage-metering/GetUsageSynthetics.rb | 6 +++--- .../v1/usage-metering/GetUsageSyntheticsApi.rb | 6 +++--- .../v1/usage-metering/GetUsageSyntheticsBrowser.rb | 6 +++--- .../v1/usage-metering/GetUsageTimeseries.rb | 6 +++--- .../v1/usage-metering/GetUsageTopAvgMetrics.rb | 10 +++++----- examples/generated/v1/users/CreateUser.rb | 2 +- examples/generated/v1/users/DisableUser.rb | 2 +- examples/generated/v1/users/GetUser.rb | 2 +- examples/generated/v1/users/ListUsers.rb | 2 +- examples/generated/v1/users/UpdateUser.rb | 2 +- .../CreateWebhooksIntegration.rb | 4 ++-- .../CreateWebhooksIntegrationCustomVariable.rb | 4 ++-- .../DeleteWebhooksIntegration.rb | 4 ++-- .../DeleteWebhooksIntegrationCustomVariable.rb | 4 ++-- .../webhooks-integration/GetWebhooksIntegration.rb | 4 ++-- .../GetWebhooksIntegrationCustomVariable.rb | 4 ++-- .../UpdateWebhooksIntegration.rb | 4 ++-- .../UpdateWebhooksIntegrationCustomVariable.rb | 4 ++-- .../CreateCloudWorkloadSecurityAgentRule.rb | 4 ++-- .../DeleteCloudWorkloadSecurityAgentRule.rb | 4 ++-- .../DownloadCloudWorkloadPolicyFile.rb | 2 +- .../GetCloudWorkloadSecurityAgentRule.rb | 4 ++-- .../ListCloudWorkloadSecurityAgentRules.rb | 2 +- .../UpdateCloudWorkloadSecurityAgentRule.rb | 6 +++--- .../v2/dashboard-lists/CreateDashboardListItems.rb | 2 +- .../v2/dashboard-lists/DeleteDashboardListItems.rb | 2 +- .../v2/dashboard-lists/GetDashboardListItems.rb | 2 +- .../v2/dashboard-lists/UpdateDashboardListItems.rb | 2 +- .../v2/incident-services/CreateIncidentService.rb | 4 ++-- .../v2/incident-services/DeleteIncidentService.rb | 4 ++-- .../v2/incident-services/GetIncidentService.rb | 6 +++--- .../v2/incident-services/ListIncidentServices.rb | 4 ++-- .../v2/incident-services/UpdateIncidentService.rb | 6 +++--- .../v2/incident-teams/CreateIncidentTeam.rb | 4 ++-- .../v2/incident-teams/DeleteIncidentTeam.rb | 4 ++-- .../generated/v2/incident-teams/GetIncidentTeam.rb | 6 +++--- .../v2/incident-teams/ListIncidentTeams.rb | 4 ++-- .../v2/incident-teams/UpdateIncidentTeam.rb | 6 +++--- examples/generated/v2/incidents/CreateIncident.rb | 4 ++-- examples/generated/v2/incidents/DeleteIncident.rb | 4 ++-- examples/generated/v2/incidents/GetIncident.rb | 6 +++--- examples/generated/v2/incidents/ListIncidents.rb | 4 ++-- examples/generated/v2/incidents/UpdateIncident.rb | 6 +++--- .../generated/v2/key-management/CreateApiKey.rb | 4 ++-- .../CreateCurrentUserApplicationKey.rb | 4 ++-- .../generated/v2/key-management/DeleteApiKey.rb | 4 ++-- .../v2/key-management/DeleteApplicationKey.rb | 4 ++-- .../DeleteCurrentUserApplicationKey.rb | 4 ++-- examples/generated/v2/key-management/GetApiKey.rb | 6 +++--- .../v2/key-management/GetApplicationKey.rb | 6 +++--- .../key-management/GetCurrentUserApplicationKey.rb | 4 ++-- .../generated/v2/key-management/ListApiKeys.rb | 14 +++++++------- .../v2/key-management/ListApplicationKeys.rb | 8 ++++---- .../ListCurrentUserApplicationKeys.rb | 8 ++++---- .../generated/v2/key-management/UpdateApiKey.rb | 6 +++--- .../v2/key-management/UpdateApplicationKey.rb | 6 +++--- .../UpdateCurrentUserApplicationKey.rb | 6 +++--- .../v2/logs-archives/AddReadRoleToArchive.rb | 6 +++--- .../v2/logs-archives/CreateLogsArchive.rb | 2 +- .../v2/logs-archives/DeleteLogsArchive.rb | 4 ++-- .../generated/v2/logs-archives/GetLogsArchive.rb | 4 ++-- .../v2/logs-archives/GetLogsArchiveOrder.rb | 2 +- .../v2/logs-archives/ListArchiveReadRoles.rb | 4 ++-- .../generated/v2/logs-archives/ListLogsArchives.rb | 2 +- .../v2/logs-archives/RemoveRoleFromArchive.rb | 6 +++--- .../v2/logs-archives/UpdateLogsArchive.rb | 4 ++-- .../v2/logs-archives/UpdateLogsArchiveOrder.rb | 2 +- .../generated/v2/logs-metrics/CreateLogsMetric.rb | 4 ++-- .../generated/v2/logs-metrics/DeleteLogsMetric.rb | 4 ++-- .../generated/v2/logs-metrics/GetLogsMetric.rb | 4 ++-- .../generated/v2/logs-metrics/ListLogsMetrics.rb | 2 +- .../generated/v2/logs-metrics/UpdateLogsMetric.rb | 6 +++--- examples/generated/v2/logs/AggregateLogs.rb | 4 ++-- examples/generated/v2/logs/ListLogs.rb | 4 ++-- examples/generated/v2/logs/ListLogsGet.rb | 14 +++++++------- examples/generated/v2/logs/SubmitLog.rb | 4 ++-- .../generated/v2/metrics/CreateTagConfiguration.rb | 6 +++--- .../generated/v2/metrics/DeleteTagConfiguration.rb | 4 ++-- .../v2/metrics/ListTagConfigurationByName.rb | 4 ++-- .../generated/v2/metrics/ListTagConfigurations.rb | 8 ++++---- .../generated/v2/metrics/ListTagsByMetricName.rb | 4 ++-- .../v2/metrics/ListVolumesByMetricName.rb | 4 ++-- .../generated/v2/metrics/UpdateTagConfiguration.rb | 6 +++--- examples/generated/v2/processes/ListProcesses.rb | 8 ++++---- examples/generated/v2/roles/AddPermissionToRole.rb | 6 +++--- examples/generated/v2/roles/AddUserToRole.rb | 6 +++--- examples/generated/v2/roles/CloneRole.rb | 6 +++--- examples/generated/v2/roles/CreateRole.rb | 4 ++-- examples/generated/v2/roles/DeleteRole.rb | 4 ++-- examples/generated/v2/roles/GetRole.rb | 4 ++-- examples/generated/v2/roles/ListPermissions.rb | 2 +- examples/generated/v2/roles/ListRolePermissions.rb | 4 ++-- examples/generated/v2/roles/ListRoleUsers.rb | 8 ++++---- examples/generated/v2/roles/ListRoles.rb | 4 ++-- .../generated/v2/roles/RemovePermissionFromRole.rb | 6 +++--- examples/generated/v2/roles/RemoveUserFromRole.rb | 6 +++--- examples/generated/v2/roles/UpdateRole.rb | 6 +++--- .../v2/security-monitoring/CreateSecurityFilter.rb | 4 ++-- .../CreateSecurityMonitoringRule.rb | 4 ++-- .../v2/security-monitoring/DeleteSecurityFilter.rb | 4 ++-- .../DeleteSecurityMonitoringRule.rb | 4 ++-- .../v2/security-monitoring/GetSecurityFilter.rb | 4 ++-- .../GetSecurityMonitoringRule.rb | 4 ++-- .../v2/security-monitoring/ListSecurityFilters.rb | 2 +- .../ListSecurityMonitoringRules.rb | 4 ++-- .../ListSecurityMonitoringSignals.rb | 12 ++++++------ .../SearchSecurityMonitoringSignals.rb | 4 ++-- .../v2/security-monitoring/UpdateSecurityFilter.rb | 6 +++--- .../UpdateSecurityMonitoringRule.rb | 6 +++--- .../CreateServiceAccountApplicationKey.rb | 6 +++--- .../DeleteServiceAccountApplicationKey.rb | 6 +++--- .../GetServiceAccountApplicationKey.rb | 6 +++--- .../ListServiceAccountApplicationKeys.rb | 10 +++++----- .../UpdateServiceAccountApplicationKey.rb | 8 ++++---- .../generated/v2/users/CreateServiceAccount.rb | 4 ++-- examples/generated/v2/users/CreateUser.rb | 4 ++-- examples/generated/v2/users/DisableUser.rb | 4 ++-- examples/generated/v2/users/GetInvitation.rb | 4 ++-- examples/generated/v2/users/GetUser.rb | 4 ++-- .../generated/v2/users/ListUserOrganizations.rb | 4 ++-- examples/generated/v2/users/ListUserPermissions.rb | 4 ++-- examples/generated/v2/users/ListUsers.rb | 8 ++++---- examples/generated/v2/users/SendInvitations.rb | 4 ++-- examples/generated/v2/users/UpdateUser.rb | 6 +++--- 315 files changed, 723 insertions(+), 723 deletions(-) diff --git a/examples/generated/v1/authentication/Validate.rb b/examples/generated/v1/authentication/Validate.rb index 906bdf747abe..f7f81307a51d 100644 --- a/examples/generated/v1/authentication/Validate.rb +++ b/examples/generated/v1/authentication/Validate.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::AuthenticationAPI.new begin diff --git a/examples/generated/v1/aws-integration/CreateAWSAccount.rb b/examples/generated/v1/aws-integration/CreateAWSAccount.rb index 635badad04ac..db8ac3b43195 100644 --- a/examples/generated/v1/aws-integration/CreateAWSAccount.rb +++ b/examples/generated/v1/aws-integration/CreateAWSAccount.rb @@ -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 diff --git a/examples/generated/v1/aws-integration/CreateAWSTagFilter.rb b/examples/generated/v1/aws-integration/CreateAWSTagFilter.rb index d8442ac7e4f1..930ed0a83f25 100644 --- a/examples/generated/v1/aws-integration/CreateAWSTagFilter.rb +++ b/examples/generated/v1/aws-integration/CreateAWSTagFilter.rb @@ -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`. diff --git a/examples/generated/v1/aws-integration/CreateNewAWSExternalId.rb b/examples/generated/v1/aws-integration/CreateNewAWSExternalId.rb index a04d48e218ef..4b66bc3c753f 100644 --- a/examples/generated/v1/aws-integration/CreateNewAWSExternalId.rb +++ b/examples/generated/v1/aws-integration/CreateNewAWSExternalId.rb @@ -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). diff --git a/examples/generated/v1/aws-integration/DeleteAWSAccount.rb b/examples/generated/v1/aws-integration/DeleteAWSAccount.rb index fd53da4430b0..9ec5b86037f0 100644 --- a/examples/generated/v1/aws-integration/DeleteAWSAccount.rb +++ b/examples/generated/v1/aws-integration/DeleteAWSAccount.rb @@ -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 diff --git a/examples/generated/v1/aws-integration/DeleteAWSTagFilter.rb b/examples/generated/v1/aws-integration/DeleteAWSTagFilter.rb index 8fbe1eb09790..918a58793c1e 100644 --- a/examples/generated/v1/aws-integration/DeleteAWSTagFilter.rb +++ b/examples/generated/v1/aws-integration/DeleteAWSTagFilter.rb @@ -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. diff --git a/examples/generated/v1/aws-integration/ListAWSAccounts.rb b/examples/generated/v1/aws-integration/ListAWSAccounts.rb index 2460f70e4701..30cb4b928b9f 100644 --- a/examples/generated/v1/aws-integration/ListAWSAccounts.rb +++ b/examples/generated/v1/aws-integration/ListAWSAccounts.rb @@ -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 diff --git a/examples/generated/v1/aws-integration/ListAWSTagFilters.rb b/examples/generated/v1/aws-integration/ListAWSTagFilters.rb index 3ae67892ad8f..ff8e3f8bae5b 100644 --- a/examples/generated/v1/aws-integration/ListAWSTagFilters.rb +++ b/examples/generated/v1/aws-integration/ListAWSTagFilters.rb @@ -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 diff --git a/examples/generated/v1/aws-integration/ListAvailableAWSNamespaces.rb b/examples/generated/v1/aws-integration/ListAvailableAWSNamespaces.rb index f5e673fdcade..23fa267d76eb 100644 --- a/examples/generated/v1/aws-integration/ListAvailableAWSNamespaces.rb +++ b/examples/generated/v1/aws-integration/ListAvailableAWSNamespaces.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new begin diff --git a/examples/generated/v1/aws-integration/UpdateAWSAccount.rb b/examples/generated/v1/aws-integration/UpdateAWSAccount.rb index 9a4588ec48f8..72a4b34fc397 100644 --- a/examples/generated/v1/aws-integration/UpdateAWSAccount.rb +++ b/examples/generated/v1/aws-integration/UpdateAWSAccount.rb @@ -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 diff --git a/examples/generated/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.rb b/examples/generated/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.rb index 84d9a69dd12d..4aafa4287083 100644 --- a/examples/generated/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.rb +++ b/examples/generated/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.rb @@ -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 diff --git a/examples/generated/v1/aws-logs-integration/CheckAWSLogsServicesAsync.rb b/examples/generated/v1/aws-logs-integration/CheckAWSLogsServicesAsync.rb index 6aab11427293..fa0541566071 100644 --- a/examples/generated/v1/aws-logs-integration/CheckAWSLogsServicesAsync.rb +++ b/examples/generated/v1/aws-logs-integration/CheckAWSLogsServicesAsync.rb @@ -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 diff --git a/examples/generated/v1/aws-logs-integration/CreateAWSLambdaArn.rb b/examples/generated/v1/aws-logs-integration/CreateAWSLambdaArn.rb index c0fd1832b5ef..89bef648eccf 100644 --- a/examples/generated/v1/aws-logs-integration/CreateAWSLambdaArn.rb +++ b/examples/generated/v1/aws-logs-integration/CreateAWSLambdaArn.rb @@ -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 diff --git a/examples/generated/v1/aws-logs-integration/DeleteAWSLambdaArn.rb b/examples/generated/v1/aws-logs-integration/DeleteAWSLambdaArn.rb index aa5736353fb8..f8eaf7f81dd6 100644 --- a/examples/generated/v1/aws-logs-integration/DeleteAWSLambdaArn.rb +++ b/examples/generated/v1/aws-logs-integration/DeleteAWSLambdaArn.rb @@ -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 diff --git a/examples/generated/v1/aws-logs-integration/EnableAWSLogServices.rb b/examples/generated/v1/aws-logs-integration/EnableAWSLogServices.rb index 993acd9728b9..3a7c48965721 100644 --- a/examples/generated/v1/aws-logs-integration/EnableAWSLogServices.rb +++ b/examples/generated/v1/aws-logs-integration/EnableAWSLogServices.rb @@ -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 diff --git a/examples/generated/v1/aws-logs-integration/ListAWSLogsIntegrations.rb b/examples/generated/v1/aws-logs-integration/ListAWSLogsIntegrations.rb index bf9e6dfc682d..4323041c763e 100644 --- a/examples/generated/v1/aws-logs-integration/ListAWSLogsIntegrations.rb +++ b/examples/generated/v1/aws-logs-integration/ListAWSLogsIntegrations.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new begin diff --git a/examples/generated/v1/aws-logs-integration/ListAWSLogsServices.rb b/examples/generated/v1/aws-logs-integration/ListAWSLogsServices.rb index 05282a62cacf..7d9de62cc77f 100644 --- a/examples/generated/v1/aws-logs-integration/ListAWSLogsServices.rb +++ b/examples/generated/v1/aws-logs-integration/ListAWSLogsServices.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new begin diff --git a/examples/generated/v1/azure-integration/CreateAzureIntegration.rb b/examples/generated/v1/azure-integration/CreateAzureIntegration.rb index c03353827022..ca5ac623b21d 100644 --- a/examples/generated/v1/azure-integration/CreateAzureIntegration.rb +++ b/examples/generated/v1/azure-integration/CreateAzureIntegration.rb @@ -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. diff --git a/examples/generated/v1/azure-integration/DeleteAzureIntegration.rb b/examples/generated/v1/azure-integration/DeleteAzureIntegration.rb index aef680b6829c..13f121871e08 100644 --- a/examples/generated/v1/azure-integration/DeleteAzureIntegration.rb +++ b/examples/generated/v1/azure-integration/DeleteAzureIntegration.rb @@ -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. diff --git a/examples/generated/v1/azure-integration/ListAzureIntegration.rb b/examples/generated/v1/azure-integration/ListAzureIntegration.rb index ba4fce378951..684d6130662e 100644 --- a/examples/generated/v1/azure-integration/ListAzureIntegration.rb +++ b/examples/generated/v1/azure-integration/ListAzureIntegration.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new begin diff --git a/examples/generated/v1/azure-integration/UpdateAzureHostFilters.rb b/examples/generated/v1/azure-integration/UpdateAzureHostFilters.rb index 63053f87ffd5..1df95f28061f 100644 --- a/examples/generated/v1/azure-integration/UpdateAzureHostFilters.rb +++ b/examples/generated/v1/azure-integration/UpdateAzureHostFilters.rb @@ -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. diff --git a/examples/generated/v1/azure-integration/UpdateAzureIntegration.rb b/examples/generated/v1/azure-integration/UpdateAzureIntegration.rb index ad742024667b..f9fe95b553f5 100644 --- a/examples/generated/v1/azure-integration/UpdateAzureIntegration.rb +++ b/examples/generated/v1/azure-integration/UpdateAzureIntegration.rb @@ -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. diff --git a/examples/generated/v1/dashboard-lists/CreateDashboardList.rb b/examples/generated/v1/dashboard-lists/CreateDashboardList.rb index 4f4c8912285c..49deeb2b02d5 100644 --- a/examples/generated/v1/dashboard-lists/CreateDashboardList.rb +++ b/examples/generated/v1/dashboard-lists/CreateDashboardList.rb @@ -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 diff --git a/examples/generated/v1/dashboard-lists/DeleteDashboardList.rb b/examples/generated/v1/dashboard-lists/DeleteDashboardList.rb index 566c5c144428..16bb497102e8 100644 --- a/examples/generated/v1/dashboard-lists/DeleteDashboardList.rb +++ b/examples/generated/v1/dashboard-lists/DeleteDashboardList.rb @@ -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. diff --git a/examples/generated/v1/dashboard-lists/GetDashboardList.rb b/examples/generated/v1/dashboard-lists/GetDashboardList.rb index 9d0c4987d440..b8d8673f3467 100644 --- a/examples/generated/v1/dashboard-lists/GetDashboardList.rb +++ b/examples/generated/v1/dashboard-lists/GetDashboardList.rb @@ -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. diff --git a/examples/generated/v1/dashboard-lists/ListDashboardLists.rb b/examples/generated/v1/dashboard-lists/ListDashboardLists.rb index 3b6cec0dd367..4d7168f844ac 100644 --- a/examples/generated/v1/dashboard-lists/ListDashboardLists.rb +++ b/examples/generated/v1/dashboard-lists/ListDashboardLists.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::DashboardListsAPI.new begin diff --git a/examples/generated/v1/dashboard-lists/UpdateDashboardList.rb b/examples/generated/v1/dashboard-lists/UpdateDashboardList.rb index 93a628af1365..eca331b2560f 100644 --- a/examples/generated/v1/dashboard-lists/UpdateDashboardList.rb +++ b/examples/generated/v1/dashboard-lists/UpdateDashboardList.rb @@ -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 diff --git a/examples/generated/v1/dashboards/CreateDashboard.rb b/examples/generated/v1/dashboards/CreateDashboard.rb index 289eb893415c..8fec70c2fe7e 100644 --- a/examples/generated/v1/dashboards/CreateDashboard.rb +++ b/examples/generated/v1/dashboards/CreateDashboard.rb @@ -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 diff --git a/examples/generated/v1/dashboards/DeleteDashboard.rb b/examples/generated/v1/dashboards/DeleteDashboard.rb index 5197274ad9cf..7c15a6015790 100644 --- a/examples/generated/v1/dashboards/DeleteDashboard.rb +++ b/examples/generated/v1/dashboards/DeleteDashboard.rb @@ -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 diff --git a/examples/generated/v1/dashboards/DeleteDashboards.rb b/examples/generated/v1/dashboards/DeleteDashboards.rb index 520b701b3af1..c179c0dc92a5 100644 --- a/examples/generated/v1/dashboards/DeleteDashboards.rb +++ b/examples/generated/v1/dashboards/DeleteDashboards.rb @@ -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 diff --git a/examples/generated/v1/dashboards/GetDashboard.rb b/examples/generated/v1/dashboards/GetDashboard.rb index 73603dbc5e41..68d970bd52cc 100644 --- a/examples/generated/v1/dashboards/GetDashboard.rb +++ b/examples/generated/v1/dashboards/GetDashboard.rb @@ -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 diff --git a/examples/generated/v1/dashboards/ListDashboards.rb b/examples/generated/v1/dashboards/ListDashboards.rb index ea2074abccec..fad4e6dd03de 100644 --- a/examples/generated/v1/dashboards/ListDashboards.rb +++ b/examples/generated/v1/dashboards/ListDashboards.rb @@ -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 diff --git a/examples/generated/v1/dashboards/RestoreDashboards.rb b/examples/generated/v1/dashboards/RestoreDashboards.rb index 81db2eaf8ffa..c1c406ece880 100644 --- a/examples/generated/v1/dashboards/RestoreDashboards.rb +++ b/examples/generated/v1/dashboards/RestoreDashboards.rb @@ -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 diff --git a/examples/generated/v1/dashboards/UpdateDashboard.rb b/examples/generated/v1/dashboards/UpdateDashboard.rb index 970210a9170d..b4c38ebaf692 100644 --- a/examples/generated/v1/dashboards/UpdateDashboard.rb +++ b/examples/generated/v1/dashboards/UpdateDashboard.rb @@ -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 diff --git a/examples/generated/v1/downtimes/CancelDowntime.rb b/examples/generated/v1/downtimes/CancelDowntime.rb index a851f70991cc..3aa6394e4608 100644 --- a/examples/generated/v1/downtimes/CancelDowntime.rb +++ b/examples/generated/v1/downtimes/CancelDowntime.rb @@ -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. diff --git a/examples/generated/v1/downtimes/CancelDowntimesByScope.rb b/examples/generated/v1/downtimes/CancelDowntimesByScope.rb index 82003a625731..1b45421fcfb9 100644 --- a/examples/generated/v1/downtimes/CancelDowntimesByScope.rb +++ b/examples/generated/v1/downtimes/CancelDowntimesByScope.rb @@ -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 diff --git a/examples/generated/v1/downtimes/CreateDowntime.rb b/examples/generated/v1/downtimes/CreateDowntime.rb index c29e480172cd..5fdcf1f58a87 100644 --- a/examples/generated/v1/downtimes/CreateDowntime.rb +++ b/examples/generated/v1/downtimes/CreateDowntime.rb @@ -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. diff --git a/examples/generated/v1/downtimes/GetDowntime.rb b/examples/generated/v1/downtimes/GetDowntime.rb index fc390ac4c046..6d738fac7ab9 100644 --- a/examples/generated/v1/downtimes/GetDowntime.rb +++ b/examples/generated/v1/downtimes/GetDowntime.rb @@ -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. diff --git a/examples/generated/v1/downtimes/ListDowntimes.rb b/examples/generated/v1/downtimes/ListDowntimes.rb index 2cd4605f5cb4..1842d89d43c1 100644 --- a/examples/generated/v1/downtimes/ListDowntimes.rb +++ b/examples/generated/v1/downtimes/ListDowntimes.rb @@ -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 diff --git a/examples/generated/v1/downtimes/ListMonitorDowntimes.rb b/examples/generated/v1/downtimes/ListMonitorDowntimes.rb index 7255d8c3fa95..98bed6e72e77 100644 --- a/examples/generated/v1/downtimes/ListMonitorDowntimes.rb +++ b/examples/generated/v1/downtimes/ListMonitorDowntimes.rb @@ -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 diff --git a/examples/generated/v1/downtimes/UpdateDowntime.rb b/examples/generated/v1/downtimes/UpdateDowntime.rb index afa51b8c40ab..136a57334de0 100644 --- a/examples/generated/v1/downtimes/UpdateDowntime.rb +++ b/examples/generated/v1/downtimes/UpdateDowntime.rb @@ -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. diff --git a/examples/generated/v1/events/CreateEvent.rb b/examples/generated/v1/events/CreateEvent.rb index ba756d054ce0..8482be57c143 100644 --- a/examples/generated/v1/events/CreateEvent.rb +++ b/examples/generated/v1/events/CreateEvent.rb @@ -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 diff --git a/examples/generated/v1/events/GetEvent.rb b/examples/generated/v1/events/GetEvent.rb index d74de05bb3b1..919c45729847 100644 --- a/examples/generated/v1/events/GetEvent.rb +++ b/examples/generated/v1/events/GetEvent.rb @@ -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. diff --git a/examples/generated/v1/events/ListEvents.rb b/examples/generated/v1/events/ListEvents.rb index 46b80927f7fe..af914919b880 100644 --- a/examples/generated/v1/events/ListEvents.rb +++ b/examples/generated/v1/events/ListEvents.rb @@ -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 diff --git a/examples/generated/v1/gcp-integration/CreateGCPIntegration.rb b/examples/generated/v1/gcp-integration/CreateGCPIntegration.rb index 9b549c926832..1d86d6f86ce9 100644 --- a/examples/generated/v1/gcp-integration/CreateGCPIntegration.rb +++ b/examples/generated/v1/gcp-integration/CreateGCPIntegration.rb @@ -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. diff --git a/examples/generated/v1/gcp-integration/DeleteGCPIntegration.rb b/examples/generated/v1/gcp-integration/DeleteGCPIntegration.rb index e66a841ff99a..f6e560986231 100644 --- a/examples/generated/v1/gcp-integration/DeleteGCPIntegration.rb +++ b/examples/generated/v1/gcp-integration/DeleteGCPIntegration.rb @@ -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. diff --git a/examples/generated/v1/gcp-integration/ListGCPIntegration.rb b/examples/generated/v1/gcp-integration/ListGCPIntegration.rb index 04d387101901..aa8edd1f939f 100644 --- a/examples/generated/v1/gcp-integration/ListGCPIntegration.rb +++ b/examples/generated/v1/gcp-integration/ListGCPIntegration.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new begin diff --git a/examples/generated/v1/gcp-integration/UpdateGCPIntegration.rb b/examples/generated/v1/gcp-integration/UpdateGCPIntegration.rb index dee5d2be6001..8f7631cbc400 100644 --- a/examples/generated/v1/gcp-integration/UpdateGCPIntegration.rb +++ b/examples/generated/v1/gcp-integration/UpdateGCPIntegration.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new body = DatadogAPIClient::V1::GCPAccount.new # GCPAccount | Update a Datadog-GCP integration. diff --git a/examples/generated/v1/hosts/GetHostTotals.rb b/examples/generated/v1/hosts/GetHostTotals.rb index bcb1fa70d5b1..204fb156ba78 100644 --- a/examples/generated/v1/hosts/GetHostTotals.rb +++ b/examples/generated/v1/hosts/GetHostTotals.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::HostsAPI.new opts = { - from: 789, # Integer | Number of seconds from which you want to get total number of active hosts. + from: 789 # Integer | Number of seconds from which you want to get total number of active hosts. } begin diff --git a/examples/generated/v1/hosts/ListHosts.rb b/examples/generated/v1/hosts/ListHosts.rb index 63e625ec61dd..9bc87631f671 100644 --- a/examples/generated/v1/hosts/ListHosts.rb +++ b/examples/generated/v1/hosts/ListHosts.rb @@ -1,14 +1,14 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::HostsAPI.new opts = { - filter: "filter_example", # String | String to filter search results. - sort_field: "sort_field_example", # String | Sort hosts by this field. - sort_dir: "sort_dir_example", # String | Direction of sort. Options include `asc` and `desc`. + filter: 'filter_example', # String | String to filter search results. + sort_field: 'sort_field_example', # String | Sort hosts by this field. + sort_dir: 'sort_dir_example', # String | Direction of sort. Options include `asc` and `desc`. start: 789, # Integer | Host result to start search from. count: 789, # Integer | Number of hosts to return. Max 1000. from: 789, # Integer | Number of seconds since UNIX epoch from which you want to search your hosts. include_muted_hosts_data: true, # Boolean | Include information on the muted status of hosts and when the mute expires. - include_hosts_metadata: true, # Boolean | Include additional metadata about the hosts (agent_version, machine, platform, processor, etc.). + include_hosts_metadata: true # Boolean | Include additional metadata about the hosts (agent_version, machine, platform, processor, etc.). } begin diff --git a/examples/generated/v1/hosts/MuteHost.rb b/examples/generated/v1/hosts/MuteHost.rb index 07e28f3a3e6d..100c781dad26 100644 --- a/examples/generated/v1/hosts/MuteHost.rb +++ b/examples/generated/v1/hosts/MuteHost.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::HostsAPI.new -host_name = "host_name_example" # String | Name of the host to mute. +host_name = 'host_name_example' # String | Name of the host to mute. body = DatadogAPIClient::V1::HostMuteSettings.new # HostMuteSettings | Mute a host request body. begin diff --git a/examples/generated/v1/hosts/UnmuteHost.rb b/examples/generated/v1/hosts/UnmuteHost.rb index 06ccf5cfa0f8..cb3601fbe1d4 100644 --- a/examples/generated/v1/hosts/UnmuteHost.rb +++ b/examples/generated/v1/hosts/UnmuteHost.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::HostsAPI.new -host_name = "host_name_example" # String | Name of the host to unmute. +host_name = 'host_name_example' # String | Name of the host to unmute. begin # Unmute a host diff --git a/examples/generated/v1/ip-ranges/GetIPRanges.rb b/examples/generated/v1/ip-ranges/GetIPRanges.rb index a02f897a06cf..0a31d735190b 100644 --- a/examples/generated/v1/ip-ranges/GetIPRanges.rb +++ b/examples/generated/v1/ip-ranges/GetIPRanges.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::IPRangesAPI.new begin diff --git a/examples/generated/v1/key-management/CreateApiKey.rb b/examples/generated/v1/key-management/CreateApiKey.rb index 018cf2d81e87..8d1ed18411fd 100644 --- a/examples/generated/v1/key-management/CreateApiKey.rb +++ b/examples/generated/v1/key-management/CreateApiKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::KeyManagementAPI.new -body = DatadogAPIClient::V1::ApiKey.new # ApiKey | +body = DatadogAPIClient::V1::ApiKey.new # ApiKey | begin # Create an API key diff --git a/examples/generated/v1/key-management/CreateApplicationKey.rb b/examples/generated/v1/key-management/CreateApplicationKey.rb index 9908ff32f76f..5f82091acbdf 100644 --- a/examples/generated/v1/key-management/CreateApplicationKey.rb +++ b/examples/generated/v1/key-management/CreateApplicationKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::KeyManagementAPI.new -body = DatadogAPIClient::V1::ApplicationKey.new # ApplicationKey | +body = DatadogAPIClient::V1::ApplicationKey.new # ApplicationKey | begin # Create an application key diff --git a/examples/generated/v1/key-management/DeleteApiKey.rb b/examples/generated/v1/key-management/DeleteApiKey.rb index 86e52ec6496e..f1dec337a62b 100644 --- a/examples/generated/v1/key-management/DeleteApiKey.rb +++ b/examples/generated/v1/key-management/DeleteApiKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::KeyManagementAPI.new -key = "key_example" # String | The specific API key you are working with. +key = 'key_example' # String | The specific API key you are working with. begin # Delete an API key diff --git a/examples/generated/v1/key-management/DeleteApplicationKey.rb b/examples/generated/v1/key-management/DeleteApplicationKey.rb index 2333a540aea7..c04aecf75ab5 100644 --- a/examples/generated/v1/key-management/DeleteApplicationKey.rb +++ b/examples/generated/v1/key-management/DeleteApplicationKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::KeyManagementAPI.new -key = "key_example" # String | The specific APP key you are working with. +key = 'key_example' # String | The specific APP key you are working with. begin # Delete an application key diff --git a/examples/generated/v1/key-management/GetApiKey.rb b/examples/generated/v1/key-management/GetApiKey.rb index 7d2825094c37..318e7e3b2671 100644 --- a/examples/generated/v1/key-management/GetApiKey.rb +++ b/examples/generated/v1/key-management/GetApiKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::KeyManagementAPI.new -key = "key_example" # String | The specific API key you are working with. +key = 'key_example' # String | The specific API key you are working with. begin # Get API key diff --git a/examples/generated/v1/key-management/GetApplicationKey.rb b/examples/generated/v1/key-management/GetApplicationKey.rb index 1aa4cc6b9dd3..7b9c824d8b1b 100644 --- a/examples/generated/v1/key-management/GetApplicationKey.rb +++ b/examples/generated/v1/key-management/GetApplicationKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::KeyManagementAPI.new -key = "key_example" # String | The specific APP key you are working with. +key = 'key_example' # String | The specific APP key you are working with. begin # Get an application key diff --git a/examples/generated/v1/key-management/ListApiKeys.rb b/examples/generated/v1/key-management/ListApiKeys.rb index 2a652756d584..3f6a375f7360 100644 --- a/examples/generated/v1/key-management/ListApiKeys.rb +++ b/examples/generated/v1/key-management/ListApiKeys.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::KeyManagementAPI.new begin diff --git a/examples/generated/v1/key-management/ListApplicationKeys.rb b/examples/generated/v1/key-management/ListApplicationKeys.rb index 9b8fcad14bef..85243c4020b6 100644 --- a/examples/generated/v1/key-management/ListApplicationKeys.rb +++ b/examples/generated/v1/key-management/ListApplicationKeys.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::KeyManagementAPI.new begin diff --git a/examples/generated/v1/key-management/UpdateApiKey.rb b/examples/generated/v1/key-management/UpdateApiKey.rb index eec8c609089a..f57d12f49408 100644 --- a/examples/generated/v1/key-management/UpdateApiKey.rb +++ b/examples/generated/v1/key-management/UpdateApiKey.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::KeyManagementAPI.new -key = "key_example" # String | The specific API key you are working with. -body = DatadogAPIClient::V1::ApiKey.new # ApiKey | +key = 'key_example' # String | The specific API key you are working with. +body = DatadogAPIClient::V1::ApiKey.new # ApiKey | begin # Edit an API key diff --git a/examples/generated/v1/key-management/UpdateApplicationKey.rb b/examples/generated/v1/key-management/UpdateApplicationKey.rb index 7a0d15f97717..08589876dbcc 100644 --- a/examples/generated/v1/key-management/UpdateApplicationKey.rb +++ b/examples/generated/v1/key-management/UpdateApplicationKey.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::KeyManagementAPI.new -key = "key_example" # String | The specific APP key you are working with. -body = DatadogAPIClient::V1::ApplicationKey.new # ApplicationKey | +key = 'key_example' # String | The specific APP key you are working with. +body = DatadogAPIClient::V1::ApplicationKey.new # ApplicationKey | begin # Edit an application key diff --git a/examples/generated/v1/logs-indexes/CreateLogsIndex.rb b/examples/generated/v1/logs-indexes/CreateLogsIndex.rb index 1b97ed1449e2..079b52bf2784 100644 --- a/examples/generated/v1/logs-indexes/CreateLogsIndex.rb +++ b/examples/generated/v1/logs-indexes/CreateLogsIndex.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new -body = DatadogAPIClient::V1::LogsIndex.new({ filter: DatadogAPIClient::V1::LogsFilter.new, name: "main" }) # LogsIndex | Object containing the new index. +body = DatadogAPIClient::V1::LogsIndex.new({filter: DatadogAPIClient::V1::LogsFilter.new, name: 'main'}) # LogsIndex | Object containing the new index. begin # Create an index diff --git a/examples/generated/v1/logs-indexes/GetLogsIndex.rb b/examples/generated/v1/logs-indexes/GetLogsIndex.rb index a6911e960f2f..bca44575da5d 100644 --- a/examples/generated/v1/logs-indexes/GetLogsIndex.rb +++ b/examples/generated/v1/logs-indexes/GetLogsIndex.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new -name = "name_example" # String | Name of the log index. +name = 'name_example' # String | Name of the log index. begin # Get an index diff --git a/examples/generated/v1/logs-indexes/GetLogsIndexOrder.rb b/examples/generated/v1/logs-indexes/GetLogsIndexOrder.rb index 5034ce14ffea..801f2e1661fe 100644 --- a/examples/generated/v1/logs-indexes/GetLogsIndexOrder.rb +++ b/examples/generated/v1/logs-indexes/GetLogsIndexOrder.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new begin diff --git a/examples/generated/v1/logs-indexes/ListLogIndexes.rb b/examples/generated/v1/logs-indexes/ListLogIndexes.rb index ea786d5c090e..1c0ae167ed51 100644 --- a/examples/generated/v1/logs-indexes/ListLogIndexes.rb +++ b/examples/generated/v1/logs-indexes/ListLogIndexes.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new begin diff --git a/examples/generated/v1/logs-indexes/UpdateLogsIndex.rb b/examples/generated/v1/logs-indexes/UpdateLogsIndex.rb index 9f7951733be4..92564bff5138 100644 --- a/examples/generated/v1/logs-indexes/UpdateLogsIndex.rb +++ b/examples/generated/v1/logs-indexes/UpdateLogsIndex.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new -name = "name_example" # String | Name of the log index. -body = DatadogAPIClient::V1::LogsIndexUpdateRequest.new({ filter: DatadogAPIClient::V1::LogsFilter.new }) # LogsIndexUpdateRequest | Object containing the new `LogsIndexUpdateRequest`. +name = 'name_example' # String | Name of the log index. +body = DatadogAPIClient::V1::LogsIndexUpdateRequest.new({filter: DatadogAPIClient::V1::LogsFilter.new}) # LogsIndexUpdateRequest | Object containing the new `LogsIndexUpdateRequest`. begin # Update an index diff --git a/examples/generated/v1/logs-indexes/UpdateLogsIndexOrder.rb b/examples/generated/v1/logs-indexes/UpdateLogsIndexOrder.rb index 31cabc73c891..20f2e3d0dac7 100644 --- a/examples/generated/v1/logs-indexes/UpdateLogsIndexOrder.rb +++ b/examples/generated/v1/logs-indexes/UpdateLogsIndexOrder.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new -body = DatadogAPIClient::V1::LogsIndexesOrder.new({ index_names: ["index_names_example"] }) # LogsIndexesOrder | Object containing the new ordered list of index names +body = DatadogAPIClient::V1::LogsIndexesOrder.new({index_names: ['index_names_example']}) # LogsIndexesOrder | Object containing the new ordered list of index names begin # Update indexes order diff --git a/examples/generated/v1/logs-pipelines/CreateLogsPipeline.rb b/examples/generated/v1/logs-pipelines/CreateLogsPipeline.rb index d6268ef5425d..f2945fa496aa 100644 --- a/examples/generated/v1/logs-pipelines/CreateLogsPipeline.rb +++ b/examples/generated/v1/logs-pipelines/CreateLogsPipeline.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new -body = DatadogAPIClient::V1::LogsPipeline.new({ name: "name_example" }) # LogsPipeline | Definition of the new pipeline. +body = DatadogAPIClient::V1::LogsPipeline.new({name: 'name_example'}) # LogsPipeline | Definition of the new pipeline. begin # Create a pipeline diff --git a/examples/generated/v1/logs-pipelines/DeleteLogsPipeline.rb b/examples/generated/v1/logs-pipelines/DeleteLogsPipeline.rb index ed6b7dd24844..f338b60106dd 100644 --- a/examples/generated/v1/logs-pipelines/DeleteLogsPipeline.rb +++ b/examples/generated/v1/logs-pipelines/DeleteLogsPipeline.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new -pipeline_id = "pipeline_id_example" # String | ID of the pipeline to delete. +pipeline_id = 'pipeline_id_example' # String | ID of the pipeline to delete. begin # Delete a pipeline diff --git a/examples/generated/v1/logs-pipelines/GetLogsPipeline.rb b/examples/generated/v1/logs-pipelines/GetLogsPipeline.rb index 5b3f92af2e19..2ad5da531874 100644 --- a/examples/generated/v1/logs-pipelines/GetLogsPipeline.rb +++ b/examples/generated/v1/logs-pipelines/GetLogsPipeline.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new -pipeline_id = "pipeline_id_example" # String | ID of the pipeline to get. +pipeline_id = 'pipeline_id_example' # String | ID of the pipeline to get. begin # Get a pipeline diff --git a/examples/generated/v1/logs-pipelines/GetLogsPipelineOrder.rb b/examples/generated/v1/logs-pipelines/GetLogsPipelineOrder.rb index 6ff1e781c6ae..0d82a540b2f4 100644 --- a/examples/generated/v1/logs-pipelines/GetLogsPipelineOrder.rb +++ b/examples/generated/v1/logs-pipelines/GetLogsPipelineOrder.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new begin diff --git a/examples/generated/v1/logs-pipelines/ListLogsPipelines.rb b/examples/generated/v1/logs-pipelines/ListLogsPipelines.rb index 95e9b68e17f9..237f04a8165e 100644 --- a/examples/generated/v1/logs-pipelines/ListLogsPipelines.rb +++ b/examples/generated/v1/logs-pipelines/ListLogsPipelines.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new begin diff --git a/examples/generated/v1/logs-pipelines/UpdateLogsPipeline.rb b/examples/generated/v1/logs-pipelines/UpdateLogsPipeline.rb index 8aaf19893f83..47f248c87ddc 100644 --- a/examples/generated/v1/logs-pipelines/UpdateLogsPipeline.rb +++ b/examples/generated/v1/logs-pipelines/UpdateLogsPipeline.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new -pipeline_id = "pipeline_id_example" # String | ID of the pipeline to delete. -body = DatadogAPIClient::V1::LogsPipeline.new({ name: "name_example" }) # LogsPipeline | New definition of the pipeline. +pipeline_id = 'pipeline_id_example' # String | ID of the pipeline to delete. +body = DatadogAPIClient::V1::LogsPipeline.new({name: 'name_example'}) # LogsPipeline | New definition of the pipeline. begin # Update a pipeline diff --git a/examples/generated/v1/logs-pipelines/UpdateLogsPipelineOrder.rb b/examples/generated/v1/logs-pipelines/UpdateLogsPipelineOrder.rb index c6a9f09465c1..41a1a4605f58 100644 --- a/examples/generated/v1/logs-pipelines/UpdateLogsPipelineOrder.rb +++ b/examples/generated/v1/logs-pipelines/UpdateLogsPipelineOrder.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new -body = DatadogAPIClient::V1::LogsPipelinesOrder.new({ pipeline_ids: ["pipeline_ids_example"] }) # LogsPipelinesOrder | Object containing the new ordered list of pipeline IDs. +body = DatadogAPIClient::V1::LogsPipelinesOrder.new({pipeline_ids: ['pipeline_ids_example']}) # LogsPipelinesOrder | Object containing the new ordered list of pipeline IDs. begin # Update pipeline order diff --git a/examples/generated/v1/logs/ListLogs.rb b/examples/generated/v1/logs/ListLogs.rb index 4f028fd58742..122f3303112f 100644 --- a/examples/generated/v1/logs/ListLogs.rb +++ b/examples/generated/v1/logs/ListLogs.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsAPI.new -body = DatadogAPIClient::V1::LogsListRequest.new({ time: DatadogAPIClient::V1::LogsListRequestTime.new({ from: Time.parse("2020-02-02T02:02:02Z"), to: Time.parse("2020-02-02T20:20:20Z") }) }) # LogsListRequest | Logs filter +body = DatadogAPIClient::V1::LogsListRequest.new({time: DatadogAPIClient::V1::LogsListRequestTime.new({from: Time.parse('2020-02-02T02:02:02Z'), to: Time.parse('2020-02-02T20:20:20Z')})}) # LogsListRequest | Logs filter begin # Search logs diff --git a/examples/generated/v1/logs/SubmitLog.rb b/examples/generated/v1/logs/SubmitLog.rb index 7aae9a8c529e..fcbdd001f9a5 100644 --- a/examples/generated/v1/logs/SubmitLog.rb +++ b/examples/generated/v1/logs/SubmitLog.rb @@ -1,9 +1,9 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::LogsAPI.new body = [DatadogAPIClient::V1::HTTPLogItem.new] # Array | Log to send (JSON format). opts = { content_encoding: DatadogAPIClient::V1::ContentEncoding::GZIP, # ContentEncoding | HTTP header used to compress the media-type. - ddtags: "env:prod,user:my-user", # String | Log tags can be passed as query parameters with `text/plain` content type. + ddtags: 'env:prod,user:my-user' # String | Log tags can be passed as query parameters with `text/plain` content type. } begin diff --git a/examples/generated/v1/metrics/GetMetricMetadata.rb b/examples/generated/v1/metrics/GetMetricMetadata.rb index 26091ca379b5..8bd043154ca5 100644 --- a/examples/generated/v1/metrics/GetMetricMetadata.rb +++ b/examples/generated/v1/metrics/GetMetricMetadata.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MetricsAPI.new -metric_name = "metric_name_example" # String | Name of the metric for which to get metadata. +metric_name = 'metric_name_example' # String | Name of the metric for which to get metadata. begin # Get metric metadata diff --git a/examples/generated/v1/metrics/ListActiveMetrics.rb b/examples/generated/v1/metrics/ListActiveMetrics.rb index 068dc790834b..0a708a48fa7a 100644 --- a/examples/generated/v1/metrics/ListActiveMetrics.rb +++ b/examples/generated/v1/metrics/ListActiveMetrics.rb @@ -1,9 +1,9 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MetricsAPI.new from = 789 # Integer | Seconds since the Unix epoch. opts = { - host: "host_example", # String | Hostname for filtering the list of metrics returned. If set, metrics retrieved are those with the corresponding hostname tag. - tag_filter: "env IN (staging,test) AND service:web", # String | Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. + host: 'host_example', # String | Hostname for filtering the list of metrics returned. If set, metrics retrieved are those with the corresponding hostname tag. + tag_filter: 'env IN (staging,test) AND service:web' # String | Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. } begin diff --git a/examples/generated/v1/metrics/ListMetrics.rb b/examples/generated/v1/metrics/ListMetrics.rb index f9e383e12564..4485066980e0 100644 --- a/examples/generated/v1/metrics/ListMetrics.rb +++ b/examples/generated/v1/metrics/ListMetrics.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MetricsAPI.new -q = "q_example" # String | Query string to search metrics upon. Must be prefixed with `metrics:`. +q = 'q_example' # String | Query string to search metrics upon. Must be prefixed with `metrics:`. begin # Search metrics diff --git a/examples/generated/v1/metrics/QueryMetrics.rb b/examples/generated/v1/metrics/QueryMetrics.rb index e4136f1ce23f..c65a4bc11ab6 100644 --- a/examples/generated/v1/metrics/QueryMetrics.rb +++ b/examples/generated/v1/metrics/QueryMetrics.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MetricsAPI.new from = 789 # Integer | Start of the queried time period, seconds since the Unix epoch. to = 789 # Integer | End of the queried time period, seconds since the Unix epoch. -query = "query_example" # String | Query string. +query = 'query_example' # String | Query string. begin # Query timeseries points diff --git a/examples/generated/v1/metrics/SubmitMetrics.rb b/examples/generated/v1/metrics/SubmitMetrics.rb index 1f5332bc1fa7..0c890205d057 100644 --- a/examples/generated/v1/metrics/SubmitMetrics.rb +++ b/examples/generated/v1/metrics/SubmitMetrics.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MetricsAPI.new -body = DatadogAPIClient::V1::MetricsPayload.new({ series: [DatadogAPIClient::V1::Series.new({ metric: "system.load.1", points: [[3.56]] })] }) # MetricsPayload | +body = DatadogAPIClient::V1::MetricsPayload.new({series: [DatadogAPIClient::V1::Series.new({metric: 'system.load.1', points: [[3.56]]})]}) # MetricsPayload | opts = { - content_encoding: DatadogAPIClient::V1::MetricContentEncoding::DEFLATE, # MetricContentEncoding | HTTP header used to compress the media-type. + content_encoding: DatadogAPIClient::V1::MetricContentEncoding::DEFLATE # MetricContentEncoding | HTTP header used to compress the media-type. } begin diff --git a/examples/generated/v1/metrics/UpdateMetricMetadata.rb b/examples/generated/v1/metrics/UpdateMetricMetadata.rb index 4564a9278ecb..fc15e603e820 100644 --- a/examples/generated/v1/metrics/UpdateMetricMetadata.rb +++ b/examples/generated/v1/metrics/UpdateMetricMetadata.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MetricsAPI.new -metric_name = "metric_name_example" # String | Name of the metric for which to edit metadata. +metric_name = 'metric_name_example' # String | Name of the metric for which to edit metadata. body = DatadogAPIClient::V1::MetricMetadata.new # MetricMetadata | New metadata. begin diff --git a/examples/generated/v1/monitors/CheckCanDeleteMonitor.rb b/examples/generated/v1/monitors/CheckCanDeleteMonitor.rb index a6f339af7d70..4ae3a09503fe 100644 --- a/examples/generated/v1/monitors/CheckCanDeleteMonitor.rb +++ b/examples/generated/v1/monitors/CheckCanDeleteMonitor.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MonitorsAPI.new monitor_ids = [3.56] # Array | The IDs of the monitor to check. diff --git a/examples/generated/v1/monitors/CreateMonitor.rb b/examples/generated/v1/monitors/CreateMonitor.rb index 6b499991614c..b0cf01675066 100644 --- a/examples/generated/v1/monitors/CreateMonitor.rb +++ b/examples/generated/v1/monitors/CreateMonitor.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MonitorsAPI.new -body = DatadogAPIClient::V1::Monitor.new({ query: "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100", type: DatadogAPIClient::V1::MonitorType::COMPOSITE }) # Monitor | Create a monitor request body. +body = DatadogAPIClient::V1::Monitor.new({query: 'avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100', type: DatadogAPIClient::V1::MonitorType::COMPOSITE}) # Monitor | Create a monitor request body. begin # Create a monitor diff --git a/examples/generated/v1/monitors/DeleteMonitor.rb b/examples/generated/v1/monitors/DeleteMonitor.rb index 66c220af0fe9..e2d23317187c 100644 --- a/examples/generated/v1/monitors/DeleteMonitor.rb +++ b/examples/generated/v1/monitors/DeleteMonitor.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MonitorsAPI.new monitor_id = 789 # Integer | The ID of the monitor. opts = { - force: "false", # String | Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). + force: 'false' # String | Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). } begin diff --git a/examples/generated/v1/monitors/GetMonitor.rb b/examples/generated/v1/monitors/GetMonitor.rb index a589f0fe6f0a..327f324f02f8 100644 --- a/examples/generated/v1/monitors/GetMonitor.rb +++ b/examples/generated/v1/monitors/GetMonitor.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MonitorsAPI.new monitor_id = 789 # Integer | The ID of the monitor opts = { - group_states: "group_states_example", # String | When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. + group_states: 'group_states_example' # String | When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. } begin diff --git a/examples/generated/v1/monitors/ListMonitors.rb b/examples/generated/v1/monitors/ListMonitors.rb index 1902193bee1d..e59e317edfc4 100644 --- a/examples/generated/v1/monitors/ListMonitors.rb +++ b/examples/generated/v1/monitors/ListMonitors.rb @@ -1,14 +1,14 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MonitorsAPI.new opts = { - group_states: "alert", # String | When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. - name: "name_example", # String | A string to filter monitors by name. - tags: "host:host0", # String | A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`. - monitor_tags: "service:my-app", # String | A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. + group_states: 'alert', # String | When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. + name: 'name_example', # String | A string to filter monitors by name. + tags: 'host:host0', # String | A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`. + monitor_tags: 'service:my-app', # String | A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. with_downtimes: true, # Boolean | If this argument is set to true, then the returned data includes all current active downtimes for each monitor. id_offset: 789, # Integer | Use this parameter for paginating through large sets of monitors. Start with a value of zero, make a request, set the value to the last ID of result set, and then repeat until the response is empty. page: 0, # Integer | The page to start paginating from. If this argument is not specified, the request returns all monitors without pagination. - page_size: 20, # Integer | The number of monitors to return per page. If the page argument is not specified, the default behavior returns all monitors without a `page_size` limit. However, if page is specified and `page_size` is not, the argument defaults to 100. + page_size: 20 # Integer | The number of monitors to return per page. If the page argument is not specified, the default behavior returns all monitors without a `page_size` limit. However, if page is specified and `page_size` is not, the argument defaults to 100. } begin diff --git a/examples/generated/v1/monitors/SearchMonitorGroups.rb b/examples/generated/v1/monitors/SearchMonitorGroups.rb index 9c10f56b5308..50ee61584434 100644 --- a/examples/generated/v1/monitors/SearchMonitorGroups.rb +++ b/examples/generated/v1/monitors/SearchMonitorGroups.rb @@ -1,10 +1,10 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MonitorsAPI.new opts = { - query: "query_example", # String | After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors + query: 'query_example', # String | After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors page: 789, # Integer | Page to start paginating from. per_page: 789, # Integer | Number of monitors to return per page. - sort: "sort_example", # String | String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` + sort: 'sort_example' # String | String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` } begin diff --git a/examples/generated/v1/monitors/SearchMonitors.rb b/examples/generated/v1/monitors/SearchMonitors.rb index 9d75a36a7749..194ace453369 100644 --- a/examples/generated/v1/monitors/SearchMonitors.rb +++ b/examples/generated/v1/monitors/SearchMonitors.rb @@ -1,10 +1,10 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MonitorsAPI.new opts = { - query: "query_example", # String | After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors + query: 'query_example', # String | After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors page: 789, # Integer | Page to start paginating from. per_page: 789, # Integer | Number of monitors to return per page. - sort: "sort_example", # String | String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` + sort: 'sort_example' # String | String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` } begin diff --git a/examples/generated/v1/monitors/UpdateMonitor.rb b/examples/generated/v1/monitors/UpdateMonitor.rb index 35790fc064e0..e2ea2ebf04a1 100644 --- a/examples/generated/v1/monitors/UpdateMonitor.rb +++ b/examples/generated/v1/monitors/UpdateMonitor.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MonitorsAPI.new monitor_id = 789 # Integer | The ID of the monitor. body = DatadogAPIClient::V1::MonitorUpdateRequest.new # MonitorUpdateRequest | Edit a monitor request body. diff --git a/examples/generated/v1/monitors/ValidateMonitor.rb b/examples/generated/v1/monitors/ValidateMonitor.rb index a2b800eddfa7..f8295af355f0 100644 --- a/examples/generated/v1/monitors/ValidateMonitor.rb +++ b/examples/generated/v1/monitors/ValidateMonitor.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::MonitorsAPI.new -body = DatadogAPIClient::V1::Monitor.new({ query: "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100", type: DatadogAPIClient::V1::MonitorType::COMPOSITE }) # Monitor | Monitor request object +body = DatadogAPIClient::V1::Monitor.new({query: 'avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100', type: DatadogAPIClient::V1::MonitorType::COMPOSITE}) # Monitor | Monitor request object begin # Validate a monitor diff --git a/examples/generated/v1/notebooks/CreateNotebook.rb b/examples/generated/v1/notebooks/CreateNotebook.rb index d5f0605ac221..cd8be0981d9c 100644 --- a/examples/generated/v1/notebooks/CreateNotebook.rb +++ b/examples/generated/v1/notebooks/CreateNotebook.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::NotebooksAPI.new -body = DatadogAPIClient::V1::NotebookCreateRequest.new({ data: DatadogAPIClient::V1::NotebookCreateData.new({ attributes: DatadogAPIClient::V1::NotebookCreateDataAttributes.new({ cells: [DatadogAPIClient::V1::NotebookCellCreateRequest.new({ attributes: DatadogAPIClient::V1::NotebookDistributionCellAttributes.new({ definition: DatadogAPIClient::V1::DistributionWidgetDefinition.new({ requests: [DatadogAPIClient::V1::DistributionWidgetRequest.new], type: DatadogAPIClient::V1::DistributionWidgetDefinitionType::DISTRIBUTION }) }), type: DatadogAPIClient::V1::NotebookCellResourceType::NOTEBOOK_CELLS })], name: "Example Notebook", time: DatadogAPIClient::V1::NotebookAbsoluteTime.new({ _end: Time.parse("2021-02-24T20:18:28Z"), start: Time.parse("2021-02-24T19:18:28Z") }) }), type: DatadogAPIClient::V1::NotebookResourceType::NOTEBOOKS }) }) # NotebookCreateRequest | The JSON description of the notebook you want to create. +body = DatadogAPIClient::V1::NotebookCreateRequest.new({data: DatadogAPIClient::V1::NotebookCreateData.new({attributes: DatadogAPIClient::V1::NotebookCreateDataAttributes.new({cells: [DatadogAPIClient::V1::NotebookCellCreateRequest.new({attributes: DatadogAPIClient::V1::NotebookDistributionCellAttributes.new({definition: DatadogAPIClient::V1::DistributionWidgetDefinition.new({requests: [DatadogAPIClient::V1::DistributionWidgetRequest.new], type: DatadogAPIClient::V1::DistributionWidgetDefinitionType::DISTRIBUTION})}), type: DatadogAPIClient::V1::NotebookCellResourceType::NOTEBOOK_CELLS})], name: 'Example Notebook', time: DatadogAPIClient::V1::NotebookAbsoluteTime.new({_end: Time.parse('2021-02-24T20:18:28Z'), start: Time.parse('2021-02-24T19:18:28Z')})}), type: DatadogAPIClient::V1::NotebookResourceType::NOTEBOOKS})}) # NotebookCreateRequest | The JSON description of the notebook you want to create. begin # Create a notebook diff --git a/examples/generated/v1/notebooks/DeleteNotebook.rb b/examples/generated/v1/notebooks/DeleteNotebook.rb index bafebfe7b117..12d441e96969 100644 --- a/examples/generated/v1/notebooks/DeleteNotebook.rb +++ b/examples/generated/v1/notebooks/DeleteNotebook.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::NotebooksAPI.new notebook_id = 789 # Integer | Unique ID, assigned when you create the notebook. diff --git a/examples/generated/v1/notebooks/GetNotebook.rb b/examples/generated/v1/notebooks/GetNotebook.rb index 9021fbf6eb5a..56d9076c3c80 100644 --- a/examples/generated/v1/notebooks/GetNotebook.rb +++ b/examples/generated/v1/notebooks/GetNotebook.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::NotebooksAPI.new notebook_id = 789 # Integer | Unique ID, assigned when you create the notebook. diff --git a/examples/generated/v1/notebooks/ListNotebooks.rb b/examples/generated/v1/notebooks/ListNotebooks.rb index 2502c55ad746..7f1686fa043b 100644 --- a/examples/generated/v1/notebooks/ListNotebooks.rb +++ b/examples/generated/v1/notebooks/ListNotebooks.rb @@ -1,16 +1,16 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::NotebooksAPI.new opts = { - author_handle: "test@datadoghq.com", # String | Return notebooks created by the given `author_handle`. - exclude_author_handle: "test@datadoghq.com", # String | Return notebooks not created by the given `author_handle`. + author_handle: 'test@datadoghq.com', # String | Return notebooks created by the given `author_handle`. + exclude_author_handle: 'test@datadoghq.com', # String | Return notebooks not created by the given `author_handle`. start: 0, # Integer | The index of the first notebook you want returned. count: 5, # Integer | The number of notebooks to be returned. - sort_field: "modified", # String | Sort by field `modified`, `name`, or `created`. - sort_dir: "desc", # String | Sort by direction `asc` or `desc`. - query: "postmortem", # String | Return only notebooks with `query` string in notebook name or author handle. + sort_field: 'modified', # String | Sort by field `modified`, `name`, or `created`. + sort_dir: 'desc', # String | Sort by direction `asc` or `desc`. + query: 'postmortem', # String | Return only notebooks with `query` string in notebook name or author handle. include_cells: false, # Boolean | Value of `false` excludes the `cells` and global `time` for each notebook. is_template: false, # Boolean | True value returns only template notebooks. Default is false (returns only non-template notebooks). - type: "investigation", # String | If type is provided, returns only notebooks with that metadata type. Default does not have type filtering. + type: 'investigation' # String | If type is provided, returns only notebooks with that metadata type. Default does not have type filtering. } begin diff --git a/examples/generated/v1/notebooks/UpdateNotebook.rb b/examples/generated/v1/notebooks/UpdateNotebook.rb index 5bfba2998411..17377f62fdc8 100644 --- a/examples/generated/v1/notebooks/UpdateNotebook.rb +++ b/examples/generated/v1/notebooks/UpdateNotebook.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::NotebooksAPI.new notebook_id = 789 # Integer | Unique ID, assigned when you create the notebook. -body = DatadogAPIClient::V1::NotebookUpdateRequest.new({ data: DatadogAPIClient::V1::NotebookUpdateData.new({ attributes: DatadogAPIClient::V1::NotebookUpdateDataAttributes.new({ cells: [DatadogAPIClient::V1::NotebookCellCreateRequest.new({ attributes: DatadogAPIClient::V1::NotebookDistributionCellAttributes.new({ definition: DatadogAPIClient::V1::DistributionWidgetDefinition.new({ requests: [DatadogAPIClient::V1::DistributionWidgetRequest.new], type: DatadogAPIClient::V1::DistributionWidgetDefinitionType::DISTRIBUTION }) }), type: DatadogAPIClient::V1::NotebookCellResourceType::NOTEBOOK_CELLS })], name: "Example Notebook", time: DatadogAPIClient::V1::NotebookAbsoluteTime.new({ _end: Time.parse("2021-02-24T20:18:28Z"), start: Time.parse("2021-02-24T19:18:28Z") }) }), type: DatadogAPIClient::V1::NotebookResourceType::NOTEBOOKS }) }) # NotebookUpdateRequest | Update notebook request body. +body = DatadogAPIClient::V1::NotebookUpdateRequest.new({data: DatadogAPIClient::V1::NotebookUpdateData.new({attributes: DatadogAPIClient::V1::NotebookUpdateDataAttributes.new({cells: [DatadogAPIClient::V1::NotebookCellCreateRequest.new({attributes: DatadogAPIClient::V1::NotebookDistributionCellAttributes.new({definition: DatadogAPIClient::V1::DistributionWidgetDefinition.new({requests: [DatadogAPIClient::V1::DistributionWidgetRequest.new], type: DatadogAPIClient::V1::DistributionWidgetDefinitionType::DISTRIBUTION})}), type: DatadogAPIClient::V1::NotebookCellResourceType::NOTEBOOK_CELLS})], name: 'Example Notebook', time: DatadogAPIClient::V1::NotebookAbsoluteTime.new({_end: Time.parse('2021-02-24T20:18:28Z'), start: Time.parse('2021-02-24T19:18:28Z')})}), type: DatadogAPIClient::V1::NotebookResourceType::NOTEBOOKS})}) # NotebookUpdateRequest | Update notebook request body. begin # Update a notebook diff --git a/examples/generated/v1/organizations/CreateChildOrg.rb b/examples/generated/v1/organizations/CreateChildOrg.rb index 1bb398614662..54dc03a1029e 100644 --- a/examples/generated/v1/organizations/CreateChildOrg.rb +++ b/examples/generated/v1/organizations/CreateChildOrg.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::OrganizationsAPI.new -body = DatadogAPIClient::V1::OrganizationCreateBody.new({ name: "New child org" }) # OrganizationCreateBody | Organization object that needs to be created +body = DatadogAPIClient::V1::OrganizationCreateBody.new({name: 'New child org'}) # OrganizationCreateBody | Organization object that needs to be created begin # Create a child organization diff --git a/examples/generated/v1/organizations/GetOrg.rb b/examples/generated/v1/organizations/GetOrg.rb index 90461a0abe3a..2ce089c87a36 100644 --- a/examples/generated/v1/organizations/GetOrg.rb +++ b/examples/generated/v1/organizations/GetOrg.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::OrganizationsAPI.new -public_id = "abc123" # String | The `public_id` of the organization you are operating within. +public_id = 'abc123' # String | The `public_id` of the organization you are operating within. begin # Get organization information diff --git a/examples/generated/v1/organizations/ListOrgs.rb b/examples/generated/v1/organizations/ListOrgs.rb index 53cba0afe7e0..c18328df2b76 100644 --- a/examples/generated/v1/organizations/ListOrgs.rb +++ b/examples/generated/v1/organizations/ListOrgs.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::OrganizationsAPI.new begin diff --git a/examples/generated/v1/organizations/UpdateOrg.rb b/examples/generated/v1/organizations/UpdateOrg.rb index 19948b3f348d..5892117e344c 100644 --- a/examples/generated/v1/organizations/UpdateOrg.rb +++ b/examples/generated/v1/organizations/UpdateOrg.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::OrganizationsAPI.new -public_id = "abc123" # String | The `public_id` of the organization you are operating within. -body = DatadogAPIClient::V1::Organization.new # Organization | +public_id = 'abc123' # String | The `public_id` of the organization you are operating within. +body = DatadogAPIClient::V1::Organization.new # Organization | begin # Update your organization diff --git a/examples/generated/v1/organizations/UploadIDPForOrg.rb b/examples/generated/v1/organizations/UploadIDPForOrg.rb index ae5b42084852..d523bdc27e5c 100644 --- a/examples/generated/v1/organizations/UploadIDPForOrg.rb +++ b/examples/generated/v1/organizations/UploadIDPForOrg.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::OrganizationsAPI.new -public_id = "abc123" # String | The `public_id` of the organization you are operating with -idp_file = File.new("/path/to/some/file") # File | The path to the XML metadata file you wish to upload. +public_id = 'abc123' # String | The `public_id` of the organization you are operating with +idp_file = File.new('/path/to/some/file') # File | The path to the XML metadata file you wish to upload. begin # Upload IdP metadata diff --git a/examples/generated/v1/pager-duty-integration/CreatePagerDutyIntegrationService.rb b/examples/generated/v1/pager-duty-integration/CreatePagerDutyIntegrationService.rb index fa999c39a643..36d03a419a8f 100644 --- a/examples/generated/v1/pager-duty-integration/CreatePagerDutyIntegrationService.rb +++ b/examples/generated/v1/pager-duty-integration/CreatePagerDutyIntegrationService.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::PagerDutyIntegrationAPI.new -body = DatadogAPIClient::V1::PagerDutyService.new({ service_key: "service_key_example", service_name: "service_name_example" }) # PagerDutyService | Create a new service object request body. +body = DatadogAPIClient::V1::PagerDutyService.new({service_key: 'service_key_example', service_name: 'service_name_example'}) # PagerDutyService | Create a new service object request body. begin # Create a new service object diff --git a/examples/generated/v1/pager-duty-integration/DeletePagerDutyIntegrationService.rb b/examples/generated/v1/pager-duty-integration/DeletePagerDutyIntegrationService.rb index 7aa0a1d6f32e..335715b6fdf1 100644 --- a/examples/generated/v1/pager-duty-integration/DeletePagerDutyIntegrationService.rb +++ b/examples/generated/v1/pager-duty-integration/DeletePagerDutyIntegrationService.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::PagerDutyIntegrationAPI.new -service_name = "service_name_example" # String | The service name +service_name = 'service_name_example' # String | The service name begin # Delete a single service object diff --git a/examples/generated/v1/pager-duty-integration/GetPagerDutyIntegrationService.rb b/examples/generated/v1/pager-duty-integration/GetPagerDutyIntegrationService.rb index 9a44b18c243b..e830b5ed664a 100644 --- a/examples/generated/v1/pager-duty-integration/GetPagerDutyIntegrationService.rb +++ b/examples/generated/v1/pager-duty-integration/GetPagerDutyIntegrationService.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::PagerDutyIntegrationAPI.new -service_name = "service_name_example" # String | The service name. +service_name = 'service_name_example' # String | The service name. begin # Get a single service object diff --git a/examples/generated/v1/pager-duty-integration/UpdatePagerDutyIntegrationService.rb b/examples/generated/v1/pager-duty-integration/UpdatePagerDutyIntegrationService.rb index cfda8d40fe3e..3bdfa5c6d184 100644 --- a/examples/generated/v1/pager-duty-integration/UpdatePagerDutyIntegrationService.rb +++ b/examples/generated/v1/pager-duty-integration/UpdatePagerDutyIntegrationService.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::PagerDutyIntegrationAPI.new -service_name = "service_name_example" # String | The service name -body = DatadogAPIClient::V1::PagerDutyServiceKey.new({ service_key: "service_key_example" }) # PagerDutyServiceKey | Update an existing service object request body. +service_name = 'service_name_example' # String | The service name +body = DatadogAPIClient::V1::PagerDutyServiceKey.new({service_key: 'service_key_example'}) # PagerDutyServiceKey | Update an existing service object request body. begin # Update a single service object diff --git a/examples/generated/v1/service-checks/SubmitServiceCheck.rb b/examples/generated/v1/service-checks/SubmitServiceCheck.rb index 0fd659e23dd5..14a82cbc667e 100644 --- a/examples/generated/v1/service-checks/SubmitServiceCheck.rb +++ b/examples/generated/v1/service-checks/SubmitServiceCheck.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::ServiceChecksAPI.new -body = [DatadogAPIClient::V1::ServiceCheck.new({ check: "app.ok", host_name: "app.host1", status: DatadogAPIClient::V1::ServiceCheckStatus::OK, tags: ["tags_example"] })] # Array | Service Check request body. +body = [DatadogAPIClient::V1::ServiceCheck.new({check: 'app.ok', host_name: 'app.host1', status: DatadogAPIClient::V1::ServiceCheckStatus::OK, tags: ['tags_example']})] # Array | Service Check request body. begin # Submit a Service Check diff --git a/examples/generated/v1/service-level-objective-corrections/CreateSLOCorrection.rb b/examples/generated/v1/service-level-objective-corrections/CreateSLOCorrection.rb index 06ff69dc8ac6..758b686ebacc 100644 --- a/examples/generated/v1/service-level-objective-corrections/CreateSLOCorrection.rb +++ b/examples/generated/v1/service-level-objective-corrections/CreateSLOCorrection.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:create_slo_correction] = true diff --git a/examples/generated/v1/service-level-objective-corrections/DeleteSLOCorrection.rb b/examples/generated/v1/service-level-objective-corrections/DeleteSLOCorrection.rb index 16da970f4bbd..7ae6084245eb 100644 --- a/examples/generated/v1/service-level-objective-corrections/DeleteSLOCorrection.rb +++ b/examples/generated/v1/service-level-objective-corrections/DeleteSLOCorrection.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:delete_slo_correction] = true end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new -slo_correction_id = "slo_correction_id_example" # String | The ID of the SLO correction object. +slo_correction_id = 'slo_correction_id_example' # String | The ID of the SLO correction object. begin # Delete an SLO correction diff --git a/examples/generated/v1/service-level-objective-corrections/GetSLOCorrection.rb b/examples/generated/v1/service-level-objective-corrections/GetSLOCorrection.rb index d3cb02fcc5c3..e2d0e804e5aa 100644 --- a/examples/generated/v1/service-level-objective-corrections/GetSLOCorrection.rb +++ b/examples/generated/v1/service-level-objective-corrections/GetSLOCorrection.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_slo_correction] = true end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new -slo_correction_id = "slo_correction_id_example" # String | The ID of the SLO correction object. +slo_correction_id = 'slo_correction_id_example' # String | The ID of the SLO correction object. begin # Get an SLO correction for an SLO diff --git a/examples/generated/v1/service-level-objective-corrections/ListSLOCorrection.rb b/examples/generated/v1/service-level-objective-corrections/ListSLOCorrection.rb index 6b3e5998ace1..d80689741e74 100644 --- a/examples/generated/v1/service-level-objective-corrections/ListSLOCorrection.rb +++ b/examples/generated/v1/service-level-objective-corrections/ListSLOCorrection.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:list_slo_correction] = true diff --git a/examples/generated/v1/service-level-objective-corrections/UpdateSLOCorrection.rb b/examples/generated/v1/service-level-objective-corrections/UpdateSLOCorrection.rb index 0b0b9b948b67..4669d2b99ab3 100644 --- a/examples/generated/v1/service-level-objective-corrections/UpdateSLOCorrection.rb +++ b/examples/generated/v1/service-level-objective-corrections/UpdateSLOCorrection.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:update_slo_correction] = true end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new -slo_correction_id = "slo_correction_id_example" # String | The ID of the SLO correction object. +slo_correction_id = 'slo_correction_id_example' # String | The ID of the SLO correction object. body = DatadogAPIClient::V1::SLOCorrectionUpdateRequest.new # SLOCorrectionUpdateRequest | The edited SLO correction object. begin diff --git a/examples/generated/v1/service-level-objectives/CheckCanDeleteSLO.rb b/examples/generated/v1/service-level-objectives/CheckCanDeleteSLO.rb index 986f8bb31e21..3e05cfccafc5 100644 --- a/examples/generated/v1/service-level-objectives/CheckCanDeleteSLO.rb +++ b/examples/generated/v1/service-level-objectives/CheckCanDeleteSLO.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new -ids = "id1, id2, id3" # String | A comma separated list of the IDs of the service level objectives objects. +ids = 'id1, id2, id3' # String | A comma separated list of the IDs of the service level objectives objects. begin # Check if SLOs can be safely deleted diff --git a/examples/generated/v1/service-level-objectives/CreateSLO.rb b/examples/generated/v1/service-level-objectives/CreateSLO.rb index 67a759c532fc..bcc5a053227c 100644 --- a/examples/generated/v1/service-level-objectives/CreateSLO.rb +++ b/examples/generated/v1/service-level-objectives/CreateSLO.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new -body = DatadogAPIClient::V1::ServiceLevelObjectiveRequest.new({ name: "Custom Metric SLO", thresholds: [DatadogAPIClient::V1::SLOThreshold.new({ target: 99.9, timeframe: DatadogAPIClient::V1::SLOTimeframe::SEVEN_DAYS })], type: DatadogAPIClient::V1::SLOType::METRIC }) # ServiceLevelObjectiveRequest | Service level objective request object. +body = DatadogAPIClient::V1::ServiceLevelObjectiveRequest.new({name: 'Custom Metric SLO', thresholds: [DatadogAPIClient::V1::SLOThreshold.new({target: 99.9, timeframe: DatadogAPIClient::V1::SLOTimeframe::SEVEN_DAYS})], type: DatadogAPIClient::V1::SLOType::METRIC}) # ServiceLevelObjectiveRequest | Service level objective request object. begin # Create an SLO object diff --git a/examples/generated/v1/service-level-objectives/DeleteSLO.rb b/examples/generated/v1/service-level-objectives/DeleteSLO.rb index f49c17368724..3a2a920f1c74 100644 --- a/examples/generated/v1/service-level-objectives/DeleteSLO.rb +++ b/examples/generated/v1/service-level-objectives/DeleteSLO.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new -slo_id = "slo_id_example" # String | The ID of the service level objective. +slo_id = 'slo_id_example' # String | The ID of the service level objective. opts = { - force: "force_example", # String | Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). + force: 'force_example' # String | Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). } begin diff --git a/examples/generated/v1/service-level-objectives/DeleteSLOTimeframeInBulk.rb b/examples/generated/v1/service-level-objectives/DeleteSLOTimeframeInBulk.rb index 3fa3d424efea..9b11cfaaeb62 100644 --- a/examples/generated/v1/service-level-objectives/DeleteSLOTimeframeInBulk.rb +++ b/examples/generated/v1/service-level-objectives/DeleteSLOTimeframeInBulk.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new -body = { key: [DatadogAPIClient::V1::SLOTimeframe::SEVEN_DAYS] } # Hash> | Delete multiple service level objective objects request body. +body = { key: [DatadogAPIClient::V1::SLOTimeframe::SEVEN_DAYS]} # Hash> | Delete multiple service level objective objects request body. begin # Bulk Delete SLO Timeframes diff --git a/examples/generated/v1/service-level-objectives/GetSLO.rb b/examples/generated/v1/service-level-objectives/GetSLO.rb index fd9a403c8e43..fd4658325623 100644 --- a/examples/generated/v1/service-level-objectives/GetSLO.rb +++ b/examples/generated/v1/service-level-objectives/GetSLO.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new -slo_id = "slo_id_example" # String | The ID of the service level objective object. +slo_id = 'slo_id_example' # String | The ID of the service level objective object. opts = { - with_configured_alert_ids: true, # Boolean | Get the IDs of SLO monitors that reference this SLO. + with_configured_alert_ids: true # Boolean | Get the IDs of SLO monitors that reference this SLO. } begin diff --git a/examples/generated/v1/service-level-objectives/GetSLOCorrections.rb b/examples/generated/v1/service-level-objectives/GetSLOCorrections.rb index a37c5c657094..11ca27c50ba6 100644 --- a/examples/generated/v1/service-level-objectives/GetSLOCorrections.rb +++ b/examples/generated/v1/service-level-objectives/GetSLOCorrections.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_slo_corrections] = true end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new -slo_id = "slo_id_example" # String | The ID of the service level objective object. +slo_id = 'slo_id_example' # String | The ID of the service level objective object. begin # Get Corrections For an SLO diff --git a/examples/generated/v1/service-level-objectives/GetSLOHistory.rb b/examples/generated/v1/service-level-objectives/GetSLOHistory.rb index 080236f66d83..96e280bbefef 100644 --- a/examples/generated/v1/service-level-objectives/GetSLOHistory.rb +++ b/examples/generated/v1/service-level-objectives/GetSLOHistory.rb @@ -1,16 +1,16 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_slo_history] = true end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new -slo_id = "slo_id_example" # String | The ID of the service level objective object. +slo_id = 'slo_id_example' # String | The ID of the service level objective object. from_ts = 789 # Integer | The `from` timestamp for the query window in epoch seconds. to_ts = 789 # Integer | The `to` timestamp for the query window in epoch seconds. opts = { target: 1.2, # Float | The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. - apply_correction: true, # Boolean | Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected. + apply_correction: true # Boolean | Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected. } begin diff --git a/examples/generated/v1/service-level-objectives/ListSLOs.rb b/examples/generated/v1/service-level-objectives/ListSLOs.rb index d685b5c1168b..e0bb3c8dda4f 100644 --- a/examples/generated/v1/service-level-objectives/ListSLOs.rb +++ b/examples/generated/v1/service-level-objectives/ListSLOs.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new opts = { - ids: "id1, id2, id3", # String | A comma separated list of the IDs of the service level objectives objects. - query: "monitor", # String | The query string to filter results based on SLO names. - tags_query: "env:prod", # String | The query string to filter results based on a single SLO tag. - metrics_query: "aws.elb.request_count", # String | The query string to filter results based on SLO numerator and denominator. + ids: 'id1, id2, id3', # String | A comma separated list of the IDs of the service level objectives objects. + query: 'monitor', # String | The query string to filter results based on SLO names. + tags_query: 'env:prod', # String | The query string to filter results based on a single SLO tag. + metrics_query: 'aws.elb.request_count', # String | The query string to filter results based on SLO numerator and denominator. limit: 789, # Integer | The number of SLOs to return in the response. - offset: 789, # Integer | The specific offset to use as the beginning of the returned response. + offset: 789 # Integer | The specific offset to use as the beginning of the returned response. } begin diff --git a/examples/generated/v1/service-level-objectives/UpdateSLO.rb b/examples/generated/v1/service-level-objectives/UpdateSLO.rb index 2d62a414d4d5..3407887ba95d 100644 --- a/examples/generated/v1/service-level-objectives/UpdateSLO.rb +++ b/examples/generated/v1/service-level-objectives/UpdateSLO.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new -slo_id = "slo_id_example" # String | The ID of the service level objective object. -body = DatadogAPIClient::V1::ServiceLevelObjective.new({ name: "Custom Metric SLO", thresholds: [DatadogAPIClient::V1::SLOThreshold.new({ target: 99.9, timeframe: DatadogAPIClient::V1::SLOTimeframe::SEVEN_DAYS })], type: DatadogAPIClient::V1::SLOType::METRIC }) # ServiceLevelObjective | The edited service level objective request object. +slo_id = 'slo_id_example' # String | The ID of the service level objective object. +body = DatadogAPIClient::V1::ServiceLevelObjective.new({name: 'Custom Metric SLO', thresholds: [DatadogAPIClient::V1::SLOThreshold.new({target: 99.9, timeframe: DatadogAPIClient::V1::SLOTimeframe::SEVEN_DAYS})], type: DatadogAPIClient::V1::SLOType::METRIC}) # ServiceLevelObjective | The edited service level objective request object. begin # Update an SLO diff --git a/examples/generated/v1/slack-integration/CreateSlackIntegrationChannel.rb b/examples/generated/v1/slack-integration/CreateSlackIntegrationChannel.rb index 859168283b75..9cf1b172e381 100644 --- a/examples/generated/v1/slack-integration/CreateSlackIntegrationChannel.rb +++ b/examples/generated/v1/slack-integration/CreateSlackIntegrationChannel.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new -account_name = "account_name_example" # String | Your Slack account name. +account_name = 'account_name_example' # String | Your Slack account name. body = DatadogAPIClient::V1::SlackIntegrationChannel.new # SlackIntegrationChannel | Payload describing Slack channel to be created begin diff --git a/examples/generated/v1/slack-integration/GetSlackIntegrationChannel.rb b/examples/generated/v1/slack-integration/GetSlackIntegrationChannel.rb index 48ae8deb2632..de95321d250c 100644 --- a/examples/generated/v1/slack-integration/GetSlackIntegrationChannel.rb +++ b/examples/generated/v1/slack-integration/GetSlackIntegrationChannel.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new -account_name = "account_name_example" # String | Your Slack account name. -channel_name = "channel_name_example" # String | The name of the Slack channel being operated on. +account_name = 'account_name_example' # String | Your Slack account name. +channel_name = 'channel_name_example' # String | The name of the Slack channel being operated on. begin # Get a Slack integration channel diff --git a/examples/generated/v1/slack-integration/GetSlackIntegrationChannels.rb b/examples/generated/v1/slack-integration/GetSlackIntegrationChannels.rb index fe1d399a8c32..191590adbafa 100644 --- a/examples/generated/v1/slack-integration/GetSlackIntegrationChannels.rb +++ b/examples/generated/v1/slack-integration/GetSlackIntegrationChannels.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new -account_name = "account_name_example" # String | Your Slack account name. +account_name = 'account_name_example' # String | Your Slack account name. begin # Get all channels in a Slack integration diff --git a/examples/generated/v1/slack-integration/RemoveSlackIntegrationChannel.rb b/examples/generated/v1/slack-integration/RemoveSlackIntegrationChannel.rb index 43bb19fbfd7a..7240991a4d4a 100644 --- a/examples/generated/v1/slack-integration/RemoveSlackIntegrationChannel.rb +++ b/examples/generated/v1/slack-integration/RemoveSlackIntegrationChannel.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new -account_name = "account_name_example" # String | Your Slack account name. -channel_name = "channel_name_example" # String | The name of the Slack channel being operated on. +account_name = 'account_name_example' # String | Your Slack account name. +channel_name = 'channel_name_example' # String | The name of the Slack channel being operated on. begin # Remove a Slack integration channel diff --git a/examples/generated/v1/slack-integration/UpdateSlackIntegrationChannel.rb b/examples/generated/v1/slack-integration/UpdateSlackIntegrationChannel.rb index 815ef26fe531..ae30751935b1 100644 --- a/examples/generated/v1/slack-integration/UpdateSlackIntegrationChannel.rb +++ b/examples/generated/v1/slack-integration/UpdateSlackIntegrationChannel.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new -account_name = "account_name_example" # String | Your Slack account name. -channel_name = "channel_name_example" # String | The name of the Slack channel being operated on. +account_name = 'account_name_example' # String | Your Slack account name. +channel_name = 'channel_name_example' # String | The name of the Slack channel being operated on. body = DatadogAPIClient::V1::SlackIntegrationChannel.new # SlackIntegrationChannel | Payload describing fields and values to be updated. begin diff --git a/examples/generated/v1/snapshots/GetGraphSnapshot.rb b/examples/generated/v1/snapshots/GetGraphSnapshot.rb index 8d65f6d42f74..1d6e9a92f121 100644 --- a/examples/generated/v1/snapshots/GetGraphSnapshot.rb +++ b/examples/generated/v1/snapshots/GetGraphSnapshot.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SnapshotsAPI.new start = 789 # Integer | The POSIX timestamp of the start of the query. _end = 789 # Integer | The POSIX timestamp of the end of the query. opts = { - metric_query: "metric_query_example", # String | The metric query. - event_query: "event_query_example", # String | A query that adds event bands to the graph. - graph_def: "graph_def_example", # String | A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. - title: "title_example", # String | A title for the graph. If no title is specified, the graph does not have a title. + metric_query: 'metric_query_example', # String | The metric query. + event_query: 'event_query_example', # String | A query that adds event bands to the graph. + graph_def: 'graph_def_example', # String | A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. + title: 'title_example' # String | A title for the graph. If no title is specified, the graph does not have a title. } begin diff --git a/examples/generated/v1/synthetics/CreateGlobalVariable.rb b/examples/generated/v1/synthetics/CreateGlobalVariable.rb index 7d4c590cd9ba..2821e5e034c0 100644 --- a/examples/generated/v1/synthetics/CreateGlobalVariable.rb +++ b/examples/generated/v1/synthetics/CreateGlobalVariable.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -body = DatadogAPIClient::V1::SyntheticsGlobalVariable.new({ description: "Example description", name: "MY_VARIABLE", tags: ["tags_example"], value: DatadogAPIClient::V1::SyntheticsGlobalVariableValue.new }) # SyntheticsGlobalVariable | Details of the global variable to create. +body = DatadogAPIClient::V1::SyntheticsGlobalVariable.new({description: 'Example description', name: 'MY_VARIABLE', tags: ['tags_example'], value: DatadogAPIClient::V1::SyntheticsGlobalVariableValue.new}) # SyntheticsGlobalVariable | Details of the global variable to create. begin # Create a global variable diff --git a/examples/generated/v1/synthetics/CreatePrivateLocation.rb b/examples/generated/v1/synthetics/CreatePrivateLocation.rb index b0d2cfc2fe27..3bf2d9e6a94a 100644 --- a/examples/generated/v1/synthetics/CreatePrivateLocation.rb +++ b/examples/generated/v1/synthetics/CreatePrivateLocation.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -body = DatadogAPIClient::V1::SyntheticsPrivateLocation.new({ description: "Description of private location", name: "New private location", tags: ["team:front"] }) # SyntheticsPrivateLocation | Details of the private location to create. +body = DatadogAPIClient::V1::SyntheticsPrivateLocation.new({description: 'Description of private location', name: 'New private location', tags: ['team:front']}) # SyntheticsPrivateLocation | Details of the private location to create. begin # Create a private location diff --git a/examples/generated/v1/synthetics/CreateSyntheticsApiTest.rb b/examples/generated/v1/synthetics/CreateSyntheticsApiTest.rb index 1f9eb2340806..75df8e0d94e9 100644 --- a/examples/generated/v1/synthetics/CreateSyntheticsApiTest.rb +++ b/examples/generated/v1/synthetics/CreateSyntheticsApiTest.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -body = DatadogAPIClient::V1::SyntheticsAPITest.new({ config: DatadogAPIClient::V1::SyntheticsAPITestConfig.new, locations: ["locations_example"], name: "Example test name", options: DatadogAPIClient::V1::SyntheticsTestOptions.new, type: DatadogAPIClient::V1::SyntheticsAPITestType::API }) # SyntheticsAPITest | Details of the test to create. +body = DatadogAPIClient::V1::SyntheticsAPITest.new({config: DatadogAPIClient::V1::SyntheticsAPITestConfig.new, locations: ['locations_example'], name: 'Example test name', options: DatadogAPIClient::V1::SyntheticsTestOptions.new, type: DatadogAPIClient::V1::SyntheticsAPITestType::API}) # SyntheticsAPITest | Details of the test to create. begin # Create an API test diff --git a/examples/generated/v1/synthetics/CreateSyntheticsBrowserTest.rb b/examples/generated/v1/synthetics/CreateSyntheticsBrowserTest.rb index 268e0441fd2a..4e0b8845d555 100644 --- a/examples/generated/v1/synthetics/CreateSyntheticsBrowserTest.rb +++ b/examples/generated/v1/synthetics/CreateSyntheticsBrowserTest.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({ config: DatadogAPIClient::V1::SyntheticsBrowserTestConfig.new({ assertions: [DatadogAPIClient::V1::SyntheticsAssertionJSONPathTarget.new({ operator: DatadogAPIClient::V1::SyntheticsAssertionJSONPathOperator::VALIDATES_JSON_PATH, type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY })], request: DatadogAPIClient::V1::SyntheticsTestRequest.new }), locations: ["locations_example"], name: "Example test name", options: DatadogAPIClient::V1::SyntheticsTestOptions.new, type: DatadogAPIClient::V1::SyntheticsBrowserTestType::BROWSER }) # SyntheticsBrowserTest | Details of the test to create. +body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({config: DatadogAPIClient::V1::SyntheticsBrowserTestConfig.new({assertions: [DatadogAPIClient::V1::SyntheticsAssertionJSONPathTarget.new({operator: DatadogAPIClient::V1::SyntheticsAssertionJSONPathOperator::VALIDATES_JSON_PATH, type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY})], request: DatadogAPIClient::V1::SyntheticsTestRequest.new}), locations: ['locations_example'], name: 'Example test name', options: DatadogAPIClient::V1::SyntheticsTestOptions.new, type: DatadogAPIClient::V1::SyntheticsBrowserTestType::BROWSER}) # SyntheticsBrowserTest | Details of the test to create. begin # Create a browser test diff --git a/examples/generated/v1/synthetics/DeleteGlobalVariable.rb b/examples/generated/v1/synthetics/DeleteGlobalVariable.rb index 2474338aeeab..b07846113825 100644 --- a/examples/generated/v1/synthetics/DeleteGlobalVariable.rb +++ b/examples/generated/v1/synthetics/DeleteGlobalVariable.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -variable_id = "variable_id_example" # String | The ID of the global variable. +variable_id = 'variable_id_example' # String | The ID of the global variable. begin # Delete a global variable diff --git a/examples/generated/v1/synthetics/DeletePrivateLocation.rb b/examples/generated/v1/synthetics/DeletePrivateLocation.rb index 69dc7597cfbd..8f5e899adcd0 100644 --- a/examples/generated/v1/synthetics/DeletePrivateLocation.rb +++ b/examples/generated/v1/synthetics/DeletePrivateLocation.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -location_id = "location_id_example" # String | The ID of the private location. +location_id = 'location_id_example' # String | The ID of the private location. begin # Delete a private location diff --git a/examples/generated/v1/synthetics/DeleteTests.rb b/examples/generated/v1/synthetics/DeleteTests.rb index 15aede16f475..c5257fe24127 100644 --- a/examples/generated/v1/synthetics/DeleteTests.rb +++ b/examples/generated/v1/synthetics/DeleteTests.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsDeleteTestsPayload.new # SyntheticsDeleteTestsPayload | Public ID list of the Synthetic tests to be deleted. diff --git a/examples/generated/v1/synthetics/EditGlobalVariable.rb b/examples/generated/v1/synthetics/EditGlobalVariable.rb index aee28e379be0..4718ae144063 100644 --- a/examples/generated/v1/synthetics/EditGlobalVariable.rb +++ b/examples/generated/v1/synthetics/EditGlobalVariable.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -variable_id = "variable_id_example" # String | The ID of the global variable. -body = DatadogAPIClient::V1::SyntheticsGlobalVariable.new({ description: "Example description", name: "MY_VARIABLE", tags: ["tags_example"], value: DatadogAPIClient::V1::SyntheticsGlobalVariableValue.new }) # SyntheticsGlobalVariable | Details of the global variable to update. +variable_id = 'variable_id_example' # String | The ID of the global variable. +body = DatadogAPIClient::V1::SyntheticsGlobalVariable.new({description: 'Example description', name: 'MY_VARIABLE', tags: ['tags_example'], value: DatadogAPIClient::V1::SyntheticsGlobalVariableValue.new}) # SyntheticsGlobalVariable | Details of the global variable to update. begin # Edit a global variable diff --git a/examples/generated/v1/synthetics/GetApiTest.rb b/examples/generated/v1/synthetics/GetApiTest.rb index 86ec77544939..62056f412a75 100644 --- a/examples/generated/v1/synthetics/GetApiTest.rb +++ b/examples/generated/v1/synthetics/GetApiTest.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -public_id = "public_id_example" # String | The public ID of the test to get details from. +public_id = 'public_id_example' # String | The public ID of the test to get details from. begin # Get an API test diff --git a/examples/generated/v1/synthetics/GetApiTestLatestResults.rb b/examples/generated/v1/synthetics/GetApiTestLatestResults.rb index a74f3e410b6d..4ee10e8eda04 100644 --- a/examples/generated/v1/synthetics/GetApiTestLatestResults.rb +++ b/examples/generated/v1/synthetics/GetApiTestLatestResults.rb @@ -1,10 +1,10 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -public_id = "public_id_example" # String | The public ID of the test for which to search results for. +public_id = 'public_id_example' # String | The public ID of the test for which to search results for. opts = { from_ts: 789, # Integer | Timestamp in milliseconds from which to start querying results. to_ts: 789, # Integer | Timestamp in milliseconds up to which to query results. - probe_dc: ["inner_example"], # Array | Locations for which to query results. + probe_dc: ['inner_example'] # Array | Locations for which to query results. } begin diff --git a/examples/generated/v1/synthetics/GetApiTestResult.rb b/examples/generated/v1/synthetics/GetApiTestResult.rb index c80ea5cb262e..8beb6daa5e6c 100644 --- a/examples/generated/v1/synthetics/GetApiTestResult.rb +++ b/examples/generated/v1/synthetics/GetApiTestResult.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -public_id = "public_id_example" # String | The public ID of the API test to which the target result belongs. -result_id = "result_id_example" # String | The ID of the result to get. +public_id = 'public_id_example' # String | The public ID of the API test to which the target result belongs. +result_id = 'result_id_example' # String | The ID of the result to get. begin # Get an API test result diff --git a/examples/generated/v1/synthetics/GetBrowserTest.rb b/examples/generated/v1/synthetics/GetBrowserTest.rb index 01173db45af4..7f3be5d18b95 100644 --- a/examples/generated/v1/synthetics/GetBrowserTest.rb +++ b/examples/generated/v1/synthetics/GetBrowserTest.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -public_id = "public_id_example" # String | The public ID of the test to get details from. +public_id = 'public_id_example' # String | The public ID of the test to get details from. begin # Get a browser test diff --git a/examples/generated/v1/synthetics/GetBrowserTestLatestResults.rb b/examples/generated/v1/synthetics/GetBrowserTestLatestResults.rb index 5df1e5beddc2..08a71d1828b5 100644 --- a/examples/generated/v1/synthetics/GetBrowserTestLatestResults.rb +++ b/examples/generated/v1/synthetics/GetBrowserTestLatestResults.rb @@ -1,10 +1,10 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -public_id = "public_id_example" # String | The public ID of the browser test for which to search results for. +public_id = 'public_id_example' # String | The public ID of the browser test for which to search results for. opts = { from_ts: 789, # Integer | Timestamp in milliseconds from which to start querying results. to_ts: 789, # Integer | Timestamp in milliseconds up to which to query results. - probe_dc: ["inner_example"], # Array | Locations for which to query results. + probe_dc: ['inner_example'] # Array | Locations for which to query results. } begin diff --git a/examples/generated/v1/synthetics/GetBrowserTestResult.rb b/examples/generated/v1/synthetics/GetBrowserTestResult.rb index 868c31d5c34b..73f6bf56645c 100644 --- a/examples/generated/v1/synthetics/GetBrowserTestResult.rb +++ b/examples/generated/v1/synthetics/GetBrowserTestResult.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -public_id = "public_id_example" # String | The public ID of the browser test to which the target result belongs. -result_id = "result_id_example" # String | The ID of the result to get. +public_id = 'public_id_example' # String | The public ID of the browser test to which the target result belongs. +result_id = 'result_id_example' # String | The ID of the result to get. begin # Get a browser test result diff --git a/examples/generated/v1/synthetics/GetGlobalVariable.rb b/examples/generated/v1/synthetics/GetGlobalVariable.rb index f36cefc711ff..db662497a0b2 100644 --- a/examples/generated/v1/synthetics/GetGlobalVariable.rb +++ b/examples/generated/v1/synthetics/GetGlobalVariable.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -variable_id = "variable_id_example" # String | The ID of the global variable. +variable_id = 'variable_id_example' # String | The ID of the global variable. begin # Get a global variable diff --git a/examples/generated/v1/synthetics/GetPrivateLocation.rb b/examples/generated/v1/synthetics/GetPrivateLocation.rb index dcc6c300e665..5b7f39e2a75b 100644 --- a/examples/generated/v1/synthetics/GetPrivateLocation.rb +++ b/examples/generated/v1/synthetics/GetPrivateLocation.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -location_id = "location_id_example" # String | The ID of the private location. +location_id = 'location_id_example' # String | The ID of the private location. begin # Get a private location diff --git a/examples/generated/v1/synthetics/GetSyntheticsCiBatch.rb b/examples/generated/v1/synthetics/GetSyntheticsCiBatch.rb index f9208f5890b6..df3a156dbd1e 100644 --- a/examples/generated/v1/synthetics/GetSyntheticsCiBatch.rb +++ b/examples/generated/v1/synthetics/GetSyntheticsCiBatch.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -batch_id = "batch_id_example" # String | The ID of the batch. +batch_id = 'batch_id_example' # String | The ID of the batch. begin # Get details of batch diff --git a/examples/generated/v1/synthetics/GetTest.rb b/examples/generated/v1/synthetics/GetTest.rb index 1e095b4455dc..87f7c8c68be7 100644 --- a/examples/generated/v1/synthetics/GetTest.rb +++ b/examples/generated/v1/synthetics/GetTest.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -public_id = "public_id_example" # String | The public ID of the test to get details from. +public_id = 'public_id_example' # String | The public ID of the test to get details from. begin # Get a test configuration diff --git a/examples/generated/v1/synthetics/ListGlobalVariables.rb b/examples/generated/v1/synthetics/ListGlobalVariables.rb index 815ca926010e..215114f210c4 100644 --- a/examples/generated/v1/synthetics/ListGlobalVariables.rb +++ b/examples/generated/v1/synthetics/ListGlobalVariables.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new begin diff --git a/examples/generated/v1/synthetics/ListLocations.rb b/examples/generated/v1/synthetics/ListLocations.rb index a4d7cf8722a2..2fd8d40c395e 100644 --- a/examples/generated/v1/synthetics/ListLocations.rb +++ b/examples/generated/v1/synthetics/ListLocations.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new begin diff --git a/examples/generated/v1/synthetics/ListTests.rb b/examples/generated/v1/synthetics/ListTests.rb index c4cab989d94b..508ebbc8686d 100644 --- a/examples/generated/v1/synthetics/ListTests.rb +++ b/examples/generated/v1/synthetics/ListTests.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new begin diff --git a/examples/generated/v1/synthetics/TriggerCiTests.rb b/examples/generated/v1/synthetics/TriggerCiTests.rb index abb01b667c9a..5a576639a57e 100644 --- a/examples/generated/v1/synthetics/TriggerCiTests.rb +++ b/examples/generated/v1/synthetics/TriggerCiTests.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsCITestBody.new # SyntheticsCITestBody | Details of the test to trigger. diff --git a/examples/generated/v1/synthetics/TriggerTests.rb b/examples/generated/v1/synthetics/TriggerTests.rb index a0e5a02fb6e2..51b7f9ef3f6d 100644 --- a/examples/generated/v1/synthetics/TriggerTests.rb +++ b/examples/generated/v1/synthetics/TriggerTests.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -body = DatadogAPIClient::V1::SyntheticsTriggerBody.new({ tests: [DatadogAPIClient::V1::SyntheticsTriggerTest.new({ public_id: "aaa-aaa-aaa" })] }) # SyntheticsTriggerBody | The identifiers of the tests to trigger. +body = DatadogAPIClient::V1::SyntheticsTriggerBody.new({tests: [DatadogAPIClient::V1::SyntheticsTriggerTest.new({public_id: 'aaa-aaa-aaa'})]}) # SyntheticsTriggerBody | The identifiers of the tests to trigger. begin # Trigger Synthetics tests diff --git a/examples/generated/v1/synthetics/UpdateApiTest.rb b/examples/generated/v1/synthetics/UpdateApiTest.rb index 09d25c905797..14bea6022e62 100644 --- a/examples/generated/v1/synthetics/UpdateApiTest.rb +++ b/examples/generated/v1/synthetics/UpdateApiTest.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -public_id = "public_id_example" # String | The public ID of the test to get details from. -body = DatadogAPIClient::V1::SyntheticsAPITest.new({ config: DatadogAPIClient::V1::SyntheticsAPITestConfig.new, locations: ["locations_example"], name: "Example test name", options: DatadogAPIClient::V1::SyntheticsTestOptions.new, type: DatadogAPIClient::V1::SyntheticsAPITestType::API }) # SyntheticsAPITest | New test details to be saved. +public_id = 'public_id_example' # String | The public ID of the test to get details from. +body = DatadogAPIClient::V1::SyntheticsAPITest.new({config: DatadogAPIClient::V1::SyntheticsAPITestConfig.new, locations: ['locations_example'], name: 'Example test name', options: DatadogAPIClient::V1::SyntheticsTestOptions.new, type: DatadogAPIClient::V1::SyntheticsAPITestType::API}) # SyntheticsAPITest | New test details to be saved. begin # Edit an API test diff --git a/examples/generated/v1/synthetics/UpdateBrowserTest.rb b/examples/generated/v1/synthetics/UpdateBrowserTest.rb index fdb7a68c0e70..a26e49f448d4 100644 --- a/examples/generated/v1/synthetics/UpdateBrowserTest.rb +++ b/examples/generated/v1/synthetics/UpdateBrowserTest.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -public_id = "public_id_example" # String | The public ID of the test to get details from. -body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({ config: DatadogAPIClient::V1::SyntheticsBrowserTestConfig.new({ assertions: [DatadogAPIClient::V1::SyntheticsAssertionJSONPathTarget.new({ operator: DatadogAPIClient::V1::SyntheticsAssertionJSONPathOperator::VALIDATES_JSON_PATH, type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY })], request: DatadogAPIClient::V1::SyntheticsTestRequest.new }), locations: ["locations_example"], name: "Example test name", options: DatadogAPIClient::V1::SyntheticsTestOptions.new, type: DatadogAPIClient::V1::SyntheticsBrowserTestType::BROWSER }) # SyntheticsBrowserTest | New test details to be saved. +public_id = 'public_id_example' # String | The public ID of the test to get details from. +body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({config: DatadogAPIClient::V1::SyntheticsBrowserTestConfig.new({assertions: [DatadogAPIClient::V1::SyntheticsAssertionJSONPathTarget.new({operator: DatadogAPIClient::V1::SyntheticsAssertionJSONPathOperator::VALIDATES_JSON_PATH, type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY})], request: DatadogAPIClient::V1::SyntheticsTestRequest.new}), locations: ['locations_example'], name: 'Example test name', options: DatadogAPIClient::V1::SyntheticsTestOptions.new, type: DatadogAPIClient::V1::SyntheticsBrowserTestType::BROWSER}) # SyntheticsBrowserTest | New test details to be saved. begin # Edit a browser test diff --git a/examples/generated/v1/synthetics/UpdatePrivateLocation.rb b/examples/generated/v1/synthetics/UpdatePrivateLocation.rb index 38026a3bd9bd..4f3aa725cbd8 100644 --- a/examples/generated/v1/synthetics/UpdatePrivateLocation.rb +++ b/examples/generated/v1/synthetics/UpdatePrivateLocation.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -location_id = "location_id_example" # String | The ID of the private location. -body = DatadogAPIClient::V1::SyntheticsPrivateLocation.new({ description: "Description of private location", name: "New private location", tags: ["team:front"] }) # SyntheticsPrivateLocation | Details of the private location to be updated. +location_id = 'location_id_example' # String | The ID of the private location. +body = DatadogAPIClient::V1::SyntheticsPrivateLocation.new({description: 'Description of private location', name: 'New private location', tags: ['team:front']}) # SyntheticsPrivateLocation | Details of the private location to be updated. begin # Edit a private location diff --git a/examples/generated/v1/synthetics/UpdateTestPauseStatus.rb b/examples/generated/v1/synthetics/UpdateTestPauseStatus.rb index f139fdf2ee1c..c7e7eaed2d06 100644 --- a/examples/generated/v1/synthetics/UpdateTestPauseStatus.rb +++ b/examples/generated/v1/synthetics/UpdateTestPauseStatus.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -public_id = "public_id_example" # String | The public ID of the Synthetic test to update. +public_id = 'public_id_example' # String | The public ID of the Synthetic test to update. body = DatadogAPIClient::V1::SyntheticsUpdateTestPauseStatusPayload.new # SyntheticsUpdateTestPauseStatusPayload | Status to set the given Synthetic test to. begin diff --git a/examples/generated/v1/tags/CreateHostTags.rb b/examples/generated/v1/tags/CreateHostTags.rb index 30fe90f2548b..6e091516824b 100644 --- a/examples/generated/v1/tags/CreateHostTags.rb +++ b/examples/generated/v1/tags/CreateHostTags.rb @@ -1,9 +1,9 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::TagsAPI.new -host_name = "host_name_example" # String | This endpoint allows you to add new tags to a host, optionally specifying where the tags came from. +host_name = 'host_name_example' # String | This endpoint allows you to add new tags to a host, optionally specifying where the tags came from. body = DatadogAPIClient::V1::HostTags.new # HostTags | Update host tags request body. opts = { - source: "chef", # String | The source of the tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). + source: 'chef' # String | The source of the tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). } begin diff --git a/examples/generated/v1/tags/DeleteHostTags.rb b/examples/generated/v1/tags/DeleteHostTags.rb index 5c9208473311..34f19286bb04 100644 --- a/examples/generated/v1/tags/DeleteHostTags.rb +++ b/examples/generated/v1/tags/DeleteHostTags.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::TagsAPI.new -host_name = "host_name_example" # String | This endpoint allows you to remove all user-assigned tags for a single host. +host_name = 'host_name_example' # String | This endpoint allows you to remove all user-assigned tags for a single host. opts = { - source: "source_example", # String | The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). + source: 'source_example' # String | The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). } begin diff --git a/examples/generated/v1/tags/GetHostTags.rb b/examples/generated/v1/tags/GetHostTags.rb index 845e31a740ac..f0ed78cf150b 100644 --- a/examples/generated/v1/tags/GetHostTags.rb +++ b/examples/generated/v1/tags/GetHostTags.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::TagsAPI.new -host_name = "host_name_example" # String | When specified, filters list of tags to those tags with the specified source. +host_name = 'host_name_example' # String | When specified, filters list of tags to those tags with the specified source. opts = { - source: "source_example", # String | Source to filter. + source: 'source_example' # String | Source to filter. } begin diff --git a/examples/generated/v1/tags/ListHostTags.rb b/examples/generated/v1/tags/ListHostTags.rb index cb7c790a3b6d..72200d2b48d1 100644 --- a/examples/generated/v1/tags/ListHostTags.rb +++ b/examples/generated/v1/tags/ListHostTags.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::TagsAPI.new opts = { - source: "source_example", # String | When specified, filters host list to those tags with the specified source. + source: 'source_example' # String | When specified, filters host list to those tags with the specified source. } begin diff --git a/examples/generated/v1/tags/UpdateHostTags.rb b/examples/generated/v1/tags/UpdateHostTags.rb index ec4db97b8f01..5edfc9ef6a92 100644 --- a/examples/generated/v1/tags/UpdateHostTags.rb +++ b/examples/generated/v1/tags/UpdateHostTags.rb @@ -1,9 +1,9 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::TagsAPI.new -host_name = "host_name_example" # String | This endpoint allows you to update/replace all in an integration source with those supplied in the request. +host_name = 'host_name_example' # String | This endpoint allows you to update/replace all in an integration source with those supplied in the request. body = DatadogAPIClient::V1::HostTags.new # HostTags | Add tags to host opts = { - source: "source_example", # String | The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value) + source: 'source_example' # String | The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value) } begin diff --git a/examples/generated/v1/usage-metering/GetDailyCustomReports.rb b/examples/generated/v1/usage-metering/GetDailyCustomReports.rb index 916527cd58f2..1236c1727f99 100644 --- a/examples/generated/v1/usage-metering/GetDailyCustomReports.rb +++ b/examples/generated/v1/usage-metering/GetDailyCustomReports.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_daily_custom_reports] = true @@ -9,7 +9,7 @@ page_size: 789, # Integer | The number of files to return in the response. `[default=60]`. page_number: 789, # Integer | The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. sort_dir: DatadogAPIClient::V1::UsageSortDirection::DESC, # UsageSortDirection | The direction to sort by: `[desc, asc]`. - sort: DatadogAPIClient::V1::UsageSort::COMPUTED_ON, # UsageSort | The field to sort by: `[computed_on, size, start_date, end_date]`. + sort: DatadogAPIClient::V1::UsageSort::COMPUTED_ON # UsageSort | The field to sort by: `[computed_on, size, start_date, end_date]`. } begin diff --git a/examples/generated/v1/usage-metering/GetHourlyUsageAttribution.rb b/examples/generated/v1/usage-metering/GetHourlyUsageAttribution.rb index 3d1a72b2cfee..315e89639c51 100644 --- a/examples/generated/v1/usage-metering/GetHourlyUsageAttribution.rb +++ b/examples/generated/v1/usage-metering/GetHourlyUsageAttribution.rb @@ -1,16 +1,16 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_hourly_usage_attribution] = true end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. usage_type = DatadogAPIClient::V1::HourlyUsageAttributionUsageType::API_USAGE # HourlyUsageAttributionUsageType | Usage type to retrieve. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. - next_record_id: "next_record_id_example", # String | List following results with a next_record_id provided in the previous query. - tag_breakdown_keys: "tag_breakdown_keys_example", # String | Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. + end_hr: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + next_record_id: 'next_record_id_example', # String | List following results with a next_record_id provided in the previous query. + tag_breakdown_keys: 'tag_breakdown_keys_example' # String | Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. } begin diff --git a/examples/generated/v1/usage-metering/GetIncidentManagement.rb b/examples/generated/v1/usage-metering/GetIncidentManagement.rb index 5a5ff8809dd9..e94249c1ea55 100644 --- a/examples/generated/v1/usage-metering/GetIncidentManagement.rb +++ b/examples/generated/v1/usage-metering/GetIncidentManagement.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetIngestedSpans.rb b/examples/generated/v1/usage-metering/GetIngestedSpans.rb index 0c7b7d49ae5e..9f11beaf7987 100644 --- a/examples/generated/v1/usage-metering/GetIngestedSpans.rb +++ b/examples/generated/v1/usage-metering/GetIngestedSpans.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetMonthlyCustomReports.rb b/examples/generated/v1/usage-metering/GetMonthlyCustomReports.rb index 5a5d626c2d9b..d18f200f29cf 100644 --- a/examples/generated/v1/usage-metering/GetMonthlyCustomReports.rb +++ b/examples/generated/v1/usage-metering/GetMonthlyCustomReports.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_monthly_custom_reports] = true @@ -9,7 +9,7 @@ page_size: 789, # Integer | The number of files to return in the response `[default=60].` page_number: 789, # Integer | The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. sort_dir: DatadogAPIClient::V1::UsageSortDirection::DESC, # UsageSortDirection | The direction to sort by: `[desc, asc]`. - sort: DatadogAPIClient::V1::UsageSort::COMPUTED_ON, # UsageSort | The field to sort by: `[computed_on, size, start_date, end_date]`. + sort: DatadogAPIClient::V1::UsageSort::COMPUTED_ON # UsageSort | The field to sort by: `[computed_on, size, start_date, end_date]`. } begin diff --git a/examples/generated/v1/usage-metering/GetMonthlyUsageAttribution.rb b/examples/generated/v1/usage-metering/GetMonthlyUsageAttribution.rb index 3bb7a7d5180a..6acec63eafcf 100644 --- a/examples/generated/v1/usage-metering/GetMonthlyUsageAttribution.rb +++ b/examples/generated/v1/usage-metering/GetMonthlyUsageAttribution.rb @@ -1,18 +1,18 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_monthly_usage_attribution] = true end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_month = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. +start_month = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. fields = DatadogAPIClient::V1::MonthlyUsageAttributionSupportedMetrics::API_USAGE # MonthlyUsageAttributionSupportedMetrics | Comma-separated list of usage types to return, or `*` for all usage types. opts = { - end_month: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. + end_month: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. sort_direction: DatadogAPIClient::V1::UsageSortDirection::DESC, # UsageSortDirection | The direction to sort by: `[desc, asc]`. sort_name: DatadogAPIClient::V1::MonthlyUsageAttributionSupportedMetrics::API_USAGE, # MonthlyUsageAttributionSupportedMetrics | The field to sort by. - tag_breakdown_keys: "tag_breakdown_keys_example", # String | Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. - next_record_id: "next_record_id_example", # String | List following results with a next_record_id provided in the previous query. + tag_breakdown_keys: 'tag_breakdown_keys_example', # String | Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. + next_record_id: 'next_record_id_example' # String | List following results with a next_record_id provided in the previous query. } begin diff --git a/examples/generated/v1/usage-metering/GetSpecifiedDailyCustomReports.rb b/examples/generated/v1/usage-metering/GetSpecifiedDailyCustomReports.rb index 58110b2142b9..f4e736168ed1 100644 --- a/examples/generated/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +++ b/examples/generated/v1/usage-metering/GetSpecifiedDailyCustomReports.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_specified_daily_custom_reports] = true end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -report_id = "report_id_example" # String | Date of the report in the format `YYYY-MM-DD`. +report_id = 'report_id_example' # String | Date of the report in the format `YYYY-MM-DD`. begin # Get specified daily custom reports diff --git a/examples/generated/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb b/examples/generated/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb index 350e06a1ed36..1c7663d1f2ac 100644 --- a/examples/generated/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +++ b/examples/generated/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_specified_monthly_custom_reports] = true end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -report_id = "report_id_example" # String | Date of the report in the format `YYYY-MM-DD`. +report_id = 'report_id_example' # String | Date of the report in the format `YYYY-MM-DD`. begin # Get specified monthly custom reports diff --git a/examples/generated/v1/usage-metering/GetUsageAnalyzedLogs.rb b/examples/generated/v1/usage-metering/GetUsageAnalyzedLogs.rb index d9fd78b65051..dd17a02bc824 100644 --- a/examples/generated/v1/usage-metering/GetUsageAnalyzedLogs.rb +++ b/examples/generated/v1/usage-metering/GetUsageAnalyzedLogs.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageAttribution.rb b/examples/generated/v1/usage-metering/GetUsageAttribution.rb index 6b62d9a4cdfd..e84deb5f6089 100644 --- a/examples/generated/v1/usage-metering/GetUsageAttribution.rb +++ b/examples/generated/v1/usage-metering/GetUsageAttribution.rb @@ -1,19 +1,19 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_usage_attribution] = true end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_month = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. +start_month = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. fields = DatadogAPIClient::V1::UsageAttributionSupportedMetrics::CUSTOM_TIMESERIES_USAGE # UsageAttributionSupportedMetrics | Comma-separated list of usage types to return, or `*` for all usage types. opts = { - end_month: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. + end_month: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. sort_direction: DatadogAPIClient::V1::UsageSortDirection::DESC, # UsageSortDirection | The direction to sort by: `[desc, asc]`. sort_name: DatadogAPIClient::V1::UsageAttributionSort::API_PERCENTAGE, # UsageAttributionSort | The field to sort by. include_descendants: true, # Boolean | Include child org usage in the response. Defaults to false. offset: 789, # Integer | Number of records to skip before beginning to return. - limit: 789, # Integer | Maximum number of records to be returned. + limit: 789 # Integer | Maximum number of records to be returned. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageAuditLogs.rb b/examples/generated/v1/usage-metering/GetUsageAuditLogs.rb index 73936ef14875..80b940a22cc2 100644 --- a/examples/generated/v1/usage-metering/GetUsageAuditLogs.rb +++ b/examples/generated/v1/usage-metering/GetUsageAuditLogs.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageBillableSummary.rb b/examples/generated/v1/usage-metering/GetUsageBillableSummary.rb index 2f4a5be817db..5183764f26b5 100644 --- a/examples/generated/v1/usage-metering/GetUsageBillableSummary.rb +++ b/examples/generated/v1/usage-metering/GetUsageBillableSummary.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { - month: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month. + month: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb b/examples/generated/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb index 837917725c93..3cc143f97a59 100644 --- a/examples/generated/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb +++ b/examples/generated/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageCws.rb b/examples/generated/v1/usage-metering/GetUsageCws.rb index a51eaf53d843..c45cc3f3e09e 100644 --- a/examples/generated/v1/usage-metering/GetUsageCws.rb +++ b/examples/generated/v1/usage-metering/GetUsageCws.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageDbm.rb b/examples/generated/v1/usage-metering/GetUsageDbm.rb index ab34b494d292..9c4b57759e87 100644 --- a/examples/generated/v1/usage-metering/GetUsageDbm.rb +++ b/examples/generated/v1/usage-metering/GetUsageDbm.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageFargate.rb b/examples/generated/v1/usage-metering/GetUsageFargate.rb index 75ee54120637..de5c899a2904 100644 --- a/examples/generated/v1/usage-metering/GetUsageFargate.rb +++ b/examples/generated/v1/usage-metering/GetUsageFargate.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageHosts.rb b/examples/generated/v1/usage-metering/GetUsageHosts.rb index 3ed44c47d1b0..393a85e431b1 100644 --- a/examples/generated/v1/usage-metering/GetUsageHosts.rb +++ b/examples/generated/v1/usage-metering/GetUsageHosts.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageIndexedSpans.rb b/examples/generated/v1/usage-metering/GetUsageIndexedSpans.rb index 1eea3e310801..3f6f8c26b89f 100644 --- a/examples/generated/v1/usage-metering/GetUsageIndexedSpans.rb +++ b/examples/generated/v1/usage-metering/GetUsageIndexedSpans.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageInternetOfThings.rb b/examples/generated/v1/usage-metering/GetUsageInternetOfThings.rb index 47e1c74a0198..04f0d944cec7 100644 --- a/examples/generated/v1/usage-metering/GetUsageInternetOfThings.rb +++ b/examples/generated/v1/usage-metering/GetUsageInternetOfThings.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageLambda.rb b/examples/generated/v1/usage-metering/GetUsageLambda.rb index 0eae529e2bea..5b47b40f6150 100644 --- a/examples/generated/v1/usage-metering/GetUsageLambda.rb +++ b/examples/generated/v1/usage-metering/GetUsageLambda.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageLogs.rb b/examples/generated/v1/usage-metering/GetUsageLogs.rb index b614f1d2ae4c..1f6143375d83 100644 --- a/examples/generated/v1/usage-metering/GetUsageLogs.rb +++ b/examples/generated/v1/usage-metering/GetUsageLogs.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageLogsByIndex.rb b/examples/generated/v1/usage-metering/GetUsageLogsByIndex.rb index 96f3d930f00f..2e8924368075 100644 --- a/examples/generated/v1/usage-metering/GetUsageLogsByIndex.rb +++ b/examples/generated/v1/usage-metering/GetUsageLogsByIndex.rb @@ -1,9 +1,9 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. - index_name: ["inner_example"], # Array | Comma-separated list of log index names. + end_hr: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + index_name: ['inner_example'] # Array | Comma-separated list of log index names. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageLogsByRetention.rb b/examples/generated/v1/usage-metering/GetUsageLogsByRetention.rb index ff137a2450c3..218b68521cfb 100644 --- a/examples/generated/v1/usage-metering/GetUsageLogsByRetention.rb +++ b/examples/generated/v1/usage-metering/GetUsageLogsByRetention.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageNetworkFlows.rb b/examples/generated/v1/usage-metering/GetUsageNetworkFlows.rb index f1bc8566739d..1b890a950036 100644 --- a/examples/generated/v1/usage-metering/GetUsageNetworkFlows.rb +++ b/examples/generated/v1/usage-metering/GetUsageNetworkFlows.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageNetworkHosts.rb b/examples/generated/v1/usage-metering/GetUsageNetworkHosts.rb index 85241716c3f7..86ace05deda4 100644 --- a/examples/generated/v1/usage-metering/GetUsageNetworkHosts.rb +++ b/examples/generated/v1/usage-metering/GetUsageNetworkHosts.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageProfiling.rb b/examples/generated/v1/usage-metering/GetUsageProfiling.rb index cfe9d5fe08f2..7bea3e131b9c 100644 --- a/examples/generated/v1/usage-metering/GetUsageProfiling.rb +++ b/examples/generated/v1/usage-metering/GetUsageProfiling.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageRumSessions.rb b/examples/generated/v1/usage-metering/GetUsageRumSessions.rb index c1b3607deec0..f8d2cd5555ef 100644 --- a/examples/generated/v1/usage-metering/GetUsageRumSessions.rb +++ b/examples/generated/v1/usage-metering/GetUsageRumSessions.rb @@ -1,9 +1,9 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. - type: "type_example", # String | RUM type: `[browser, mobile]`. Defaults to `browser`. + end_hr: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + type: 'type_example' # String | RUM type: `[browser, mobile]`. Defaults to `browser`. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageRumUnits.rb b/examples/generated/v1/usage-metering/GetUsageRumUnits.rb index 062e791ec7d1..aacd95ddc78c 100644 --- a/examples/generated/v1/usage-metering/GetUsageRumUnits.rb +++ b/examples/generated/v1/usage-metering/GetUsageRumUnits.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageSds.rb b/examples/generated/v1/usage-metering/GetUsageSds.rb index 3e29defb8448..a49835ed21bf 100644 --- a/examples/generated/v1/usage-metering/GetUsageSds.rb +++ b/examples/generated/v1/usage-metering/GetUsageSds.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageSnmp.rb b/examples/generated/v1/usage-metering/GetUsageSnmp.rb index 6d5a2851cf94..3d5705b9c31a 100644 --- a/examples/generated/v1/usage-metering/GetUsageSnmp.rb +++ b/examples/generated/v1/usage-metering/GetUsageSnmp.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageSummary.rb b/examples/generated/v1/usage-metering/GetUsageSummary.rb index aa67664afc75..3dd55f87967d 100644 --- a/examples/generated/v1/usage-metering/GetUsageSummary.rb +++ b/examples/generated/v1/usage-metering/GetUsageSummary.rb @@ -1,9 +1,9 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_month = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. +start_month = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. opts = { - end_month: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. - include_org_details: true, # Boolean | Include usage summaries for each sub-org. + end_month: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. + include_org_details: true # Boolean | Include usage summaries for each sub-org. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageSynthetics.rb b/examples/generated/v1/usage-metering/GetUsageSynthetics.rb index 87bd7b0afdf8..be3d8248e4e3 100644 --- a/examples/generated/v1/usage-metering/GetUsageSynthetics.rb +++ b/examples/generated/v1/usage-metering/GetUsageSynthetics.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageSyntheticsApi.rb b/examples/generated/v1/usage-metering/GetUsageSyntheticsApi.rb index df26aaf7e25d..60a7c125ecc5 100644 --- a/examples/generated/v1/usage-metering/GetUsageSyntheticsApi.rb +++ b/examples/generated/v1/usage-metering/GetUsageSyntheticsApi.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageSyntheticsBrowser.rb b/examples/generated/v1/usage-metering/GetUsageSyntheticsBrowser.rb index 710fee7c2226..d97e92c4a8e8 100644 --- a/examples/generated/v1/usage-metering/GetUsageSyntheticsBrowser.rb +++ b/examples/generated/v1/usage-metering/GetUsageSyntheticsBrowser.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageTimeseries.rb b/examples/generated/v1/usage-metering/GetUsageTimeseries.rb index 7e1ca119febb..35857fa35afa 100644 --- a/examples/generated/v1/usage-metering/GetUsageTimeseries.rb +++ b/examples/generated/v1/usage-metering/GetUsageTimeseries.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -start_hr = Time.parse("2013-10-20T19:20:30+01:00") # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. opts = { - end_hr: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. } begin diff --git a/examples/generated/v1/usage-metering/GetUsageTopAvgMetrics.rb b/examples/generated/v1/usage-metering/GetUsageTopAvgMetrics.rb index d33c503add08..344f7138542f 100644 --- a/examples/generated/v1/usage-metering/GetUsageTopAvgMetrics.rb +++ b/examples/generated/v1/usage-metering/GetUsageTopAvgMetrics.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { - month: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for usage beginning at this hour. (Either month or day should be specified, but not both) - day: Time.parse("2013-10-20T19:20:30+01:00"), # Time | Datetime in ISO-8601 format, UTC, precise to day: [YYYY-MM-DD] for usage beginning at this hour. (Either month or day should be specified, but not both) - names: ["inner_example"], # Array | Comma-separated list of metric names. + month: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for usage beginning at this hour. (Either month or day should be specified, but not both) + day: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Datetime in ISO-8601 format, UTC, precise to day: [YYYY-MM-DD] for usage beginning at this hour. (Either month or day should be specified, but not both) + names: ['inner_example'], # Array | Comma-separated list of metric names. limit: 56, # Integer | Maximum number of results to return (between 1 and 5000) - defaults to 500 results if limit not specified. - next_record_id: "next_record_id_example", # String | List following results with a next_record_id provided in the previous query. + next_record_id: 'next_record_id_example' # String | List following results with a next_record_id provided in the previous query. } begin diff --git a/examples/generated/v1/users/CreateUser.rb b/examples/generated/v1/users/CreateUser.rb index 64993c1e2811..b2a0294df0ff 100644 --- a/examples/generated/v1/users/CreateUser.rb +++ b/examples/generated/v1/users/CreateUser.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsersAPI.new body = DatadogAPIClient::V1::User.new # User | User object that needs to be created. diff --git a/examples/generated/v1/users/DisableUser.rb b/examples/generated/v1/users/DisableUser.rb index 51495cf046f3..79485684568a 100644 --- a/examples/generated/v1/users/DisableUser.rb +++ b/examples/generated/v1/users/DisableUser.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsersAPI.new user_handle = TODO # String | The handle of the user. diff --git a/examples/generated/v1/users/GetUser.rb b/examples/generated/v1/users/GetUser.rb index 25feab89ba2c..38b80734ec94 100644 --- a/examples/generated/v1/users/GetUser.rb +++ b/examples/generated/v1/users/GetUser.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsersAPI.new user_handle = TODO # String | The ID of the user. diff --git a/examples/generated/v1/users/ListUsers.rb b/examples/generated/v1/users/ListUsers.rb index bfea1b3eeafa..4a4a0872d57b 100644 --- a/examples/generated/v1/users/ListUsers.rb +++ b/examples/generated/v1/users/ListUsers.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsersAPI.new begin diff --git a/examples/generated/v1/users/UpdateUser.rb b/examples/generated/v1/users/UpdateUser.rb index 250c818077d6..a40f0364e5f4 100644 --- a/examples/generated/v1/users/UpdateUser.rb +++ b/examples/generated/v1/users/UpdateUser.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::UsersAPI.new user_handle = TODO # String | The ID of the user. body = DatadogAPIClient::V1::User.new # User | Description of the update. diff --git a/examples/generated/v1/webhooks-integration/CreateWebhooksIntegration.rb b/examples/generated/v1/webhooks-integration/CreateWebhooksIntegration.rb index a9e220ac8813..169550c287e7 100644 --- a/examples/generated/v1/webhooks-integration/CreateWebhooksIntegration.rb +++ b/examples/generated/v1/webhooks-integration/CreateWebhooksIntegration.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new -body = DatadogAPIClient::V1::WebhooksIntegration.new({ name: "WEBHOOK_NAME", url: "https://example.com/webhook" }) # WebhooksIntegration | Create a webhooks integration request body. +body = DatadogAPIClient::V1::WebhooksIntegration.new({name: 'WEBHOOK_NAME', url: 'https://example.com/webhook'}) # WebhooksIntegration | Create a webhooks integration request body. begin # Create a webhooks integration diff --git a/examples/generated/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb b/examples/generated/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb index 7170995e5b56..f15985052a29 100644 --- a/examples/generated/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb +++ b/examples/generated/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new -body = DatadogAPIClient::V1::WebhooksIntegrationCustomVariable.new({ is_secret: true, name: "CUSTOM_VARIABLE_NAME", value: "CUSTOM_VARIABLE_VALUE" }) # WebhooksIntegrationCustomVariable | Define a custom variable request body. +body = DatadogAPIClient::V1::WebhooksIntegrationCustomVariable.new({is_secret: true, name: 'CUSTOM_VARIABLE_NAME', value: 'CUSTOM_VARIABLE_VALUE'}) # WebhooksIntegrationCustomVariable | Define a custom variable request body. begin # Create a custom variable diff --git a/examples/generated/v1/webhooks-integration/DeleteWebhooksIntegration.rb b/examples/generated/v1/webhooks-integration/DeleteWebhooksIntegration.rb index 547b3632e3a4..7d7a490218b2 100644 --- a/examples/generated/v1/webhooks-integration/DeleteWebhooksIntegration.rb +++ b/examples/generated/v1/webhooks-integration/DeleteWebhooksIntegration.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new -webhook_name = "webhook_name_example" # String | The name of the webhook. +webhook_name = 'webhook_name_example' # String | The name of the webhook. begin # Delete a webhook diff --git a/examples/generated/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.rb b/examples/generated/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.rb index 46f918ee5260..076bdbdbaa39 100644 --- a/examples/generated/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.rb +++ b/examples/generated/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new -custom_variable_name = "custom_variable_name_example" # String | The name of the custom variable. +custom_variable_name = 'custom_variable_name_example' # String | The name of the custom variable. begin # Delete a custom variable diff --git a/examples/generated/v1/webhooks-integration/GetWebhooksIntegration.rb b/examples/generated/v1/webhooks-integration/GetWebhooksIntegration.rb index b4427bf2e70f..7795766bb0ca 100644 --- a/examples/generated/v1/webhooks-integration/GetWebhooksIntegration.rb +++ b/examples/generated/v1/webhooks-integration/GetWebhooksIntegration.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new -webhook_name = "webhook_name_example" # String | The name of the webhook. +webhook_name = 'webhook_name_example' # String | The name of the webhook. begin # Get a webhook integration diff --git a/examples/generated/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.rb b/examples/generated/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.rb index 7f308f241bbb..4fd5f6ece550 100644 --- a/examples/generated/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.rb +++ b/examples/generated/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new -custom_variable_name = "custom_variable_name_example" # String | The name of the custom variable. +custom_variable_name = 'custom_variable_name_example' # String | The name of the custom variable. begin # Get a custom variable diff --git a/examples/generated/v1/webhooks-integration/UpdateWebhooksIntegration.rb b/examples/generated/v1/webhooks-integration/UpdateWebhooksIntegration.rb index 8f89b35fc909..686e32123235 100644 --- a/examples/generated/v1/webhooks-integration/UpdateWebhooksIntegration.rb +++ b/examples/generated/v1/webhooks-integration/UpdateWebhooksIntegration.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new -webhook_name = "webhook_name_example" # String | The name of the webhook. +webhook_name = 'webhook_name_example' # String | The name of the webhook. body = DatadogAPIClient::V1::WebhooksIntegrationUpdateRequest.new # WebhooksIntegrationUpdateRequest | Update an existing Datadog-Webhooks integration. begin diff --git a/examples/generated/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.rb b/examples/generated/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.rb index fefe0035314f..5df3a1c7a7b3 100644 --- a/examples/generated/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.rb +++ b/examples/generated/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new -custom_variable_name = "custom_variable_name_example" # String | The name of the custom variable. +custom_variable_name = 'custom_variable_name_example' # String | The name of the custom variable. body = DatadogAPIClient::V1::WebhooksIntegrationCustomVariableUpdateRequest.new # WebhooksIntegrationCustomVariableUpdateRequest | Update an existing custom variable request body. begin diff --git a/examples/generated/v2/cloud-workload-security/CreateCloudWorkloadSecurityAgentRule.rb b/examples/generated/v2/cloud-workload-security/CreateCloudWorkloadSecurityAgentRule.rb index aaa2959c61f3..6681bdbc5ff6 100644 --- a/examples/generated/v2/cloud-workload-security/CreateCloudWorkloadSecurityAgentRule.rb +++ b/examples/generated/v2/cloud-workload-security/CreateCloudWorkloadSecurityAgentRule.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new -body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest.new({ data: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateData.new({ attributes: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateAttributes.new({ expression: 'exec.file.name == \"sh\"', name: "my_agent_rule" }), type: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleType::AGENT_RULE }) }) # CloudWorkloadSecurityAgentRuleCreateRequest | The definition of the new Agent rule. +body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest.new({data: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateData.new({attributes: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateAttributes.new({expression: 'exec.file.name == \"sh\"', name: 'my_agent_rule'}), type: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleType::AGENT_RULE})}) # CloudWorkloadSecurityAgentRuleCreateRequest | The definition of the new Agent rule. begin # Create a Cloud Workload Security Agent rule diff --git a/examples/generated/v2/cloud-workload-security/DeleteCloudWorkloadSecurityAgentRule.rb b/examples/generated/v2/cloud-workload-security/DeleteCloudWorkloadSecurityAgentRule.rb index af808c00e3b0..a75712d1689b 100644 --- a/examples/generated/v2/cloud-workload-security/DeleteCloudWorkloadSecurityAgentRule.rb +++ b/examples/generated/v2/cloud-workload-security/DeleteCloudWorkloadSecurityAgentRule.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new -agent_rule_id = "3b5-v82-ns6" # String | The ID of the Agent rule. +agent_rule_id = '3b5-v82-ns6' # String | The ID of the Agent rule. begin # Delete a Cloud Workload Security Agent rule diff --git a/examples/generated/v2/cloud-workload-security/DownloadCloudWorkloadPolicyFile.rb b/examples/generated/v2/cloud-workload-security/DownloadCloudWorkloadPolicyFile.rb index 3ddd4c25aa65..8a5dded53d7f 100644 --- a/examples/generated/v2/cloud-workload-security/DownloadCloudWorkloadPolicyFile.rb +++ b/examples/generated/v2/cloud-workload-security/DownloadCloudWorkloadPolicyFile.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new begin diff --git a/examples/generated/v2/cloud-workload-security/GetCloudWorkloadSecurityAgentRule.rb b/examples/generated/v2/cloud-workload-security/GetCloudWorkloadSecurityAgentRule.rb index b84990b839a4..c047896880f0 100644 --- a/examples/generated/v2/cloud-workload-security/GetCloudWorkloadSecurityAgentRule.rb +++ b/examples/generated/v2/cloud-workload-security/GetCloudWorkloadSecurityAgentRule.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new -agent_rule_id = "3b5-v82-ns6" # String | The ID of the Agent rule. +agent_rule_id = '3b5-v82-ns6' # String | The ID of the Agent rule. begin # Get a Cloud Workload Security Agent rule diff --git a/examples/generated/v2/cloud-workload-security/ListCloudWorkloadSecurityAgentRules.rb b/examples/generated/v2/cloud-workload-security/ListCloudWorkloadSecurityAgentRules.rb index ea47190d77e0..5f929b1131ce 100644 --- a/examples/generated/v2/cloud-workload-security/ListCloudWorkloadSecurityAgentRules.rb +++ b/examples/generated/v2/cloud-workload-security/ListCloudWorkloadSecurityAgentRules.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new begin diff --git a/examples/generated/v2/cloud-workload-security/UpdateCloudWorkloadSecurityAgentRule.rb b/examples/generated/v2/cloud-workload-security/UpdateCloudWorkloadSecurityAgentRule.rb index fd9ed59ed319..059e4ce547cc 100644 --- a/examples/generated/v2/cloud-workload-security/UpdateCloudWorkloadSecurityAgentRule.rb +++ b/examples/generated/v2/cloud-workload-security/UpdateCloudWorkloadSecurityAgentRule.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new -agent_rule_id = "3b5-v82-ns6" # String | The ID of the Agent rule. -body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateRequest.new({ data: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateData.new({ attributes: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateAttributes.new, type: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleType::AGENT_RULE }) }) # CloudWorkloadSecurityAgentRuleUpdateRequest | New definition of the Agent rule. +agent_rule_id = '3b5-v82-ns6' # String | The ID of the Agent rule. +body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateRequest.new({data: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateData.new({attributes: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateAttributes.new, type: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleType::AGENT_RULE})}) # CloudWorkloadSecurityAgentRuleUpdateRequest | New definition of the Agent rule. begin # Update a Cloud Workload Security Agent rule diff --git a/examples/generated/v2/dashboard-lists/CreateDashboardListItems.rb b/examples/generated/v2/dashboard-lists/CreateDashboardListItems.rb index 011363a011b3..579400f7526b 100644 --- a/examples/generated/v2/dashboard-lists/CreateDashboardListItems.rb +++ b/examples/generated/v2/dashboard-lists/CreateDashboardListItems.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::DashboardListsAPI.new dashboard_list_id = 789 # Integer | ID of the dashboard list to add items to. body = DatadogAPIClient::V2::DashboardListAddItemsRequest.new # DashboardListAddItemsRequest | Dashboards to add to the dashboard list. diff --git a/examples/generated/v2/dashboard-lists/DeleteDashboardListItems.rb b/examples/generated/v2/dashboard-lists/DeleteDashboardListItems.rb index b657d6cf947d..aa34ddfef1a6 100644 --- a/examples/generated/v2/dashboard-lists/DeleteDashboardListItems.rb +++ b/examples/generated/v2/dashboard-lists/DeleteDashboardListItems.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::DashboardListsAPI.new dashboard_list_id = 789 # Integer | ID of the dashboard list to delete items from. body = DatadogAPIClient::V2::DashboardListDeleteItemsRequest.new # DashboardListDeleteItemsRequest | Dashboards to delete from the dashboard list. diff --git a/examples/generated/v2/dashboard-lists/GetDashboardListItems.rb b/examples/generated/v2/dashboard-lists/GetDashboardListItems.rb index 3ac3509493fb..fb6e1bd756cf 100644 --- a/examples/generated/v2/dashboard-lists/GetDashboardListItems.rb +++ b/examples/generated/v2/dashboard-lists/GetDashboardListItems.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::DashboardListsAPI.new dashboard_list_id = 789 # Integer | ID of the dashboard list to get items from. diff --git a/examples/generated/v2/dashboard-lists/UpdateDashboardListItems.rb b/examples/generated/v2/dashboard-lists/UpdateDashboardListItems.rb index c9be7041809c..1e08a4890f11 100644 --- a/examples/generated/v2/dashboard-lists/UpdateDashboardListItems.rb +++ b/examples/generated/v2/dashboard-lists/UpdateDashboardListItems.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::DashboardListsAPI.new dashboard_list_id = 789 # Integer | ID of the dashboard list to update items from. body = DatadogAPIClient::V2::DashboardListUpdateItemsRequest.new # DashboardListUpdateItemsRequest | New dashboards of the dashboard list. diff --git a/examples/generated/v2/incident-services/CreateIncidentService.rb b/examples/generated/v2/incident-services/CreateIncidentService.rb index 3895d191f780..704cdc23c5d7 100644 --- a/examples/generated/v2/incident-services/CreateIncidentService.rb +++ b/examples/generated/v2/incident-services/CreateIncidentService.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:create_incident_service] = true end api_instance = DatadogAPIClient::V2::IncidentServicesAPI.new -body = DatadogAPIClient::V2::IncidentServiceCreateRequest.new({ data: DatadogAPIClient::V2::IncidentServiceCreateData.new({ type: DatadogAPIClient::V2::IncidentServiceType::SERVICES }) }) # IncidentServiceCreateRequest | Incident Service Payload. +body = DatadogAPIClient::V2::IncidentServiceCreateRequest.new({data: DatadogAPIClient::V2::IncidentServiceCreateData.new({type: DatadogAPIClient::V2::IncidentServiceType::SERVICES})}) # IncidentServiceCreateRequest | Incident Service Payload. begin # Create a new incident service diff --git a/examples/generated/v2/incident-services/DeleteIncidentService.rb b/examples/generated/v2/incident-services/DeleteIncidentService.rb index f277a118466b..c136d178b04e 100644 --- a/examples/generated/v2/incident-services/DeleteIncidentService.rb +++ b/examples/generated/v2/incident-services/DeleteIncidentService.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:delete_incident_service] = true end api_instance = DatadogAPIClient::V2::IncidentServicesAPI.new -service_id = "service_id_example" # String | The ID of the incident service. +service_id = 'service_id_example' # String | The ID of the incident service. begin # Delete an existing incident service diff --git a/examples/generated/v2/incident-services/GetIncidentService.rb b/examples/generated/v2/incident-services/GetIncidentService.rb index e3732fd6d1c1..dbf18e016723 100644 --- a/examples/generated/v2/incident-services/GetIncidentService.rb +++ b/examples/generated/v2/incident-services/GetIncidentService.rb @@ -1,13 +1,13 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:get_incident_service] = true end api_instance = DatadogAPIClient::V2::IncidentServicesAPI.new -service_id = "service_id_example" # String | The ID of the incident service. +service_id = 'service_id_example' # String | The ID of the incident service. opts = { - include: DatadogAPIClient::V2::IncidentRelatedObject::USERS, # IncidentRelatedObject | Specifies which types of related objects should be included in the response. + include: DatadogAPIClient::V2::IncidentRelatedObject::USERS # IncidentRelatedObject | Specifies which types of related objects should be included in the response. } begin diff --git a/examples/generated/v2/incident-services/ListIncidentServices.rb b/examples/generated/v2/incident-services/ListIncidentServices.rb index ddc30d8e2047..fcef79c7085a 100644 --- a/examples/generated/v2/incident-services/ListIncidentServices.rb +++ b/examples/generated/v2/incident-services/ListIncidentServices.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:list_incident_services] = true @@ -9,7 +9,7 @@ include: DatadogAPIClient::V2::IncidentRelatedObject::USERS, # IncidentRelatedObject | Specifies which types of related objects should be included in the response. page_size: 10, # Integer | Size for a given page. page_offset: 0, # Integer | Specific offset to use as the beginning of the returned page. - filter: "ExampleServiceName", # String | A search query that filters services by name. + filter: 'ExampleServiceName' # String | A search query that filters services by name. } begin diff --git a/examples/generated/v2/incident-services/UpdateIncidentService.rb b/examples/generated/v2/incident-services/UpdateIncidentService.rb index fefb86bea7bb..389cad13ceba 100644 --- a/examples/generated/v2/incident-services/UpdateIncidentService.rb +++ b/examples/generated/v2/incident-services/UpdateIncidentService.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:update_incident_service] = true end api_instance = DatadogAPIClient::V2::IncidentServicesAPI.new -service_id = "service_id_example" # String | The ID of the incident service. -body = DatadogAPIClient::V2::IncidentServiceUpdateRequest.new({ data: DatadogAPIClient::V2::IncidentServiceUpdateData.new({ type: DatadogAPIClient::V2::IncidentServiceType::SERVICES }) }) # IncidentServiceUpdateRequest | Incident Service Payload. +service_id = 'service_id_example' # String | The ID of the incident service. +body = DatadogAPIClient::V2::IncidentServiceUpdateRequest.new({data: DatadogAPIClient::V2::IncidentServiceUpdateData.new({type: DatadogAPIClient::V2::IncidentServiceType::SERVICES})}) # IncidentServiceUpdateRequest | Incident Service Payload. begin # Update an existing incident service diff --git a/examples/generated/v2/incident-teams/CreateIncidentTeam.rb b/examples/generated/v2/incident-teams/CreateIncidentTeam.rb index 6473d1d54db7..e8f1190f2133 100644 --- a/examples/generated/v2/incident-teams/CreateIncidentTeam.rb +++ b/examples/generated/v2/incident-teams/CreateIncidentTeam.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:create_incident_team] = true end api_instance = DatadogAPIClient::V2::IncidentTeamsAPI.new -body = DatadogAPIClient::V2::IncidentTeamCreateRequest.new({ data: DatadogAPIClient::V2::IncidentTeamCreateData.new({ type: DatadogAPIClient::V2::IncidentTeamType::TEAMS }) }) # IncidentTeamCreateRequest | Incident Team Payload. +body = DatadogAPIClient::V2::IncidentTeamCreateRequest.new({data: DatadogAPIClient::V2::IncidentTeamCreateData.new({type: DatadogAPIClient::V2::IncidentTeamType::TEAMS})}) # IncidentTeamCreateRequest | Incident Team Payload. begin # Create a new incident team diff --git a/examples/generated/v2/incident-teams/DeleteIncidentTeam.rb b/examples/generated/v2/incident-teams/DeleteIncidentTeam.rb index 8c2f91f02862..c1f9b2645654 100644 --- a/examples/generated/v2/incident-teams/DeleteIncidentTeam.rb +++ b/examples/generated/v2/incident-teams/DeleteIncidentTeam.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:delete_incident_team] = true end api_instance = DatadogAPIClient::V2::IncidentTeamsAPI.new -team_id = "team_id_example" # String | The ID of the incident team. +team_id = 'team_id_example' # String | The ID of the incident team. begin # Delete an existing incident team diff --git a/examples/generated/v2/incident-teams/GetIncidentTeam.rb b/examples/generated/v2/incident-teams/GetIncidentTeam.rb index 64be28df945a..beef7956c915 100644 --- a/examples/generated/v2/incident-teams/GetIncidentTeam.rb +++ b/examples/generated/v2/incident-teams/GetIncidentTeam.rb @@ -1,13 +1,13 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:get_incident_team] = true end api_instance = DatadogAPIClient::V2::IncidentTeamsAPI.new -team_id = "team_id_example" # String | The ID of the incident team. +team_id = 'team_id_example' # String | The ID of the incident team. opts = { - include: DatadogAPIClient::V2::IncidentRelatedObject::USERS, # IncidentRelatedObject | Specifies which types of related objects should be included in the response. + include: DatadogAPIClient::V2::IncidentRelatedObject::USERS # IncidentRelatedObject | Specifies which types of related objects should be included in the response. } begin diff --git a/examples/generated/v2/incident-teams/ListIncidentTeams.rb b/examples/generated/v2/incident-teams/ListIncidentTeams.rb index 67cc24fc6b09..358916ca3625 100644 --- a/examples/generated/v2/incident-teams/ListIncidentTeams.rb +++ b/examples/generated/v2/incident-teams/ListIncidentTeams.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:list_incident_teams] = true @@ -9,7 +9,7 @@ include: DatadogAPIClient::V2::IncidentRelatedObject::USERS, # IncidentRelatedObject | Specifies which types of related objects should be included in the response. page_size: 10, # Integer | Size for a given page. page_offset: 0, # Integer | Specific offset to use as the beginning of the returned page. - filter: "ExampleTeamName", # String | A search query that filters teams by name. + filter: 'ExampleTeamName' # String | A search query that filters teams by name. } begin diff --git a/examples/generated/v2/incident-teams/UpdateIncidentTeam.rb b/examples/generated/v2/incident-teams/UpdateIncidentTeam.rb index ce3716faaa1b..70085f1e1ea4 100644 --- a/examples/generated/v2/incident-teams/UpdateIncidentTeam.rb +++ b/examples/generated/v2/incident-teams/UpdateIncidentTeam.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:update_incident_team] = true end api_instance = DatadogAPIClient::V2::IncidentTeamsAPI.new -team_id = "team_id_example" # String | The ID of the incident team. -body = DatadogAPIClient::V2::IncidentTeamUpdateRequest.new({ data: DatadogAPIClient::V2::IncidentTeamUpdateData.new({ type: DatadogAPIClient::V2::IncidentTeamType::TEAMS }) }) # IncidentTeamUpdateRequest | Incident Team Payload. +team_id = 'team_id_example' # String | The ID of the incident team. +body = DatadogAPIClient::V2::IncidentTeamUpdateRequest.new({data: DatadogAPIClient::V2::IncidentTeamUpdateData.new({type: DatadogAPIClient::V2::IncidentTeamType::TEAMS})}) # IncidentTeamUpdateRequest | Incident Team Payload. begin # Update an existing incident team diff --git a/examples/generated/v2/incidents/CreateIncident.rb b/examples/generated/v2/incidents/CreateIncident.rb index a1ed117ff3c1..fe409fb30e7f 100644 --- a/examples/generated/v2/incidents/CreateIncident.rb +++ b/examples/generated/v2/incidents/CreateIncident.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:create_incident] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new -body = DatadogAPIClient::V2::IncidentCreateRequest.new({ data: DatadogAPIClient::V2::IncidentCreateData.new({ attributes: DatadogAPIClient::V2::IncidentCreateAttributes.new({ customer_impacted: false, title: "A test incident title" }), type: DatadogAPIClient::V2::IncidentType::INCIDENTS }) }) # IncidentCreateRequest | Incident payload. +body = DatadogAPIClient::V2::IncidentCreateRequest.new({data: DatadogAPIClient::V2::IncidentCreateData.new({attributes: DatadogAPIClient::V2::IncidentCreateAttributes.new({customer_impacted: false, title: 'A test incident title'}), type: DatadogAPIClient::V2::IncidentType::INCIDENTS})}) # IncidentCreateRequest | Incident payload. begin # Create an incident diff --git a/examples/generated/v2/incidents/DeleteIncident.rb b/examples/generated/v2/incidents/DeleteIncident.rb index b1d22c9c6e52..54f899587008 100644 --- a/examples/generated/v2/incidents/DeleteIncident.rb +++ b/examples/generated/v2/incidents/DeleteIncident.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:delete_incident] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new -incident_id = "incident_id_example" # String | The UUID of the incident. +incident_id = 'incident_id_example' # String | The UUID of the incident. begin # Delete an existing incident diff --git a/examples/generated/v2/incidents/GetIncident.rb b/examples/generated/v2/incidents/GetIncident.rb index 8d5d4d13f365..cba1e074af0d 100644 --- a/examples/generated/v2/incidents/GetIncident.rb +++ b/examples/generated/v2/incidents/GetIncident.rb @@ -1,13 +1,13 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:get_incident] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new -incident_id = "incident_id_example" # String | The UUID of the incident. +incident_id = 'incident_id_example' # String | The UUID of the incident. opts = { - include: [DatadogAPIClient::V2::IncidentRelatedObject::USERS], # Array | Specifies which types of related objects should be included in the response. + include: [DatadogAPIClient::V2::IncidentRelatedObject::USERS] # Array | Specifies which types of related objects should be included in the response. } begin diff --git a/examples/generated/v2/incidents/ListIncidents.rb b/examples/generated/v2/incidents/ListIncidents.rb index 0d209ef94a3c..c2d2f08222ca 100644 --- a/examples/generated/v2/incidents/ListIncidents.rb +++ b/examples/generated/v2/incidents/ListIncidents.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:list_incidents] = true @@ -8,7 +8,7 @@ opts = { include: [DatadogAPIClient::V2::IncidentRelatedObject::USERS], # Array | Specifies which types of related objects should be included in the response. page_size: 10, # Integer | Size for a given page. - page_offset: 0, # Integer | Specific offset to use as the beginning of the returned page. + page_offset: 0 # Integer | Specific offset to use as the beginning of the returned page. } begin diff --git a/examples/generated/v2/incidents/UpdateIncident.rb b/examples/generated/v2/incidents/UpdateIncident.rb index ddcc8e2bdf0d..a27c28bbe863 100644 --- a/examples/generated/v2/incidents/UpdateIncident.rb +++ b/examples/generated/v2/incidents/UpdateIncident.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:update_incident] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new -incident_id = "incident_id_example" # String | The UUID of the incident. -body = DatadogAPIClient::V2::IncidentUpdateRequest.new({ data: DatadogAPIClient::V2::IncidentUpdateData.new({ id: "00000000-0000-0000-0000-000000000000", type: DatadogAPIClient::V2::IncidentType::INCIDENTS }) }) # IncidentUpdateRequest | Incident Payload. +incident_id = 'incident_id_example' # String | The UUID of the incident. +body = DatadogAPIClient::V2::IncidentUpdateRequest.new({data: DatadogAPIClient::V2::IncidentUpdateData.new({id: '00000000-0000-0000-0000-000000000000', type: DatadogAPIClient::V2::IncidentType::INCIDENTS})}) # IncidentUpdateRequest | Incident Payload. begin # Update an existing incident diff --git a/examples/generated/v2/key-management/CreateApiKey.rb b/examples/generated/v2/key-management/CreateApiKey.rb index 23093591e707..e8f14b2a6582 100644 --- a/examples/generated/v2/key-management/CreateApiKey.rb +++ b/examples/generated/v2/key-management/CreateApiKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -body = DatadogAPIClient::V2::APIKeyCreateRequest.new({ data: DatadogAPIClient::V2::APIKeyCreateData.new({ attributes: DatadogAPIClient::V2::APIKeyCreateAttributes.new({ name: "API Key for submitting metrics" }), type: DatadogAPIClient::V2::APIKeysType::API_KEYS }) }) # APIKeyCreateRequest | +body = DatadogAPIClient::V2::APIKeyCreateRequest.new({data: DatadogAPIClient::V2::APIKeyCreateData.new({attributes: DatadogAPIClient::V2::APIKeyCreateAttributes.new({name: 'API Key for submitting metrics'}), type: DatadogAPIClient::V2::APIKeysType::API_KEYS})}) # APIKeyCreateRequest | begin # Create an API key diff --git a/examples/generated/v2/key-management/CreateCurrentUserApplicationKey.rb b/examples/generated/v2/key-management/CreateCurrentUserApplicationKey.rb index 53a55f917716..d60d6b89450b 100644 --- a/examples/generated/v2/key-management/CreateCurrentUserApplicationKey.rb +++ b/examples/generated/v2/key-management/CreateCurrentUserApplicationKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -body = DatadogAPIClient::V2::ApplicationKeyCreateRequest.new({ data: DatadogAPIClient::V2::ApplicationKeyCreateData.new({ attributes: DatadogAPIClient::V2::ApplicationKeyCreateAttributes.new({ name: "Application Key for managing dashboards" }), type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS }) }) # ApplicationKeyCreateRequest | +body = DatadogAPIClient::V2::ApplicationKeyCreateRequest.new({data: DatadogAPIClient::V2::ApplicationKeyCreateData.new({attributes: DatadogAPIClient::V2::ApplicationKeyCreateAttributes.new({name: 'Application Key for managing dashboards'}), type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS})}) # ApplicationKeyCreateRequest | begin # Create an application key for current user diff --git a/examples/generated/v2/key-management/DeleteApiKey.rb b/examples/generated/v2/key-management/DeleteApiKey.rb index a6d291f63bac..823f6f5e06eb 100644 --- a/examples/generated/v2/key-management/DeleteApiKey.rb +++ b/examples/generated/v2/key-management/DeleteApiKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -api_key_id = "api_key_id_example" # String | The ID of the API key. +api_key_id = 'api_key_id_example' # String | The ID of the API key. begin # Delete an API key diff --git a/examples/generated/v2/key-management/DeleteApplicationKey.rb b/examples/generated/v2/key-management/DeleteApplicationKey.rb index f07adfe71657..592314f67b50 100644 --- a/examples/generated/v2/key-management/DeleteApplicationKey.rb +++ b/examples/generated/v2/key-management/DeleteApplicationKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -app_key_id = "app_key_id_example" # String | The ID of the application key. +app_key_id = 'app_key_id_example' # String | The ID of the application key. begin # Delete an application key diff --git a/examples/generated/v2/key-management/DeleteCurrentUserApplicationKey.rb b/examples/generated/v2/key-management/DeleteCurrentUserApplicationKey.rb index b33f1e38812c..7b5db642c835 100644 --- a/examples/generated/v2/key-management/DeleteCurrentUserApplicationKey.rb +++ b/examples/generated/v2/key-management/DeleteCurrentUserApplicationKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -app_key_id = "app_key_id_example" # String | The ID of the application key. +app_key_id = 'app_key_id_example' # String | The ID of the application key. begin # Delete an application key owned by current user diff --git a/examples/generated/v2/key-management/GetApiKey.rb b/examples/generated/v2/key-management/GetApiKey.rb index e38095848cd5..ca48e829215b 100644 --- a/examples/generated/v2/key-management/GetApiKey.rb +++ b/examples/generated/v2/key-management/GetApiKey.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -api_key_id = "api_key_id_example" # String | The ID of the API key. +api_key_id = 'api_key_id_example' # String | The ID of the API key. opts = { - include: "created_by,modified_by", # String | Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. + include: 'created_by,modified_by' # String | Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. } begin diff --git a/examples/generated/v2/key-management/GetApplicationKey.rb b/examples/generated/v2/key-management/GetApplicationKey.rb index aefe6c52a480..ece32726c7d8 100644 --- a/examples/generated/v2/key-management/GetApplicationKey.rb +++ b/examples/generated/v2/key-management/GetApplicationKey.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -app_key_id = "app_key_id_example" # String | The ID of the application key. +app_key_id = 'app_key_id_example' # String | The ID of the application key. opts = { - include: "owned_by", # String | Resource path for related resources to include in the response. Only `owned_by` is supported. + include: 'owned_by' # String | Resource path for related resources to include in the response. Only `owned_by` is supported. } begin diff --git a/examples/generated/v2/key-management/GetCurrentUserApplicationKey.rb b/examples/generated/v2/key-management/GetCurrentUserApplicationKey.rb index 16571696b4bc..9f2b56d2fcc2 100644 --- a/examples/generated/v2/key-management/GetCurrentUserApplicationKey.rb +++ b/examples/generated/v2/key-management/GetCurrentUserApplicationKey.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -app_key_id = "app_key_id_example" # String | The ID of the application key. +app_key_id = 'app_key_id_example' # String | The ID of the application key. begin # Get one application key owned by current user diff --git a/examples/generated/v2/key-management/ListApiKeys.rb b/examples/generated/v2/key-management/ListApiKeys.rb index 20acd81cffe4..ccf5c9083e51 100644 --- a/examples/generated/v2/key-management/ListApiKeys.rb +++ b/examples/generated/v2/key-management/ListApiKeys.rb @@ -1,15 +1,15 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new opts = { page_size: 10, # Integer | Size for a given page. page_number: 0, # Integer | Specific page number to return. sort: DatadogAPIClient::V2::APIKeysSort::CREATED_AT_ASCENDING, # APIKeysSort | API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. - filter: "filter_example", # String | Filter API keys by the specified string. - filter_created_at_start: "2020-11-24T18:46:21+00:00", # String | Only include API keys created on or after the specified date. - filter_created_at_end: "2020-11-24T18:46:21+00:00", # String | Only include API keys created on or before the specified date. - filter_modified_at_start: "2020-11-24T18:46:21+00:00", # String | Only include API keys modified on or after the specified date. - filter_modified_at_end: "2020-11-24T18:46:21+00:00", # String | Only include API keys modified on or before the specified date. - include: "created_by,modified_by", # String | Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. + filter: 'filter_example', # String | Filter API keys by the specified string. + filter_created_at_start: '2020-11-24T18:46:21+00:00', # String | Only include API keys created on or after the specified date. + filter_created_at_end: '2020-11-24T18:46:21+00:00', # String | Only include API keys created on or before the specified date. + filter_modified_at_start: '2020-11-24T18:46:21+00:00', # String | Only include API keys modified on or after the specified date. + filter_modified_at_end: '2020-11-24T18:46:21+00:00', # String | Only include API keys modified on or before the specified date. + include: 'created_by,modified_by' # String | Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. } begin diff --git a/examples/generated/v2/key-management/ListApplicationKeys.rb b/examples/generated/v2/key-management/ListApplicationKeys.rb index e934c4a3a945..fe87667ec5dc 100644 --- a/examples/generated/v2/key-management/ListApplicationKeys.rb +++ b/examples/generated/v2/key-management/ListApplicationKeys.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new opts = { page_size: 10, # Integer | Size for a given page. page_number: 0, # Integer | Specific page number to return. sort: DatadogAPIClient::V2::ApplicationKeysSort::CREATED_AT_ASCENDING, # ApplicationKeysSort | Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. - filter: "filter_example", # String | Filter application keys by the specified string. - filter_created_at_start: "2020-11-24T18:46:21+00:00", # String | Only include application keys created on or after the specified date. - filter_created_at_end: "2020-11-24T18:46:21+00:00", # String | Only include application keys created on or before the specified date. + filter: 'filter_example', # String | Filter application keys by the specified string. + filter_created_at_start: '2020-11-24T18:46:21+00:00', # String | Only include application keys created on or after the specified date. + filter_created_at_end: '2020-11-24T18:46:21+00:00' # String | Only include application keys created on or before the specified date. } begin diff --git a/examples/generated/v2/key-management/ListCurrentUserApplicationKeys.rb b/examples/generated/v2/key-management/ListCurrentUserApplicationKeys.rb index 58063e9dc625..27a106d99d2c 100644 --- a/examples/generated/v2/key-management/ListCurrentUserApplicationKeys.rb +++ b/examples/generated/v2/key-management/ListCurrentUserApplicationKeys.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new opts = { page_size: 10, # Integer | Size for a given page. page_number: 0, # Integer | Specific page number to return. sort: DatadogAPIClient::V2::ApplicationKeysSort::CREATED_AT_ASCENDING, # ApplicationKeysSort | Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. - filter: "filter_example", # String | Filter application keys by the specified string. - filter_created_at_start: "2020-11-24T18:46:21+00:00", # String | Only include application keys created on or after the specified date. - filter_created_at_end: "2020-11-24T18:46:21+00:00", # String | Only include application keys created on or before the specified date. + filter: 'filter_example', # String | Filter application keys by the specified string. + filter_created_at_start: '2020-11-24T18:46:21+00:00', # String | Only include application keys created on or after the specified date. + filter_created_at_end: '2020-11-24T18:46:21+00:00' # String | Only include application keys created on or before the specified date. } begin diff --git a/examples/generated/v2/key-management/UpdateApiKey.rb b/examples/generated/v2/key-management/UpdateApiKey.rb index 313c3021f26e..14f3b4627535 100644 --- a/examples/generated/v2/key-management/UpdateApiKey.rb +++ b/examples/generated/v2/key-management/UpdateApiKey.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -api_key_id = "api_key_id_example" # String | The ID of the API key. -body = DatadogAPIClient::V2::APIKeyUpdateRequest.new({ data: DatadogAPIClient::V2::APIKeyUpdateData.new({ attributes: DatadogAPIClient::V2::APIKeyUpdateAttributes.new({ name: "API Key for submitting metrics" }), id: "00112233-4455-6677-8899-aabbccddeeff", type: DatadogAPIClient::V2::APIKeysType::API_KEYS }) }) # APIKeyUpdateRequest | +api_key_id = 'api_key_id_example' # String | The ID of the API key. +body = DatadogAPIClient::V2::APIKeyUpdateRequest.new({data: DatadogAPIClient::V2::APIKeyUpdateData.new({attributes: DatadogAPIClient::V2::APIKeyUpdateAttributes.new({name: 'API Key for submitting metrics'}), id: '00112233-4455-6677-8899-aabbccddeeff', type: DatadogAPIClient::V2::APIKeysType::API_KEYS})}) # APIKeyUpdateRequest | begin # Edit an API key diff --git a/examples/generated/v2/key-management/UpdateApplicationKey.rb b/examples/generated/v2/key-management/UpdateApplicationKey.rb index e1428d54955f..6f4733c48d8d 100644 --- a/examples/generated/v2/key-management/UpdateApplicationKey.rb +++ b/examples/generated/v2/key-management/UpdateApplicationKey.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -app_key_id = "app_key_id_example" # String | The ID of the application key. -body = DatadogAPIClient::V2::ApplicationKeyUpdateRequest.new({ data: DatadogAPIClient::V2::ApplicationKeyUpdateData.new({ attributes: DatadogAPIClient::V2::ApplicationKeyUpdateAttributes.new, id: "00112233-4455-6677-8899-aabbccddeeff", type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS }) }) # ApplicationKeyUpdateRequest | +app_key_id = 'app_key_id_example' # String | The ID of the application key. +body = DatadogAPIClient::V2::ApplicationKeyUpdateRequest.new({data: DatadogAPIClient::V2::ApplicationKeyUpdateData.new({attributes: DatadogAPIClient::V2::ApplicationKeyUpdateAttributes.new, id: '00112233-4455-6677-8899-aabbccddeeff', type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS})}) # ApplicationKeyUpdateRequest | begin # Edit an application key diff --git a/examples/generated/v2/key-management/UpdateCurrentUserApplicationKey.rb b/examples/generated/v2/key-management/UpdateCurrentUserApplicationKey.rb index 2fe79afa6069..32f62438558c 100644 --- a/examples/generated/v2/key-management/UpdateCurrentUserApplicationKey.rb +++ b/examples/generated/v2/key-management/UpdateCurrentUserApplicationKey.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::KeyManagementAPI.new -app_key_id = "app_key_id_example" # String | The ID of the application key. -body = DatadogAPIClient::V2::ApplicationKeyUpdateRequest.new({ data: DatadogAPIClient::V2::ApplicationKeyUpdateData.new({ attributes: DatadogAPIClient::V2::ApplicationKeyUpdateAttributes.new, id: "00112233-4455-6677-8899-aabbccddeeff", type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS }) }) # ApplicationKeyUpdateRequest | +app_key_id = 'app_key_id_example' # String | The ID of the application key. +body = DatadogAPIClient::V2::ApplicationKeyUpdateRequest.new({data: DatadogAPIClient::V2::ApplicationKeyUpdateData.new({attributes: DatadogAPIClient::V2::ApplicationKeyUpdateAttributes.new, id: '00112233-4455-6677-8899-aabbccddeeff', type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS})}) # ApplicationKeyUpdateRequest | begin # Edit an application key owned by current user diff --git a/examples/generated/v2/logs-archives/AddReadRoleToArchive.rb b/examples/generated/v2/logs-archives/AddReadRoleToArchive.rb index 825e764397e4..21b30c9db99d 100644 --- a/examples/generated/v2/logs-archives/AddReadRoleToArchive.rb +++ b/examples/generated/v2/logs-archives/AddReadRoleToArchive.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new -archive_id = "archive_id_example" # String | The ID of the archive. -body = DatadogAPIClient::V2::RelationshipToRole.new # RelationshipToRole | +archive_id = 'archive_id_example' # String | The ID of the archive. +body = DatadogAPIClient::V2::RelationshipToRole.new # RelationshipToRole | begin # Grant role to an archive diff --git a/examples/generated/v2/logs-archives/CreateLogsArchive.rb b/examples/generated/v2/logs-archives/CreateLogsArchive.rb index 52f4490463df..bc3aa92c1d06 100644 --- a/examples/generated/v2/logs-archives/CreateLogsArchive.rb +++ b/examples/generated/v2/logs-archives/CreateLogsArchive.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new body = DatadogAPIClient::V2::LogsArchiveCreateRequest.new # LogsArchiveCreateRequest | The definition of the new archive. diff --git a/examples/generated/v2/logs-archives/DeleteLogsArchive.rb b/examples/generated/v2/logs-archives/DeleteLogsArchive.rb index 1547e1285fa7..b0e36026b7a3 100644 --- a/examples/generated/v2/logs-archives/DeleteLogsArchive.rb +++ b/examples/generated/v2/logs-archives/DeleteLogsArchive.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new -archive_id = "archive_id_example" # String | The ID of the archive. +archive_id = 'archive_id_example' # String | The ID of the archive. begin # Delete an archive diff --git a/examples/generated/v2/logs-archives/GetLogsArchive.rb b/examples/generated/v2/logs-archives/GetLogsArchive.rb index bb591939622a..0abe9fced35b 100644 --- a/examples/generated/v2/logs-archives/GetLogsArchive.rb +++ b/examples/generated/v2/logs-archives/GetLogsArchive.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new -archive_id = "archive_id_example" # String | The ID of the archive. +archive_id = 'archive_id_example' # String | The ID of the archive. begin # Get an archive diff --git a/examples/generated/v2/logs-archives/GetLogsArchiveOrder.rb b/examples/generated/v2/logs-archives/GetLogsArchiveOrder.rb index c39a379049f1..ee645b2c28f1 100644 --- a/examples/generated/v2/logs-archives/GetLogsArchiveOrder.rb +++ b/examples/generated/v2/logs-archives/GetLogsArchiveOrder.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new begin diff --git a/examples/generated/v2/logs-archives/ListArchiveReadRoles.rb b/examples/generated/v2/logs-archives/ListArchiveReadRoles.rb index 444653029e18..7a8380793b95 100644 --- a/examples/generated/v2/logs-archives/ListArchiveReadRoles.rb +++ b/examples/generated/v2/logs-archives/ListArchiveReadRoles.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new -archive_id = "archive_id_example" # String | The ID of the archive. +archive_id = 'archive_id_example' # String | The ID of the archive. begin # List read roles for an archive diff --git a/examples/generated/v2/logs-archives/ListLogsArchives.rb b/examples/generated/v2/logs-archives/ListLogsArchives.rb index 363dca936896..943c01d20baa 100644 --- a/examples/generated/v2/logs-archives/ListLogsArchives.rb +++ b/examples/generated/v2/logs-archives/ListLogsArchives.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new begin diff --git a/examples/generated/v2/logs-archives/RemoveRoleFromArchive.rb b/examples/generated/v2/logs-archives/RemoveRoleFromArchive.rb index 78fa7d6649e8..b3a623b0c8ea 100644 --- a/examples/generated/v2/logs-archives/RemoveRoleFromArchive.rb +++ b/examples/generated/v2/logs-archives/RemoveRoleFromArchive.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new -archive_id = "archive_id_example" # String | The ID of the archive. -body = DatadogAPIClient::V2::RelationshipToRole.new # RelationshipToRole | +archive_id = 'archive_id_example' # String | The ID of the archive. +body = DatadogAPIClient::V2::RelationshipToRole.new # RelationshipToRole | begin # Revoke role from an archive diff --git a/examples/generated/v2/logs-archives/UpdateLogsArchive.rb b/examples/generated/v2/logs-archives/UpdateLogsArchive.rb index 055cee571791..4e5de976a9d7 100644 --- a/examples/generated/v2/logs-archives/UpdateLogsArchive.rb +++ b/examples/generated/v2/logs-archives/UpdateLogsArchive.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new -archive_id = "archive_id_example" # String | The ID of the archive. +archive_id = 'archive_id_example' # String | The ID of the archive. body = DatadogAPIClient::V2::LogsArchiveCreateRequest.new # LogsArchiveCreateRequest | New definition of the archive. begin diff --git a/examples/generated/v2/logs-archives/UpdateLogsArchiveOrder.rb b/examples/generated/v2/logs-archives/UpdateLogsArchiveOrder.rb index 16a45295bba2..08accb5b6ebd 100644 --- a/examples/generated/v2/logs-archives/UpdateLogsArchiveOrder.rb +++ b/examples/generated/v2/logs-archives/UpdateLogsArchiveOrder.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new body = DatadogAPIClient::V2::LogsArchiveOrder.new # LogsArchiveOrder | An object containing the new ordered list of archive IDs. diff --git a/examples/generated/v2/logs-metrics/CreateLogsMetric.rb b/examples/generated/v2/logs-metrics/CreateLogsMetric.rb index a306d9c85fb0..be57b1622430 100644 --- a/examples/generated/v2/logs-metrics/CreateLogsMetric.rb +++ b/examples/generated/v2/logs-metrics/CreateLogsMetric.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new -body = DatadogAPIClient::V2::LogsMetricCreateRequest.new({ data: DatadogAPIClient::V2::LogsMetricCreateData.new({ attributes: DatadogAPIClient::V2::LogsMetricCreateAttributes.new({ compute: DatadogAPIClient::V2::LogsMetricCompute.new({ aggregation_type: DatadogAPIClient::V2::LogsMetricComputeAggregationType::COUNT }) }), id: "logs.page.load.count", type: DatadogAPIClient::V2::LogsMetricType::LOGS_METRICS }) }) # LogsMetricCreateRequest | The definition of the new log-based metric. +body = DatadogAPIClient::V2::LogsMetricCreateRequest.new({data: DatadogAPIClient::V2::LogsMetricCreateData.new({attributes: DatadogAPIClient::V2::LogsMetricCreateAttributes.new({compute: DatadogAPIClient::V2::LogsMetricCompute.new({aggregation_type: DatadogAPIClient::V2::LogsMetricComputeAggregationType::COUNT})}), id: 'logs.page.load.count', type: DatadogAPIClient::V2::LogsMetricType::LOGS_METRICS})}) # LogsMetricCreateRequest | The definition of the new log-based metric. begin # Create a log-based metric diff --git a/examples/generated/v2/logs-metrics/DeleteLogsMetric.rb b/examples/generated/v2/logs-metrics/DeleteLogsMetric.rb index e11812a7fb71..93b7a642036a 100644 --- a/examples/generated/v2/logs-metrics/DeleteLogsMetric.rb +++ b/examples/generated/v2/logs-metrics/DeleteLogsMetric.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new -metric_id = "metric_id_example" # String | The name of the log-based metric. +metric_id = 'metric_id_example' # String | The name of the log-based metric. begin # Delete a log-based metric diff --git a/examples/generated/v2/logs-metrics/GetLogsMetric.rb b/examples/generated/v2/logs-metrics/GetLogsMetric.rb index 3fb88629047c..1fa97bfbd779 100644 --- a/examples/generated/v2/logs-metrics/GetLogsMetric.rb +++ b/examples/generated/v2/logs-metrics/GetLogsMetric.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new -metric_id = "metric_id_example" # String | The name of the log-based metric. +metric_id = 'metric_id_example' # String | The name of the log-based metric. begin # Get a log-based metric diff --git a/examples/generated/v2/logs-metrics/ListLogsMetrics.rb b/examples/generated/v2/logs-metrics/ListLogsMetrics.rb index d1dabe44eca0..41dc736e3e91 100644 --- a/examples/generated/v2/logs-metrics/ListLogsMetrics.rb +++ b/examples/generated/v2/logs-metrics/ListLogsMetrics.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new begin diff --git a/examples/generated/v2/logs-metrics/UpdateLogsMetric.rb b/examples/generated/v2/logs-metrics/UpdateLogsMetric.rb index 8edf1a0231d0..6c6521a79b61 100644 --- a/examples/generated/v2/logs-metrics/UpdateLogsMetric.rb +++ b/examples/generated/v2/logs-metrics/UpdateLogsMetric.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new -metric_id = "metric_id_example" # String | The name of the log-based metric. -body = DatadogAPIClient::V2::LogsMetricUpdateRequest.new({ data: DatadogAPIClient::V2::LogsMetricUpdateData.new({ attributes: DatadogAPIClient::V2::LogsMetricUpdateAttributes.new, type: DatadogAPIClient::V2::LogsMetricType::LOGS_METRICS }) }) # LogsMetricUpdateRequest | New definition of the log-based metric. +metric_id = 'metric_id_example' # String | The name of the log-based metric. +body = DatadogAPIClient::V2::LogsMetricUpdateRequest.new({data: DatadogAPIClient::V2::LogsMetricUpdateData.new({attributes: DatadogAPIClient::V2::LogsMetricUpdateAttributes.new, type: DatadogAPIClient::V2::LogsMetricType::LOGS_METRICS})}) # LogsMetricUpdateRequest | New definition of the log-based metric. begin # Update a log-based metric diff --git a/examples/generated/v2/logs/AggregateLogs.rb b/examples/generated/v2/logs/AggregateLogs.rb index 15759977de71..78726bb14d2f 100644 --- a/examples/generated/v2/logs/AggregateLogs.rb +++ b/examples/generated/v2/logs/AggregateLogs.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsAPI.new -body = DatadogAPIClient::V2::LogsAggregateRequest.new # LogsAggregateRequest | +body = DatadogAPIClient::V2::LogsAggregateRequest.new # LogsAggregateRequest | begin # Aggregate events diff --git a/examples/generated/v2/logs/ListLogs.rb b/examples/generated/v2/logs/ListLogs.rb index 0aaa3988f632..20ae515e57db 100644 --- a/examples/generated/v2/logs/ListLogs.rb +++ b/examples/generated/v2/logs/ListLogs.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsAPI.new opts = { - body: DatadogAPIClient::V2::LogsListRequest.new, # LogsListRequest | + body: DatadogAPIClient::V2::LogsListRequest.new # LogsListRequest | } begin diff --git a/examples/generated/v2/logs/ListLogsGet.rb b/examples/generated/v2/logs/ListLogsGet.rb index 4ce6fb73065e..3d9f15cd79d0 100644 --- a/examples/generated/v2/logs/ListLogsGet.rb +++ b/examples/generated/v2/logs/ListLogsGet.rb @@ -1,13 +1,13 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsAPI.new opts = { - filter_query: "@datacenter:us @role:db", # String | Search query following logs syntax. - filter_index: "main", # String | For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes - filter_from: Time.parse("2019-01-02T09:42:36.320Z"), # Time | Minimum timestamp for requested logs. - filter_to: Time.parse("2019-01-03T09:42:36.320Z"), # Time | Maximum timestamp for requested logs. + filter_query: '@datacenter:us @role:db', # String | Search query following logs syntax. + filter_index: 'main', # String | For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes + filter_from: Time.parse('2019-01-02T09:42:36.320Z'), # Time | Minimum timestamp for requested logs. + filter_to: Time.parse('2019-01-03T09:42:36.320Z'), # Time | Maximum timestamp for requested logs. sort: DatadogAPIClient::V2::LogsSort::TIMESTAMP_ASCENDING, # LogsSort | Order of logs in results. - page_cursor: "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", # String | List following results with a cursor provided in the previous query. - page_limit: 25, # Integer | Maximum number of logs in the response. + page_cursor: 'eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==', # String | List following results with a cursor provided in the previous query. + page_limit: 25 # Integer | Maximum number of logs in the response. } begin diff --git a/examples/generated/v2/logs/SubmitLog.rb b/examples/generated/v2/logs/SubmitLog.rb index 0ab568a4ac76..7aa770bba8be 100644 --- a/examples/generated/v2/logs/SubmitLog.rb +++ b/examples/generated/v2/logs/SubmitLog.rb @@ -1,9 +1,9 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::LogsAPI.new body = [DatadogAPIClient::V2::HTTPLogItem.new] # Array | Log to send (JSON format). opts = { content_encoding: DatadogAPIClient::V2::ContentEncoding::GZIP, # ContentEncoding | HTTP header used to compress the media-type. - ddtags: "env:prod,user:my-user", # String | Log tags can be passed as query parameters with `text/plain` content type. + ddtags: 'env:prod,user:my-user' # String | Log tags can be passed as query parameters with `text/plain` content type. } begin diff --git a/examples/generated/v2/metrics/CreateTagConfiguration.rb b/examples/generated/v2/metrics/CreateTagConfiguration.rb index 28b42c1cc862..2b3166998f14 100644 --- a/examples/generated/v2/metrics/CreateTagConfiguration.rb +++ b/examples/generated/v2/metrics/CreateTagConfiguration.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:create_tag_configuration] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new -metric_name = "dist.http.endpoint.request" # String | The name of the metric. -body = DatadogAPIClient::V2::MetricTagConfigurationCreateRequest.new({ data: DatadogAPIClient::V2::MetricTagConfigurationCreateData.new({ id: "test.metric.latency", type: DatadogAPIClient::V2::MetricTagConfigurationType::MANAGE_TAGS }) }) # MetricTagConfigurationCreateRequest | +metric_name = 'dist.http.endpoint.request' # String | The name of the metric. +body = DatadogAPIClient::V2::MetricTagConfigurationCreateRequest.new({data: DatadogAPIClient::V2::MetricTagConfigurationCreateData.new({id: 'test.metric.latency', type: DatadogAPIClient::V2::MetricTagConfigurationType::MANAGE_TAGS})}) # MetricTagConfigurationCreateRequest | begin # Create a tag configuration diff --git a/examples/generated/v2/metrics/DeleteTagConfiguration.rb b/examples/generated/v2/metrics/DeleteTagConfiguration.rb index 3d45511c4323..5f63835ca2d1 100644 --- a/examples/generated/v2/metrics/DeleteTagConfiguration.rb +++ b/examples/generated/v2/metrics/DeleteTagConfiguration.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:delete_tag_configuration] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new -metric_name = "dist.http.endpoint.request" # String | The name of the metric. +metric_name = 'dist.http.endpoint.request' # String | The name of the metric. begin # Delete a tag configuration diff --git a/examples/generated/v2/metrics/ListTagConfigurationByName.rb b/examples/generated/v2/metrics/ListTagConfigurationByName.rb index d910d8c7eacf..65ba34d2fbc5 100644 --- a/examples/generated/v2/metrics/ListTagConfigurationByName.rb +++ b/examples/generated/v2/metrics/ListTagConfigurationByName.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:list_tag_configuration_by_name] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new -metric_name = "dist.http.endpoint.request" # String | The name of the metric. +metric_name = 'dist.http.endpoint.request' # String | The name of the metric. begin # List tag configuration by name diff --git a/examples/generated/v2/metrics/ListTagConfigurations.rb b/examples/generated/v2/metrics/ListTagConfigurations.rb index 858e97376263..490cb2b2e431 100644 --- a/examples/generated/v2/metrics/ListTagConfigurations.rb +++ b/examples/generated/v2/metrics/ListTagConfigurations.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:list_tag_configurations] = true @@ -7,11 +7,11 @@ api_instance = DatadogAPIClient::V2::MetricsAPI.new opts = { filter_configured: true, # Boolean | Filter metrics that have configured tags. - filter_tags_configured: "app", # String | Filter tag configurations by configured tags. + filter_tags_configured: 'app', # String | Filter tag configurations by configured tags. filter_metric_type: DatadogAPIClient::V2::MetricTagConfigurationMetricTypes::GAUGE, # MetricTagConfigurationMetricTypes | Filter tag configurations by metric type. filter_include_percentiles: true, # Boolean | Filter distributions with additional percentile aggregations enabled or disabled. - filter_tags: "env IN (staging,test) AND service:web", # String | Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. - window_seconds: 3600, # Integer | The number of seconds of look back (from now) to apply to a filter[tag] query. Defaults value is 3600 (1 hour), maximum value is 172,800 (2 days). + filter_tags: 'env IN (staging,test) AND service:web', # String | Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. + window_seconds: 3600 # Integer | The number of seconds of look back (from now) to apply to a filter[tag] query. Defaults value is 3600 (1 hour), maximum value is 172,800 (2 days). } begin diff --git a/examples/generated/v2/metrics/ListTagsByMetricName.rb b/examples/generated/v2/metrics/ListTagsByMetricName.rb index 4baadc093a5b..01bc25abf913 100644 --- a/examples/generated/v2/metrics/ListTagsByMetricName.rb +++ b/examples/generated/v2/metrics/ListTagsByMetricName.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::MetricsAPI.new -metric_name = "dist.http.endpoint.request" # String | The name of the metric. +metric_name = 'dist.http.endpoint.request' # String | The name of the metric. begin # List tags by metric name diff --git a/examples/generated/v2/metrics/ListVolumesByMetricName.rb b/examples/generated/v2/metrics/ListVolumesByMetricName.rb index e3da82a44291..10e8739796d9 100644 --- a/examples/generated/v2/metrics/ListVolumesByMetricName.rb +++ b/examples/generated/v2/metrics/ListVolumesByMetricName.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::MetricsAPI.new -metric_name = "dist.http.endpoint.request" # String | The name of the metric. +metric_name = 'dist.http.endpoint.request' # String | The name of the metric. begin # List distinct metric volumes by metric name diff --git a/examples/generated/v2/metrics/UpdateTagConfiguration.rb b/examples/generated/v2/metrics/UpdateTagConfiguration.rb index 75af74d7aad7..ac5af0731b93 100644 --- a/examples/generated/v2/metrics/UpdateTagConfiguration.rb +++ b/examples/generated/v2/metrics/UpdateTagConfiguration.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:update_tag_configuration] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new -metric_name = "dist.http.endpoint.request" # String | The name of the metric. -body = DatadogAPIClient::V2::MetricTagConfigurationUpdateRequest.new({ data: DatadogAPIClient::V2::MetricTagConfigurationUpdateData.new({ id: "test.metric.latency", type: DatadogAPIClient::V2::MetricTagConfigurationType::MANAGE_TAGS }) }) # MetricTagConfigurationUpdateRequest | +metric_name = 'dist.http.endpoint.request' # String | The name of the metric. +body = DatadogAPIClient::V2::MetricTagConfigurationUpdateRequest.new({data: DatadogAPIClient::V2::MetricTagConfigurationUpdateData.new({id: 'test.metric.latency', type: DatadogAPIClient::V2::MetricTagConfigurationType::MANAGE_TAGS})}) # MetricTagConfigurationUpdateRequest | begin # Update a tag configuration diff --git a/examples/generated/v2/processes/ListProcesses.rb b/examples/generated/v2/processes/ListProcesses.rb index 1a4d5c7e8900..c832776a38a9 100644 --- a/examples/generated/v2/processes/ListProcesses.rb +++ b/examples/generated/v2/processes/ListProcesses.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::ProcessesAPI.new opts = { - search: "search_example", # String | String to search processes by. - tags: "account:prod,user:admin", # String | Comma-separated list of tags to filter processes by. + search: 'search_example', # String | String to search processes by. + tags: 'account:prod,user:admin', # String | Comma-separated list of tags to filter processes by. from: 789, # Integer | Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. to: 789, # Integer | Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. page_limit: 56, # Integer | Maximum number of results returned. - page_cursor: "page_cursor_example", # String | String to query the next page of results. This key is provided with each valid response from the API in `meta.page.after`. + page_cursor: 'page_cursor_example' # String | String to query the next page of results. This key is provided with each valid response from the API in `meta.page.after`. } begin diff --git a/examples/generated/v2/roles/AddPermissionToRole.rb b/examples/generated/v2/roles/AddPermissionToRole.rb index a6c5a0efacf3..39463732263a 100644 --- a/examples/generated/v2/roles/AddPermissionToRole.rb +++ b/examples/generated/v2/roles/AddPermissionToRole.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -role_id = "role_id_example" # String | The ID of the role. -body = DatadogAPIClient::V2::RelationshipToPermission.new # RelationshipToPermission | +role_id = 'role_id_example' # String | The ID of the role. +body = DatadogAPIClient::V2::RelationshipToPermission.new # RelationshipToPermission | begin # Grant permission to a role diff --git a/examples/generated/v2/roles/AddUserToRole.rb b/examples/generated/v2/roles/AddUserToRole.rb index a3016f653aae..75c7cde26c44 100644 --- a/examples/generated/v2/roles/AddUserToRole.rb +++ b/examples/generated/v2/roles/AddUserToRole.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -role_id = "role_id_example" # String | The ID of the role. -body = DatadogAPIClient::V2::RelationshipToUser.new({ data: DatadogAPIClient::V2::RelationshipToUserData.new({ id: "00000000-0000-0000-0000-000000000000", type: DatadogAPIClient::V2::UsersType::USERS }) }) # RelationshipToUser | +role_id = 'role_id_example' # String | The ID of the role. +body = DatadogAPIClient::V2::RelationshipToUser.new({data: DatadogAPIClient::V2::RelationshipToUserData.new({id: '00000000-0000-0000-0000-000000000000', type: DatadogAPIClient::V2::UsersType::USERS})}) # RelationshipToUser | begin # Add a user to a role diff --git a/examples/generated/v2/roles/CloneRole.rb b/examples/generated/v2/roles/CloneRole.rb index 49f3c1ef8f4c..e078329b4a0a 100644 --- a/examples/generated/v2/roles/CloneRole.rb +++ b/examples/generated/v2/roles/CloneRole.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -role_id = "role_id_example" # String | The ID of the role. -body = DatadogAPIClient::V2::RoleCloneRequest.new({ data: DatadogAPIClient::V2::RoleClone.new({ attributes: DatadogAPIClient::V2::RoleCloneAttributes.new({ name: "cloned-role" }), type: DatadogAPIClient::V2::RolesType::ROLES }) }) # RoleCloneRequest | +role_id = 'role_id_example' # String | The ID of the role. +body = DatadogAPIClient::V2::RoleCloneRequest.new({data: DatadogAPIClient::V2::RoleClone.new({attributes: DatadogAPIClient::V2::RoleCloneAttributes.new({name: 'cloned-role'}), type: DatadogAPIClient::V2::RolesType::ROLES})}) # RoleCloneRequest | begin # Create a new role by cloning an existing role diff --git a/examples/generated/v2/roles/CreateRole.rb b/examples/generated/v2/roles/CreateRole.rb index 35c8c156db3b..1d82249d4379 100644 --- a/examples/generated/v2/roles/CreateRole.rb +++ b/examples/generated/v2/roles/CreateRole.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -body = DatadogAPIClient::V2::RoleCreateRequest.new({ data: DatadogAPIClient::V2::RoleCreateData.new({ attributes: DatadogAPIClient::V2::RoleCreateAttributes.new({ name: "developers" }) }) }) # RoleCreateRequest | +body = DatadogAPIClient::V2::RoleCreateRequest.new({data: DatadogAPIClient::V2::RoleCreateData.new({attributes: DatadogAPIClient::V2::RoleCreateAttributes.new({name: 'developers'})})}) # RoleCreateRequest | begin # Create role diff --git a/examples/generated/v2/roles/DeleteRole.rb b/examples/generated/v2/roles/DeleteRole.rb index 8eff8351c52c..2ed12dd86e50 100644 --- a/examples/generated/v2/roles/DeleteRole.rb +++ b/examples/generated/v2/roles/DeleteRole.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -role_id = "role_id_example" # String | The ID of the role. +role_id = 'role_id_example' # String | The ID of the role. begin # Delete role diff --git a/examples/generated/v2/roles/GetRole.rb b/examples/generated/v2/roles/GetRole.rb index 38a085a793ba..9e72a2766f3e 100644 --- a/examples/generated/v2/roles/GetRole.rb +++ b/examples/generated/v2/roles/GetRole.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -role_id = "role_id_example" # String | The ID of the role. +role_id = 'role_id_example' # String | The ID of the role. begin # Get a role diff --git a/examples/generated/v2/roles/ListPermissions.rb b/examples/generated/v2/roles/ListPermissions.rb index 99b838b7cfc1..766904091d15 100644 --- a/examples/generated/v2/roles/ListPermissions.rb +++ b/examples/generated/v2/roles/ListPermissions.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new begin diff --git a/examples/generated/v2/roles/ListRolePermissions.rb b/examples/generated/v2/roles/ListRolePermissions.rb index a9a36f44c083..d59dae78f242 100644 --- a/examples/generated/v2/roles/ListRolePermissions.rb +++ b/examples/generated/v2/roles/ListRolePermissions.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -role_id = "role_id_example" # String | The ID of the role. +role_id = 'role_id_example' # String | The ID of the role. begin # List permissions for a role diff --git a/examples/generated/v2/roles/ListRoleUsers.rb b/examples/generated/v2/roles/ListRoleUsers.rb index e6ed82bbd06c..26498bf75291 100644 --- a/examples/generated/v2/roles/ListRoleUsers.rb +++ b/examples/generated/v2/roles/ListRoleUsers.rb @@ -1,11 +1,11 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -role_id = "role_id_example" # String | The ID of the role. +role_id = 'role_id_example' # String | The ID of the role. opts = { page_size: 10, # Integer | Size for a given page. page_number: 0, # Integer | Specific page number to return. - sort: "sort_example", # String | User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`. - filter: "filter_example", # String | Filter all users by the given string. Defaults to no filtering. + sort: 'sort_example', # String | User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`. + filter: 'filter_example' # String | Filter all users by the given string. Defaults to no filtering. } begin diff --git a/examples/generated/v2/roles/ListRoles.rb b/examples/generated/v2/roles/ListRoles.rb index 2f10f88fa17d..0994e3f43b84 100644 --- a/examples/generated/v2/roles/ListRoles.rb +++ b/examples/generated/v2/roles/ListRoles.rb @@ -1,10 +1,10 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new opts = { page_size: 10, # Integer | Size for a given page. page_number: 0, # Integer | Specific page number to return. sort: DatadogAPIClient::V2::RolesSort::NAME_ASCENDING, # RolesSort | Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`. - filter: "filter_example", # String | Filter all roles by the given string. + filter: 'filter_example' # String | Filter all roles by the given string. } begin diff --git a/examples/generated/v2/roles/RemovePermissionFromRole.rb b/examples/generated/v2/roles/RemovePermissionFromRole.rb index a4bf277aa620..4e35543daf38 100644 --- a/examples/generated/v2/roles/RemovePermissionFromRole.rb +++ b/examples/generated/v2/roles/RemovePermissionFromRole.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -role_id = "role_id_example" # String | The ID of the role. -body = DatadogAPIClient::V2::RelationshipToPermission.new # RelationshipToPermission | +role_id = 'role_id_example' # String | The ID of the role. +body = DatadogAPIClient::V2::RelationshipToPermission.new # RelationshipToPermission | begin # Revoke permission diff --git a/examples/generated/v2/roles/RemoveUserFromRole.rb b/examples/generated/v2/roles/RemoveUserFromRole.rb index da5b129652b7..b7fcc1542959 100644 --- a/examples/generated/v2/roles/RemoveUserFromRole.rb +++ b/examples/generated/v2/roles/RemoveUserFromRole.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -role_id = "role_id_example" # String | The ID of the role. -body = DatadogAPIClient::V2::RelationshipToUser.new({ data: DatadogAPIClient::V2::RelationshipToUserData.new({ id: "00000000-0000-0000-0000-000000000000", type: DatadogAPIClient::V2::UsersType::USERS }) }) # RelationshipToUser | +role_id = 'role_id_example' # String | The ID of the role. +body = DatadogAPIClient::V2::RelationshipToUser.new({data: DatadogAPIClient::V2::RelationshipToUserData.new({id: '00000000-0000-0000-0000-000000000000', type: DatadogAPIClient::V2::UsersType::USERS})}) # RelationshipToUser | begin # Remove a user from a role diff --git a/examples/generated/v2/roles/UpdateRole.rb b/examples/generated/v2/roles/UpdateRole.rb index 102b9659e5fc..68fb8c85b9c0 100644 --- a/examples/generated/v2/roles/UpdateRole.rb +++ b/examples/generated/v2/roles/UpdateRole.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::RolesAPI.new -role_id = "role_id_example" # String | The ID of the role. -body = DatadogAPIClient::V2::RoleUpdateRequest.new({ data: DatadogAPIClient::V2::RoleUpdateData.new({ attributes: DatadogAPIClient::V2::RoleUpdateAttributes.new, id: "00000000-0000-0000-0000-000000000000", type: DatadogAPIClient::V2::RolesType::ROLES }) }) # RoleUpdateRequest | +role_id = 'role_id_example' # String | The ID of the role. +body = DatadogAPIClient::V2::RoleUpdateRequest.new({data: DatadogAPIClient::V2::RoleUpdateData.new({attributes: DatadogAPIClient::V2::RoleUpdateAttributes.new, id: '00000000-0000-0000-0000-000000000000', type: DatadogAPIClient::V2::RolesType::ROLES})}) # RoleUpdateRequest | begin # Update a role diff --git a/examples/generated/v2/security-monitoring/CreateSecurityFilter.rb b/examples/generated/v2/security-monitoring/CreateSecurityFilter.rb index 54f1c3bfb478..6f54404646a1 100644 --- a/examples/generated/v2/security-monitoring/CreateSecurityFilter.rb +++ b/examples/generated/v2/security-monitoring/CreateSecurityFilter.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new -body = DatadogAPIClient::V2::SecurityFilterCreateRequest.new({ data: DatadogAPIClient::V2::SecurityFilterCreateData.new({ attributes: DatadogAPIClient::V2::SecurityFilterCreateAttributes.new({ exclusion_filters: [DatadogAPIClient::V2::SecurityFilterExclusionFilter.new({ name: "Exclude staging", query: "source:staging" })], filtered_data_type: DatadogAPIClient::V2::SecurityFilterFilteredDataType::LOGS, is_enabled: true, name: "Custom security filter", query: "service:api" }), type: DatadogAPIClient::V2::SecurityFilterType::SECURITY_FILTERS }) }) # SecurityFilterCreateRequest | The definition of the new security filter. +body = DatadogAPIClient::V2::SecurityFilterCreateRequest.new({data: DatadogAPIClient::V2::SecurityFilterCreateData.new({attributes: DatadogAPIClient::V2::SecurityFilterCreateAttributes.new({exclusion_filters: [DatadogAPIClient::V2::SecurityFilterExclusionFilter.new({name: 'Exclude staging', query: 'source:staging'})], filtered_data_type: DatadogAPIClient::V2::SecurityFilterFilteredDataType::LOGS, is_enabled: true, name: 'Custom security filter', query: 'service:api'}), type: DatadogAPIClient::V2::SecurityFilterType::SECURITY_FILTERS})}) # SecurityFilterCreateRequest | The definition of the new security filter. begin # Create a security filter diff --git a/examples/generated/v2/security-monitoring/CreateSecurityMonitoringRule.rb b/examples/generated/v2/security-monitoring/CreateSecurityMonitoringRule.rb index 7736b18f3324..9ea4880e3e04 100644 --- a/examples/generated/v2/security-monitoring/CreateSecurityMonitoringRule.rb +++ b/examples/generated/v2/security-monitoring/CreateSecurityMonitoringRule.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new -body = DatadogAPIClient::V2::SecurityMonitoringRuleCreatePayload.new({ cases: [DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate.new({ status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::INFO })], is_enabled: true, message: "message_example", name: "My security monitoring rule.", options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new, queries: [DatadogAPIClient::V2::SecurityMonitoringRuleQueryCreate.new({ query: "a > 3" })] }) # SecurityMonitoringRuleCreatePayload | +body = DatadogAPIClient::V2::SecurityMonitoringRuleCreatePayload.new({cases: [DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate.new({status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::INFO})], is_enabled: true, message: 'message_example', name: 'My security monitoring rule.', options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new, queries: [DatadogAPIClient::V2::SecurityMonitoringRuleQueryCreate.new({query: 'a > 3'})]}) # SecurityMonitoringRuleCreatePayload | begin # Create a detection rule diff --git a/examples/generated/v2/security-monitoring/DeleteSecurityFilter.rb b/examples/generated/v2/security-monitoring/DeleteSecurityFilter.rb index 1c322ccdbb6d..2340c6d04b67 100644 --- a/examples/generated/v2/security-monitoring/DeleteSecurityFilter.rb +++ b/examples/generated/v2/security-monitoring/DeleteSecurityFilter.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new -security_filter_id = "security_filter_id_example" # String | The ID of the security filter. +security_filter_id = 'security_filter_id_example' # String | The ID of the security filter. begin # Delete a security filter diff --git a/examples/generated/v2/security-monitoring/DeleteSecurityMonitoringRule.rb b/examples/generated/v2/security-monitoring/DeleteSecurityMonitoringRule.rb index bd7f77aa19ed..4a442e164638 100644 --- a/examples/generated/v2/security-monitoring/DeleteSecurityMonitoringRule.rb +++ b/examples/generated/v2/security-monitoring/DeleteSecurityMonitoringRule.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new -rule_id = "rule_id_example" # String | The ID of the rule. +rule_id = 'rule_id_example' # String | The ID of the rule. begin # Delete an existing rule diff --git a/examples/generated/v2/security-monitoring/GetSecurityFilter.rb b/examples/generated/v2/security-monitoring/GetSecurityFilter.rb index ad1678029e90..d7f92ab36a8b 100644 --- a/examples/generated/v2/security-monitoring/GetSecurityFilter.rb +++ b/examples/generated/v2/security-monitoring/GetSecurityFilter.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new -security_filter_id = "security_filter_id_example" # String | The ID of the security filter. +security_filter_id = 'security_filter_id_example' # String | The ID of the security filter. begin # Get a security filter diff --git a/examples/generated/v2/security-monitoring/GetSecurityMonitoringRule.rb b/examples/generated/v2/security-monitoring/GetSecurityMonitoringRule.rb index 172d2e0d87ea..ca70bc07dafb 100644 --- a/examples/generated/v2/security-monitoring/GetSecurityMonitoringRule.rb +++ b/examples/generated/v2/security-monitoring/GetSecurityMonitoringRule.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new -rule_id = "rule_id_example" # String | The ID of the rule. +rule_id = 'rule_id_example' # String | The ID of the rule. begin # Get a rule's details diff --git a/examples/generated/v2/security-monitoring/ListSecurityFilters.rb b/examples/generated/v2/security-monitoring/ListSecurityFilters.rb index b32a89309f2b..11b1271c93eb 100644 --- a/examples/generated/v2/security-monitoring/ListSecurityFilters.rb +++ b/examples/generated/v2/security-monitoring/ListSecurityFilters.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new begin diff --git a/examples/generated/v2/security-monitoring/ListSecurityMonitoringRules.rb b/examples/generated/v2/security-monitoring/ListSecurityMonitoringRules.rb index 5bff89698fd8..8b838c721564 100644 --- a/examples/generated/v2/security-monitoring/ListSecurityMonitoringRules.rb +++ b/examples/generated/v2/security-monitoring/ListSecurityMonitoringRules.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new opts = { page_size: 10, # Integer | Size for a given page. - page_number: 0, # Integer | Specific page number to return. + page_number: 0 # Integer | Specific page number to return. } begin diff --git a/examples/generated/v2/security-monitoring/ListSecurityMonitoringSignals.rb b/examples/generated/v2/security-monitoring/ListSecurityMonitoringSignals.rb index 1182c83dcf55..50177eb6b0ec 100644 --- a/examples/generated/v2/security-monitoring/ListSecurityMonitoringSignals.rb +++ b/examples/generated/v2/security-monitoring/ListSecurityMonitoringSignals.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:list_security_monitoring_signals] = true @@ -6,12 +6,12 @@ api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new opts = { - filter_query: "security:attack status:high", # String | The search query for security signals. - filter_from: Time.parse("2019-01-02T09:42:36.320Z"), # Time | The minimum timestamp for requested security signals. - filter_to: Time.parse("2019-01-03T09:42:36.320Z"), # Time | The maximum timestamp for requested security signals. + filter_query: 'security:attack status:high', # String | The search query for security signals. + filter_from: Time.parse('2019-01-02T09:42:36.320Z'), # Time | The minimum timestamp for requested security signals. + filter_to: Time.parse('2019-01-03T09:42:36.320Z'), # Time | The maximum timestamp for requested security signals. sort: DatadogAPIClient::V2::SecurityMonitoringSignalsSort::TIMESTAMP_ASCENDING, # SecurityMonitoringSignalsSort | The order of the security signals in results. - page_cursor: "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", # String | A list of results using the cursor provided in the previous query. - page_limit: 25, # Integer | The maximum number of security signals in the response. + page_cursor: 'eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==', # String | A list of results using the cursor provided in the previous query. + page_limit: 25 # Integer | The maximum number of security signals in the response. } begin diff --git a/examples/generated/v2/security-monitoring/SearchSecurityMonitoringSignals.rb b/examples/generated/v2/security-monitoring/SearchSecurityMonitoringSignals.rb index 9760c07fb759..f4c18e43a668 100644 --- a/examples/generated/v2/security-monitoring/SearchSecurityMonitoringSignals.rb +++ b/examples/generated/v2/security-monitoring/SearchSecurityMonitoringSignals.rb @@ -1,4 +1,4 @@ -require "datadog_api_client" +require 'datadog_api_client' DatadogAPIClient::V2.configure do |config| config.unstable_operations[:search_security_monitoring_signals] = true @@ -6,7 +6,7 @@ api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new opts = { - body: DatadogAPIClient::V2::SecurityMonitoringSignalListRequest.new, # SecurityMonitoringSignalListRequest | + body: DatadogAPIClient::V2::SecurityMonitoringSignalListRequest.new # SecurityMonitoringSignalListRequest | } begin diff --git a/examples/generated/v2/security-monitoring/UpdateSecurityFilter.rb b/examples/generated/v2/security-monitoring/UpdateSecurityFilter.rb index a8341212a975..4fde3cfaec00 100644 --- a/examples/generated/v2/security-monitoring/UpdateSecurityFilter.rb +++ b/examples/generated/v2/security-monitoring/UpdateSecurityFilter.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new -security_filter_id = "security_filter_id_example" # String | The ID of the security filter. -body = DatadogAPIClient::V2::SecurityFilterUpdateRequest.new({ data: DatadogAPIClient::V2::SecurityFilterUpdateData.new({ attributes: DatadogAPIClient::V2::SecurityFilterUpdateAttributes.new, type: DatadogAPIClient::V2::SecurityFilterType::SECURITY_FILTERS }) }) # SecurityFilterUpdateRequest | New definition of the security filter. +security_filter_id = 'security_filter_id_example' # String | The ID of the security filter. +body = DatadogAPIClient::V2::SecurityFilterUpdateRequest.new({data: DatadogAPIClient::V2::SecurityFilterUpdateData.new({attributes: DatadogAPIClient::V2::SecurityFilterUpdateAttributes.new, type: DatadogAPIClient::V2::SecurityFilterType::SECURITY_FILTERS})}) # SecurityFilterUpdateRequest | New definition of the security filter. begin # Update a security filter diff --git a/examples/generated/v2/security-monitoring/UpdateSecurityMonitoringRule.rb b/examples/generated/v2/security-monitoring/UpdateSecurityMonitoringRule.rb index da32c2c6a35b..6ab1fc46c4a3 100644 --- a/examples/generated/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +++ b/examples/generated/v2/security-monitoring/UpdateSecurityMonitoringRule.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new -rule_id = "rule_id_example" # String | The ID of the rule. -body = DatadogAPIClient::V2::SecurityMonitoringRuleUpdatePayload.new # SecurityMonitoringRuleUpdatePayload | +rule_id = 'rule_id_example' # String | The ID of the rule. +body = DatadogAPIClient::V2::SecurityMonitoringRuleUpdatePayload.new # SecurityMonitoringRuleUpdatePayload | begin # Update an existing rule diff --git a/examples/generated/v2/service-accounts/CreateServiceAccountApplicationKey.rb b/examples/generated/v2/service-accounts/CreateServiceAccountApplicationKey.rb index bff7d1d5a1de..39fe57173533 100644 --- a/examples/generated/v2/service-accounts/CreateServiceAccountApplicationKey.rb +++ b/examples/generated/v2/service-accounts/CreateServiceAccountApplicationKey.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new -service_account_id = "00000000-0000-0000-0000-000000000000" # String | The ID of the service account. -body = DatadogAPIClient::V2::ApplicationKeyCreateRequest.new({ data: DatadogAPIClient::V2::ApplicationKeyCreateData.new({ attributes: DatadogAPIClient::V2::ApplicationKeyCreateAttributes.new({ name: "Application Key for managing dashboards" }), type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS }) }) # ApplicationKeyCreateRequest | +service_account_id = '00000000-0000-0000-0000-000000000000' # String | The ID of the service account. +body = DatadogAPIClient::V2::ApplicationKeyCreateRequest.new({data: DatadogAPIClient::V2::ApplicationKeyCreateData.new({attributes: DatadogAPIClient::V2::ApplicationKeyCreateAttributes.new({name: 'Application Key for managing dashboards'}), type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS})}) # ApplicationKeyCreateRequest | begin # Create an application key for this service account diff --git a/examples/generated/v2/service-accounts/DeleteServiceAccountApplicationKey.rb b/examples/generated/v2/service-accounts/DeleteServiceAccountApplicationKey.rb index 991040e96900..6f736f1dd7d4 100644 --- a/examples/generated/v2/service-accounts/DeleteServiceAccountApplicationKey.rb +++ b/examples/generated/v2/service-accounts/DeleteServiceAccountApplicationKey.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new -service_account_id = "00000000-0000-0000-0000-000000000000" # String | The ID of the service account. -app_key_id = "app_key_id_example" # String | The ID of the application key. +service_account_id = '00000000-0000-0000-0000-000000000000' # String | The ID of the service account. +app_key_id = 'app_key_id_example' # String | The ID of the application key. begin # Delete an application key for this service account diff --git a/examples/generated/v2/service-accounts/GetServiceAccountApplicationKey.rb b/examples/generated/v2/service-accounts/GetServiceAccountApplicationKey.rb index f8cdb55177b5..f9343fc2ea8a 100644 --- a/examples/generated/v2/service-accounts/GetServiceAccountApplicationKey.rb +++ b/examples/generated/v2/service-accounts/GetServiceAccountApplicationKey.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new -service_account_id = "00000000-0000-0000-0000-000000000000" # String | The ID of the service account. -app_key_id = "app_key_id_example" # String | The ID of the application key. +service_account_id = '00000000-0000-0000-0000-000000000000' # String | The ID of the service account. +app_key_id = 'app_key_id_example' # String | The ID of the application key. begin # Get one application key for this service account diff --git a/examples/generated/v2/service-accounts/ListServiceAccountApplicationKeys.rb b/examples/generated/v2/service-accounts/ListServiceAccountApplicationKeys.rb index ebc02fd8eec0..827115dd2df4 100644 --- a/examples/generated/v2/service-accounts/ListServiceAccountApplicationKeys.rb +++ b/examples/generated/v2/service-accounts/ListServiceAccountApplicationKeys.rb @@ -1,13 +1,13 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new -service_account_id = "00000000-0000-0000-0000-000000000000" # String | The ID of the service account. +service_account_id = '00000000-0000-0000-0000-000000000000' # String | The ID of the service account. opts = { page_size: 10, # Integer | Size for a given page. page_number: 0, # Integer | Specific page number to return. sort: DatadogAPIClient::V2::ApplicationKeysSort::CREATED_AT_ASCENDING, # ApplicationKeysSort | Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. - filter: "filter_example", # String | Filter application keys by the specified string. - filter_created_at_start: "2020-11-24T18:46:21+00:00", # String | Only include application keys created on or after the specified date. - filter_created_at_end: "2020-11-24T18:46:21+00:00", # String | Only include application keys created on or before the specified date. + filter: 'filter_example', # String | Filter application keys by the specified string. + filter_created_at_start: '2020-11-24T18:46:21+00:00', # String | Only include application keys created on or after the specified date. + filter_created_at_end: '2020-11-24T18:46:21+00:00' # String | Only include application keys created on or before the specified date. } begin diff --git a/examples/generated/v2/service-accounts/UpdateServiceAccountApplicationKey.rb b/examples/generated/v2/service-accounts/UpdateServiceAccountApplicationKey.rb index 0f26b1268af6..b289d96a8e60 100644 --- a/examples/generated/v2/service-accounts/UpdateServiceAccountApplicationKey.rb +++ b/examples/generated/v2/service-accounts/UpdateServiceAccountApplicationKey.rb @@ -1,8 +1,8 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new -service_account_id = "00000000-0000-0000-0000-000000000000" # String | The ID of the service account. -app_key_id = "app_key_id_example" # String | The ID of the application key. -body = DatadogAPIClient::V2::ApplicationKeyUpdateRequest.new({ data: DatadogAPIClient::V2::ApplicationKeyUpdateData.new({ attributes: DatadogAPIClient::V2::ApplicationKeyUpdateAttributes.new, id: "00112233-4455-6677-8899-aabbccddeeff", type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS }) }) # ApplicationKeyUpdateRequest | +service_account_id = '00000000-0000-0000-0000-000000000000' # String | The ID of the service account. +app_key_id = 'app_key_id_example' # String | The ID of the application key. +body = DatadogAPIClient::V2::ApplicationKeyUpdateRequest.new({data: DatadogAPIClient::V2::ApplicationKeyUpdateData.new({attributes: DatadogAPIClient::V2::ApplicationKeyUpdateAttributes.new, id: '00112233-4455-6677-8899-aabbccddeeff', type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS})}) # ApplicationKeyUpdateRequest | begin # Edit an application key for this service account diff --git a/examples/generated/v2/users/CreateServiceAccount.rb b/examples/generated/v2/users/CreateServiceAccount.rb index ba738dcd6668..428a2ed77483 100644 --- a/examples/generated/v2/users/CreateServiceAccount.rb +++ b/examples/generated/v2/users/CreateServiceAccount.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::UsersAPI.new -body = DatadogAPIClient::V2::ServiceAccountCreateRequest.new({ data: DatadogAPIClient::V2::ServiceAccountCreateData.new({ attributes: DatadogAPIClient::V2::ServiceAccountCreateAttributes.new({ email: "jane.doe@example.com", service_account: true }), type: DatadogAPIClient::V2::UsersType::USERS }) }) # ServiceAccountCreateRequest | +body = DatadogAPIClient::V2::ServiceAccountCreateRequest.new({data: DatadogAPIClient::V2::ServiceAccountCreateData.new({attributes: DatadogAPIClient::V2::ServiceAccountCreateAttributes.new({email: 'jane.doe@example.com', service_account: true}), type: DatadogAPIClient::V2::UsersType::USERS})}) # ServiceAccountCreateRequest | begin # Create a service account diff --git a/examples/generated/v2/users/CreateUser.rb b/examples/generated/v2/users/CreateUser.rb index 3313f657a7a2..56f0054d3ccc 100644 --- a/examples/generated/v2/users/CreateUser.rb +++ b/examples/generated/v2/users/CreateUser.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::UsersAPI.new -body = DatadogAPIClient::V2::UserCreateRequest.new({ data: DatadogAPIClient::V2::UserCreateData.new({ attributes: DatadogAPIClient::V2::UserCreateAttributes.new({ email: "jane.doe@example.com" }), type: DatadogAPIClient::V2::UsersType::USERS }) }) # UserCreateRequest | +body = DatadogAPIClient::V2::UserCreateRequest.new({data: DatadogAPIClient::V2::UserCreateData.new({attributes: DatadogAPIClient::V2::UserCreateAttributes.new({email: 'jane.doe@example.com'}), type: DatadogAPIClient::V2::UsersType::USERS})}) # UserCreateRequest | begin # Create a user diff --git a/examples/generated/v2/users/DisableUser.rb b/examples/generated/v2/users/DisableUser.rb index 352b5051a9c1..921a745fd300 100644 --- a/examples/generated/v2/users/DisableUser.rb +++ b/examples/generated/v2/users/DisableUser.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::UsersAPI.new -user_id = "00000000-0000-0000-0000-000000000000" # String | The ID of the user. +user_id = '00000000-0000-0000-0000-000000000000' # String | The ID of the user. begin # Disable a user diff --git a/examples/generated/v2/users/GetInvitation.rb b/examples/generated/v2/users/GetInvitation.rb index 857e7986dd1f..bfbf94da3ada 100644 --- a/examples/generated/v2/users/GetInvitation.rb +++ b/examples/generated/v2/users/GetInvitation.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::UsersAPI.new -user_invitation_uuid = "00000000-0000-0000-0000-000000000000" # String | The UUID of the user invitation. +user_invitation_uuid = '00000000-0000-0000-0000-000000000000' # String | The UUID of the user invitation. begin # Get a user invitation diff --git a/examples/generated/v2/users/GetUser.rb b/examples/generated/v2/users/GetUser.rb index f3c145e9f084..6ca6f1046f1d 100644 --- a/examples/generated/v2/users/GetUser.rb +++ b/examples/generated/v2/users/GetUser.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::UsersAPI.new -user_id = "00000000-0000-0000-0000-000000000000" # String | The ID of the user. +user_id = '00000000-0000-0000-0000-000000000000' # String | The ID of the user. begin # Get user details diff --git a/examples/generated/v2/users/ListUserOrganizations.rb b/examples/generated/v2/users/ListUserOrganizations.rb index dcce580bbed4..bdb4ef04c012 100644 --- a/examples/generated/v2/users/ListUserOrganizations.rb +++ b/examples/generated/v2/users/ListUserOrganizations.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::UsersAPI.new -user_id = "00000000-0000-0000-0000-000000000000" # String | The ID of the user. +user_id = '00000000-0000-0000-0000-000000000000' # String | The ID of the user. begin # Get a user organization diff --git a/examples/generated/v2/users/ListUserPermissions.rb b/examples/generated/v2/users/ListUserPermissions.rb index ae191f70811a..2897d0dd6098 100644 --- a/examples/generated/v2/users/ListUserPermissions.rb +++ b/examples/generated/v2/users/ListUserPermissions.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::UsersAPI.new -user_id = "00000000-0000-0000-0000-000000000000" # String | The ID of the user. +user_id = '00000000-0000-0000-0000-000000000000' # String | The ID of the user. begin # Get a user permissions diff --git a/examples/generated/v2/users/ListUsers.rb b/examples/generated/v2/users/ListUsers.rb index ef515e2104ec..7714fd8e0500 100644 --- a/examples/generated/v2/users/ListUsers.rb +++ b/examples/generated/v2/users/ListUsers.rb @@ -1,12 +1,12 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::UsersAPI.new opts = { page_size: 10, # Integer | Size for a given page. page_number: 0, # Integer | Specific page number to return. - sort: "name", # String | User attribute to order results by. Sort order is ascending by default. Sort order is descending if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `modified_at`, `user_count`. + sort: 'name', # String | User attribute to order results by. Sort order is ascending by default. Sort order is descending if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `modified_at`, `user_count`. sort_dir: DatadogAPIClient::V2::QuerySortOrder::ASC, # QuerySortOrder | Direction of sort. Options: `asc`, `desc`. - filter: "filter_example", # String | Filter all users by the given string. Defaults to no filtering. - filter_status: "Active", # String | Filter on status attribute. Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. Defaults to no filtering. + filter: 'filter_example', # String | Filter all users by the given string. Defaults to no filtering. + filter_status: 'Active' # String | Filter on status attribute. Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. Defaults to no filtering. } begin diff --git a/examples/generated/v2/users/SendInvitations.rb b/examples/generated/v2/users/SendInvitations.rb index ac7177a929f8..21d4c2f6e750 100644 --- a/examples/generated/v2/users/SendInvitations.rb +++ b/examples/generated/v2/users/SendInvitations.rb @@ -1,6 +1,6 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::UsersAPI.new -body = DatadogAPIClient::V2::UserInvitationsRequest.new({ data: [DatadogAPIClient::V2::UserInvitationData.new({ relationships: DatadogAPIClient::V2::UserInvitationRelationships.new({ user: DatadogAPIClient::V2::RelationshipToUser.new({ data: DatadogAPIClient::V2::RelationshipToUserData.new({ id: "00000000-0000-0000-0000-000000000000", type: DatadogAPIClient::V2::UsersType::USERS }) }) }), type: DatadogAPIClient::V2::UserInvitationsType::USER_INVITATIONS })] }) # UserInvitationsRequest | +body = DatadogAPIClient::V2::UserInvitationsRequest.new({data: [DatadogAPIClient::V2::UserInvitationData.new({relationships: DatadogAPIClient::V2::UserInvitationRelationships.new({user: DatadogAPIClient::V2::RelationshipToUser.new({data: DatadogAPIClient::V2::RelationshipToUserData.new({id: '00000000-0000-0000-0000-000000000000', type: DatadogAPIClient::V2::UsersType::USERS})})}), type: DatadogAPIClient::V2::UserInvitationsType::USER_INVITATIONS})]}) # UserInvitationsRequest | begin # Send invitation emails diff --git a/examples/generated/v2/users/UpdateUser.rb b/examples/generated/v2/users/UpdateUser.rb index 583a49b472bd..711b988f0c68 100644 --- a/examples/generated/v2/users/UpdateUser.rb +++ b/examples/generated/v2/users/UpdateUser.rb @@ -1,7 +1,7 @@ -require "datadog_api_client" +require 'datadog_api_client' api_instance = DatadogAPIClient::V2::UsersAPI.new -user_id = "00000000-0000-0000-0000-000000000000" # String | The ID of the user. -body = DatadogAPIClient::V2::UserUpdateRequest.new({ data: DatadogAPIClient::V2::UserUpdateData.new({ attributes: DatadogAPIClient::V2::UserUpdateAttributes.new, id: "00000000-0000-0000-0000-000000000000", type: DatadogAPIClient::V2::UsersType::USERS }) }) # UserUpdateRequest | +user_id = '00000000-0000-0000-0000-000000000000' # String | The ID of the user. +body = DatadogAPIClient::V2::UserUpdateRequest.new({data: DatadogAPIClient::V2::UserUpdateData.new({attributes: DatadogAPIClient::V2::UserUpdateAttributes.new, id: '00000000-0000-0000-0000-000000000000', type: DatadogAPIClient::V2::UsersType::USERS})}) # UserUpdateRequest | begin # Update a user