github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/antiddos/v2/alarmreminding/API-en.md (about)

     1  # Package antiddos
     2      import "github.com/huaweicloud/golangsdk/openstack/antiddos/v2/alarmreminding"
     3  **[Overview](#overview)**  
     4  
     5  **[Index](#index)**  
     6  
     7  **[API Mapping](#api-mapping)**  
     8  
     9  **[Content](#content)**  
    10  
    11  ## Overview
    12  The Anti-DDoS traffic cleaning service (Anti-DDoS for short) defends resources (Elastic Cloud Servers (ECSs), Elastic Load Balance (ELB) instances, and Bare Metal Servers (BMSs)) on HUAWEI CLOUD against network- and application-layer distributed denial of service (DDoS) attacks and sends alarms immediately when detecting an attack. In addition, Anti-DDoS improves the utilization of bandwidth and ensures the stable running of users' services.
    13  
    14  Example to query alarm configuration.
    15  
    16      actual, err := alarmreminding.WarnAlert(client.ServiceClient()).Extract()
    17      if err != nil {
    18        panic(err)
    19      }
    20  ## Index
    21  **[func WarnAlert(*golangsdk.ServiceClient) (WarnAlertResult)](#func-warnalert)**  
    22  ## API Mapping
    23  |Catalog|API|EndPoint|
    24  |----|---|--------|
    25  |antiddos|func WarnAlert(*golangsdk.ServiceClient) (WarnAlertResult)|GET /v2/{project_id}/warnalert/alertconfig/query|
    26  ## Content
    27  ## func WarnAlert
    28      func WarnAlert(*golangsdk.ServiceClient) (WarnAlertResult)  
    29  This API allows you to query alarm configuration, such as whether a certain type of alarms will be received, and whether alarms are received through SMS messages or emails.