class Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseSecurityAlertPolicy

A managed database security alert policy.

Attributes

creation_time[RW]

@return [DateTime] Specifies the UTC creation time of the policy.

disabled_alerts[RW]

@return [Array<String>] Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action

email_account_admins[RW]

@return [Boolean] Specifies that the alert is sent to the account administrators.

email_addresses[RW]

@return [Array<String>] Specifies an array of e-mail addresses to which the alert is sent.

retention_days[RW]

@return [Integer] Specifies the number of days to keep in the Threat Detection audit logs.

state[RW]

@return [SecurityAlertPolicyState] Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. Possible values include: 'New', 'Enabled', 'Disabled'

storage_account_access_key[RW]

@return [String] Specifies the identifier key of the Threat Detection audit storage account.

storage_endpoint[RW]

@return [String] Specifies the blob storage endpoint (e.g. MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.

Private Class Methods

mapper() click to toggle source

Mapper for ManagedDatabaseSecurityAlertPolicy class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_security_alert_policy.rb, line 55
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ManagedDatabaseSecurityAlertPolicy',
    type: {
      name: 'Composite',
      class_name: 'ManagedDatabaseSecurityAlertPolicy',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        state: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.state',
          type: {
            name: 'Enum',
            module: 'SecurityAlertPolicyState'
          }
        },
        disabled_alerts: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.disabledAlerts',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        email_addresses: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.emailAddresses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        email_account_admins: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.emailAccountAdmins',
          type: {
            name: 'Boolean'
          }
        },
        storage_endpoint: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.storageEndpoint',
          type: {
            name: 'String'
          }
        },
        storage_account_access_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.storageAccountAccessKey',
          type: {
            name: 'String'
          }
        },
        retention_days: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.retentionDays',
          type: {
            name: 'Number'
          }
        },
        creation_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.creationTime',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end