class Dogapi::V1::IntegrationService
Constants
- API_VERSION
Public Instance Methods
create_integration(source_type_name, config)
click to toggle source
Create an integration
:source_type_name => String: the name of an integration source :config => Hash: integration config that varies based on the source type. See docs.datadoghq.com/api/#integrations.
# File lib/dogapi/v1/integration.rb 17 def create_integration(source_type_name, config) 18 request(Net::HTTP::Post, "/api/#{API_VERSION}/integration/#{source_type_name}", nil, config, true) 19 end
delete_integration(source_type_name)
click to toggle source
Delete an integration
:source_type_name => String: the name of an integration source
# File lib/dogapi/v1/integration.rb 40 def delete_integration(source_type_name) 41 request(Net::HTTP::Delete, "/api/#{API_VERSION}/integration/#{source_type_name}", nil, nil, false) 42 end
get_integration(source_type_name)
click to toggle source
Retrieve integration information
:source_type_name => String: the name of an integration source
# File lib/dogapi/v1/integration.rb 33 def get_integration(source_type_name) 34 request(Net::HTTP::Get, "/api/#{API_VERSION}/integration/#{source_type_name}", nil, nil, false) 35 end
update_integration(source_type_name, config)
click to toggle source
Update an integration
:source_type_name => String: the name of an integration source :config => Hash: integration config that varies based on the source type. source type (docs.datadoghq.com/api/#integrations)
# File lib/dogapi/v1/integration.rb 26 def update_integration(source_type_name, config) 27 request(Net::HTTP::Put, "/api/#{API_VERSION}/integration/#{source_type_name}", nil, config, true) 28 end