github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/antiddos/v2/alarmreminding/results.go (about) 1 package alarmreminding 2 3 import ( 4 "github.com/huaweicloud/golangsdk" 5 ) 6 7 type commonResult struct { 8 golangsdk.Result 9 } 10 11 type WarnAlertResult struct { 12 commonResult 13 } 14 15 func (r WarnAlertResult) Extract() (*WarnAlertResponse, error) { 16 var response WarnAlertResponse 17 err := r.ExtractInto(&response) 18 return &response, err 19 } 20 21 type WarnAlertResponse struct { 22 // Alarm configuration 23 WarnConfig struct { 24 // DDoS attacks 25 AntiDDoS bool `json:"antiDDoS,"` 26 27 // Brute force cracking (system logins, FTP, and DB) 28 BruceForce bool `json:"bruce_force,omitempty"` 29 30 // Alarms about remote logins 31 RemoteLogin bool `json:"remote_login,omitempty"` 32 33 // Weak passwords (system and database) 34 WeakPassword bool `json:"weak_password,omitempty"` 35 36 // Overly high rights of a database process 37 HighPrivilege bool `json:"high_privilege,omitempty"` 38 39 // Web page backdoors 40 BackDoors bool `json:"back_doors,omitempty"` 41 42 // Reserved 43 Waf bool `json:"waf,omitempty"` 44 45 // Possible values: 0: indicates that alarms are sent once a day. 1: indicates that alarms are sent once every half hour. This parameter is mandatory for the Host Intrusion Detection (HID) service. 46 SendFrequency int `json:"send_frequency,omitempty"` 47 } `json:"warn_config,"` 48 49 // ID of an alarm group 50 TopicUrn string `json:"topic_urn,"` 51 52 // Description of an alarm group 53 DisplayName string `json:"display_name,"` 54 }