Module: DatadogAPIClient
- Defined in:
- lib/datadog_api_client/version.rb,
lib/datadog_api_client/models.rb,
lib/datadog_api_client/inflector.rb,
lib/datadog_api_client/api_client.rb,
lib/datadog_api_client/user_agent.rb,
lib/datadog_api_client/configuration.rb
Overview
#Datadog API V2 Collection
#Collection of all Datadog Public endpoints.
The version of the OpenAPI document: 1.0 Contact: [email protected] Generated by: github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
This product includes software developed at Datadog (https://www.datadoghq.com/).
Copyright 2020-Present Datadog, Inc.
Defined Under Namespace
Modules: V1, V2 Classes: APIClient, APIError, Configuration, DatadogAPIClientInflector, EnumAttributeValidator, UnparsedObject
Constant Summary collapse
- VERSION =
'2.28.1'
- USER_AGENT =
format( 'datadog-api-client-ruby/%<version>s (ruby %<ruver>s; os %<os>s; arch %<arch>s; httparty-version %<httparty_version>s)', version: VERSION, ruver: RUBY_VERSION, os: RbConfig::CONFIG['host_os'].downcase, arch: RbConfig::CONFIG['host_cpu'], httparty_version: HTTParty::VERSION )
Class Method Summary collapse
-
.configure ⇒ Object
Customize default settings for the SDK using block.
Class Method Details
.configure ⇒ Object
Customize default settings for the SDK using block.
DatadogAPIClient::V2.configure do |config|
config.username = "xxx"
config.password = "xxx"
end
If no block given, return the default Configuration object.
35 36 37 38 39 40 41 |
# File 'lib/datadog_api_client/models.rb', line 35 def configure if block_given? yield(Configuration.default) else Configuration.default end end |