# 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
    #
    # Properties that define a ProactiveDetection configuration.
    #
    class ApplicationInsightsComponentProactiveDetectionConfiguration

      include MsRestAzure

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

      # @return [Boolean] A flag that indicates whether this rule is enabled by
      # the user
      attr_accessor :enabled

      # @return [Boolean] A flag that indicated whether notifications on this
      # rule should be sent to subscription owners
      attr_accessor :send_emails_to_subscription_owners

      # @return [Array<String>] Custom email addresses for this rule
      # notifications
      attr_accessor :custom_emails

      # @return [String] The last time this rule was updated
      attr_accessor :last_updated_time

      # @return
      # [ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions]
      # Static definitions of the ProactiveDetection configuration rule (same
      # values for all components).
      attr_accessor :rule_definitions


      #
      # Mapper for ApplicationInsightsComponentProactiveDetectionConfiguration
      # class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ApplicationInsightsComponentProactiveDetectionConfiguration',
          type: {
            name: 'Composite',
            class_name: 'ApplicationInsightsComponentProactiveDetectionConfiguration',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Name',
                type: {
                  name: 'String'
                }
              },
              enabled: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Enabled',
                type: {
                  name: 'Boolean'
                }
              },
              send_emails_to_subscription_owners: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SendEmailsToSubscriptionOwners',
                type: {
                  name: 'Boolean'
                }
              },
              custom_emails: {
                client_side_validation: true,
                required: false,
                serialized_name: 'CustomEmails',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              last_updated_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'LastUpdatedTime',
                type: {
                  name: 'String'
                }
              },
              rule_definitions: {
                client_side_validation: true,
                required: false,
                serialized_name: 'RuleDefinitions',
                type: {
                  name: 'Composite',
                  class_name: 'ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions'
                }
              }
            }
          }
        }
      end
    end
  end
end
