# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Monitor::Mgmt::V2015_05_01
  module Models
    #
    # Static definitions of the ProactiveDetection configuration rule (same
    # values for all components).
    #
    class ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions

      include MsRestAzure

      # @return [String] The rule name
      attr_accessor :name

      # @return [String] The rule name as it is displayed in UI
      attr_accessor :display_name

      # @return [String] The rule description
      attr_accessor :description

      # @return [String] URL which displays additional info about the proactive
      # detection rule
      attr_accessor :help_url

      # @return [Boolean] A flag indicating whether the rule is hidden (from
      # the UI)
      attr_accessor :is_hidden

      # @return [Boolean] A flag indicating whether the rule is enabled by
      # default
      attr_accessor :is_enabled_by_default

      # @return [Boolean] A flag indicating whether the rule is in preview
      attr_accessor :is_in_preview

      # @return [Boolean] A flag indicating whether email notifications are
      # supported for detections for this rule
      attr_accessor :supports_email_notifications


      #
      # Mapper for
      # ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions
      # class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ApplicationInsightsComponentProactiveDetectionConfiguration_RuleDefinitions',
          type: {
            name: 'Composite',
            class_name: 'ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Name',
                type: {
                  name: 'String'
                }
              },
              display_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DisplayName',
                type: {
                  name: 'String'
                }
              },
              description: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Description',
                type: {
                  name: 'String'
                }
              },
              help_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HelpUrl',
                type: {
                  name: 'String'
                }
              },
              is_hidden: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IsHidden',
                type: {
                  name: 'Boolean'
                }
              },
              is_enabled_by_default: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IsEnabledByDefault',
                type: {
                  name: 'Boolean'
                }
              },
              is_in_preview: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IsInPreview',
                type: {
                  name: 'Boolean'
                }
              },
              supports_email_notifications: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SupportsEmailNotifications',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
