Class: Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerSecurityAlertPolicy
- Inherits:
-
ProxyResource
- Object
- Resource
- ProxyResource
- Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerSecurityAlertPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb
Overview
A server security alert policy.
Instance Attribute Summary collapse
-
#creation_time ⇒ DateTime
Specifies the UTC creation time of the policy.
-
#disabled_alerts ⇒ Array<String>
Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action.
-
#email_account_admins ⇒ Boolean
administrators.
-
#email_addresses ⇒ Array<String>
the alert is sent.
-
#retention_days ⇒ Integer
Detection audit logs.
-
#state ⇒ SecurityAlertPolicyState
whether it is enabled or disabled or a policy has not been applied yet on the specific database.
-
#storage_account_access_key ⇒ String
audit storage account.
- #storage_endpoint ⇒ String
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServerSecurityAlertPolicy class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#creation_time ⇒ DateTime
Returns Specifies the UTC creation time of the policy.
48 49 50 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb', line 48 def creation_time @creation_time end |
#disabled_alerts ⇒ Array<String>
Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action
24 25 26 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb', line 24 def disabled_alerts @disabled_alerts end |
#email_account_admins ⇒ Boolean
administrators.
32 33 34 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb', line 32 def email_account_admins @email_account_admins end |
#email_addresses ⇒ Array<String>
the alert is sent.
28 29 30 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb', line 28 def email_addresses @email_addresses end |
#retention_days ⇒ Integer
Detection audit logs.
45 46 47 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb', line 45 def retention_days @retention_days end |
#state ⇒ SecurityAlertPolicyState
whether it is enabled or disabled or a policy has not been applied yet on the specific database. Possible values include: ‘New’, ‘Enabled’, ‘Disabled’
19 20 21 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb', line 19 def state @state end |
#storage_account_access_key ⇒ String
audit storage account.
41 42 43 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb', line 41 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.
37 38 39 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb', line 37 def storage_endpoint @storage_endpoint end |
Class Method Details
.mapper ⇒ Object
Mapper for ServerSecurityAlertPolicy class as Ruby Hash. This will be used for serialization/deserialization.
55 56 57 58 59 60 61 62 63 64 65 66 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/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb', line 55 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ServerSecurityAlertPolicy', type: { name: 'Composite', class_name: 'ServerSecurityAlertPolicy', 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 |