Sha256: 84ffee752e8d2c6649a085527d6b773d9557fd22527c33f21c3b67502a70e148

Contents?: true

Size: 454 Bytes

Versions: 34

Compression:

Stored size: 454 Bytes

Contents

# Create a Slack integration channel returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new

body = DatadogAPIClient::V1::SlackIntegrationChannel.new({
  display: DatadogAPIClient::V1::SlackIntegrationChannelDisplay.new({
    message: true,
    notified: true,
    snapshot: true,
    tags: true,
  }),
  name: "#general",
})
p api_instance.create_slack_integration_channel("account_name", body)

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
datadog_api_client-2.8.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-2.7.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-2.6.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-2.5.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-2.4.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-2.3.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-2.2.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-2.1.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-2.0.2 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-2.0.1 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-2.0.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-1.11.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-1.10.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
datadog_api_client-1.9.0 examples/v1/slack-integration/CreateSlackIntegrationChannel.rb