Sha256: 0acc05855eca5f2a116a628ca390216a889dfc1d6fbb9b0f8b40f54bfb3b6da0
Contents?: true
Size: 1.53 KB
Versions: 6
Compression:
Stored size: 1.53 KB
Contents
require 'dogapi' module Dogapi class V1 # for namespacing class IntegrationService < Dogapi::APIService API_VERSION = 'v1' # 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 https://docs.datadoghq.com/api/#integrations. def create_integration(source_type_name, config) request(Net::HTTP::Post, "/api/#{API_VERSION}/integration/#{source_type_name}", nil, config, true) end # 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 (https://docs.datadoghq.com/api/#integrations) def update_integration(source_type_name, config) request(Net::HTTP::Put, "/api/#{API_VERSION}/integration/#{source_type_name}", nil, config, true) end # Retrieve integration information # # :source_type_name => String: the name of an integration source def get_integration(source_type_name) request(Net::HTTP::Get, "/api/#{API_VERSION}/integration/#{source_type_name}", nil, nil, false) end # Delete an integration # # :source_type_name => String: the name of an integration source def delete_integration(source_type_name) request(Net::HTTP::Delete, "/api/#{API_VERSION}/integration/#{source_type_name}", nil, nil, false) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems