Class: DatadogAPIClient::V1::WebhooksIntegration
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::WebhooksIntegration
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v1/models/webhooks_integration.rb
Overview
Datadog-Webhooks integration.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#custom_headers ⇒ Object
If
null
, uses no header. -
#encode_as ⇒ Object
Encoding type.
-
#name ⇒ Object
readonly
The name of the webhook.
-
#payload ⇒ Object
If
null
, uses the default payload. -
#url ⇒ Object
readonly
URL of the webhook.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/webhooks_integration.rb', line 45 def additional_properties @additional_properties end |
#custom_headers ⇒ Object
If null
, uses no header.
If given a JSON payload, these will be headers attached to your webhook.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/webhooks_integration.rb', line 26 def custom_headers @custom_headers end |
#encode_as ⇒ Object
Encoding type. Can be given either json
or form
.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/webhooks_integration.rb', line 29 def encode_as @encode_as end |
#name ⇒ Object
The name of the webhook. It corresponds with <WEBHOOK_NAME>
.
Learn more on how to use it in
monitor notifications.
34 35 36 |
# File 'lib/datadog_api_client/v1/models/webhooks_integration.rb', line 34 def name @name end |
#payload ⇒ Object
If null
, uses the default payload.
If given a JSON payload, the webhook returns the payload
specified by the given payload.
Webhooks variable usage.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/webhooks_integration.rb', line 40 def payload @payload end |
#url ⇒ Object
URL of the webhook.
43 44 45 |
# File 'lib/datadog_api_client/v1/models/webhooks_integration.rb', line 43 def url @url end |