Class: Azure::ARM::SQL::Models::DatabaseSecurityAlertPolicy
- Inherits:
-
ProxyResource
- Object
- MsRestAzure::Resource
- ProxyResource
- Azure::ARM::SQL::Models::DatabaseSecurityAlertPolicy
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb
Overview
Contains information about a database Threat Detection policy.
Instance Attribute Summary collapse
-
#disabled_alerts ⇒ String
are disabled, or empty string to disable no alerts.
-
#email_account_admins ⇒ SecurityAlertPolicyEmailAccountAdmins
alert is sent to the account administrators.
-
#email_addresses ⇒ String
addresses to which the alert is sent.
-
#kind ⇒ String
Resource kind.
-
#location ⇒ String
The geo-location where the resource lives.
-
#retention_days ⇒ Integer
Detection audit logs.
-
#state ⇒ SecurityAlertPolicyState
If state is Enabled, storageEndpoint and storageAccountAccessKey are required.
-
#storage_account_access_key ⇒ String
audit storage account.
- #storage_endpoint ⇒ String
-
#use_server_default ⇒ SecurityAlertPolicyUseServerDefault
the default server policy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DatabaseSecurityAlertPolicy class as Ruby Hash.
Instance Attribute Details
#disabled_alerts ⇒ String
are disabled, or empty string to disable no alerts. Possible values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; Usage_Anomaly.
31 32 33 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 31 def disabled_alerts @disabled_alerts end |
#email_account_admins ⇒ SecurityAlertPolicyEmailAccountAdmins
alert is sent to the account administrators. Possible values include: ‘Enabled’, ‘Disabled’
40 41 42 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 40 def email_account_admins @email_account_admins end |
#email_addresses ⇒ String
addresses to which the alert is sent.
35 36 37 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 35 def email_addresses @email_addresses end |
#kind ⇒ String
Returns Resource kind.
20 21 22 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 20 def kind @kind end |
#location ⇒ String
Returns The geo-location where the resource lives.
17 18 19 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 17 def location @location end |
#retention_days ⇒ Integer
Detection audit logs.
55 56 57 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 55 def retention_days @retention_days end |
#state ⇒ SecurityAlertPolicyState
If state is Enabled, storageEndpoint and storageAccountAccessKey are required. Possible values include: ‘New’, ‘Enabled’, ‘Disabled’
25 26 27 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 25 def state @state end |
#storage_account_access_key ⇒ String
audit storage account. If state is Enabled, storageAccountAccessKey is required.
51 52 53 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 51 def storage_account_access_key @storage_account_access_key end |
#storage_endpoint ⇒ String
MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. If state is Enabled, storageEndpoint is required.
46 47 48 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 46 def storage_endpoint @storage_endpoint end |
#use_server_default ⇒ SecurityAlertPolicyUseServerDefault
the default server policy. Possible values include: ‘Enabled’, ‘Disabled’
60 61 62 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 60 def use_server_default @use_server_default end |
Class Method Details
.mapper ⇒ Object
Mapper for DatabaseSecurityAlertPolicy class as Ruby Hash. This will be used for serialization/deserialization.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 67 def self.mapper() { required: false, serialized_name: 'DatabaseSecurityAlertPolicy', type: { name: 'Composite', class_name: 'DatabaseSecurityAlertPolicy', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { required: false, serialized_name: 'location', type: { name: 'String' } }, kind: { required: false, read_only: true, serialized_name: 'kind', type: { name: 'String' } }, state: { required: true, serialized_name: 'properties.state', type: { name: 'Enum', module: 'SecurityAlertPolicyState' } }, disabled_alerts: { required: false, serialized_name: 'properties.disabledAlerts', type: { name: 'String' } }, email_addresses: { required: false, serialized_name: 'properties.emailAddresses', type: { name: 'String' } }, email_account_admins: { required: false, serialized_name: 'properties.emailAccountAdmins', type: { name: 'Enum', module: 'SecurityAlertPolicyEmailAccountAdmins' } }, storage_endpoint: { required: false, serialized_name: 'properties.storageEndpoint', type: { name: 'String' } }, storage_account_access_key: { required: false, serialized_name: 'properties.storageAccountAccessKey', type: { name: 'String' } }, retention_days: { required: false, serialized_name: 'properties.retentionDays', type: { name: 'Number' } }, use_server_default: { required: false, serialized_name: 'properties.useServerDefault', type: { name: 'Enum', module: 'SecurityAlertPolicyUseServerDefault' } } } } } end |