class Azure::Monitor::Mgmt::V2016_03_01::Models::RuleWebhookAction
Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction
in this case.
Attributes
odatatype[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 notification when the alert activates or resolves.
Private Class Methods
mapper()
click to toggle source
Mapper for RuleWebhookAction
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_webhook_action.rb, line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction', type: { name: 'Composite', class_name: 'RuleWebhookAction', model_properties: { odatatype: { client_side_validation: true, required: true, serialized_name: 'odata\\.type', type: { name: 'String' } }, service_uri: { client_side_validation: true, required: false, serialized_name: 'serviceUri', type: { name: 'String' } }, properties: { client_side_validation: true, required: false, serialized_name: 'properties', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end
new()
click to toggle source
# File lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_webhook_action.rb, line 17 def initialize @odatatype = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction" end