class Azure::ARM::Insights::Models::RuleWebhookAction
Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction
in this case.
Attributes
odata[RW]
properties[RW]
@return [Hash{String => String}] the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
service_uri[RW]
@return [String] the service uri to Post the notitication when the alert activates or resolves.
Public Class Methods
mapper()
click to toggle source
Mapper for RuleWebhookAction
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/generated/azure_mgmt_insights/models/rule_webhook_action.rb, line 37 def self.mapper() { required: false, serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction', type: { name: 'Composite', class_name: 'RuleWebhookAction', model_properties: { odata.type: { required: true, serialized_name: 'odata\\.type', type: { name: 'String' } }, service_uri: { required: false, serialized_name: 'serviceUri', type: { name: 'String' } }, properties: { required: false, serialized_name: 'properties', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end
new()
click to toggle source
# File lib/generated/azure_mgmt_insights/models/rule_webhook_action.rb, line 17 def initialize @odata.type = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction" end