Skip to content

Commit 924b2c7

Browse files
committed
add
1 parent a734973 commit 924b2c7

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

tencentcloud/services/waf/data_source_tc_waf_peak_points.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func DataSourceTencentCloudWafPeakPoints() *schema.Resource {
4747
Optional: true,
4848
Type: schema.TypeString,
4949
ValidateFunc: tccommon.ValidateAllowedStringValue(MetricNameList),
50-
Description: "Thirteen values are available: access-Peak qps trend chart; botAccess- bot peak qps trend chart; down-Downstream peak bandwidth trend chart; up-Upstream peak bandwidth trend chart; attack-Trend chart of total number of web attacks; cc-Trend chart of total number of CC attacks; StatusServerError-Trend chart of the number of status codes returned by WAF to the server; StatusClientError-Trend chart of the number of status codes returned by WAF to the client; StatusRedirect-Trend chart of the number of status codes returned by WAF to the client; StatusOk-Trend chart of the number of status codes returned by WAF to the client; UpstreamServerError-Trend chart of the number of status codes returned to WAF by the origin site; UpstreamClientError-Trend chart of the number of status codes returned to WAF by the origin site; UpstreamRedirect-Trend chart of the number of status codes returned to WAF by the origin site.",
50+
Description: "Twelve values are available: `access`-Peak qps trend chart; `botAccess`- bot peak qps trend chart; `down`-Downstream peak bandwidth trend chart; `up`-Upstream peak bandwidth trend chart; `attack`-Trend chart of total number of web attacks; `cc`-Trend chart of total number of CC attacks; `bw`- Black IP Attack Total Trend Chart; `tamper`- Anti Tamper Attack Total Trend Chart; `leak`- Trend chart of total number of anti leakage attacks; `acl`- Trend chart of total number of access control attacks; `http_status`- Trend chart of status code frequency; `wx_access`- WeChat Mini Program Peak QPS Trend Chart.",
5151
},
5252
"points": {
5353
Computed: true,

tencentcloud/services/waf/extension_waf.go

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -620,19 +620,18 @@ const (
620620
)
621621

622622
const (
623-
METRIC_NAME_ACCESS = "access"
624-
METRIC_NAME_BOTACCESS = "botAccess"
625-
METRIC_NAME_DOWN = "down"
626-
METRIC_NAME_UP = "up"
627-
METRIC_NAME_ATTACK = "attack"
628-
METRIC_NAME_CC = "cc"
629-
METRIC_NAME_STATUSSERVERERROR = "StatusServerError"
630-
METRIC_NAME_STATUSCLIENTERROR = "StatusClientError"
631-
METRIC_NAME_STATUSREDIRECT = "StatusRedirect"
632-
METRIC_NAME_STATUSOK = "StatusOk"
633-
METRIC_NAME_UPSTREAMSERVERERROR = "UpstreamServerError"
634-
METRIC_NAME_UPSTREAMCLIENTERROR = "UpstreamClientError"
635-
METRIC_NAME_UPSTREAMREDIRECT = "UpstreamRedirect"
623+
METRIC_NAME_ACCESS = "access"
624+
METRIC_NAME_BOTACCESS = "botAccess"
625+
METRIC_NAME_DOWN = "down"
626+
METRIC_NAME_UP = "up"
627+
METRIC_NAME_ATTACK = "attack"
628+
METRIC_NAME_CC = "cc"
629+
METRIC_NAME_BW = "bw"
630+
METRIC_NAME_TAMPER = "tamper"
631+
METRIC_NAME_LEAK = "leak"
632+
METRIC_NAME_ACL = "acl"
633+
METRIC_NAME_HTTP_STATUS = "http_status"
634+
METRIC_NAME_WX_ACCESS = "wx_access"
636635
)
637636

638637
var MetricNameList = []string{
@@ -642,13 +641,12 @@ var MetricNameList = []string{
642641
METRIC_NAME_UP,
643642
METRIC_NAME_ATTACK,
644643
METRIC_NAME_CC,
645-
METRIC_NAME_STATUSSERVERERROR,
646-
METRIC_NAME_STATUSCLIENTERROR,
647-
METRIC_NAME_STATUSREDIRECT,
648-
METRIC_NAME_STATUSOK,
649-
METRIC_NAME_UPSTREAMSERVERERROR,
650-
METRIC_NAME_UPSTREAMCLIENTERROR,
651-
METRIC_NAME_UPSTREAMREDIRECT,
644+
METRIC_NAME_BW,
645+
METRIC_NAME_TAMPER,
646+
METRIC_NAME_LEAK,
647+
METRIC_NAME_ACL,
648+
METRIC_NAME_HTTP_STATUS,
649+
METRIC_NAME_WX_ACCESS,
652650
}
653651

654652
var (

website/docs/d/waf_peak_points.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The following arguments are supported:
4444
* `domain` - (Optional, String) The domain name to be queried. If all domain name data is queried, this parameter is not filled in.
4545
* `edition` - (Optional, String) Only support sparta-waf and clb-waf. If not passed, there will be no filtering.
4646
* `instance_id` - (Optional, String) WAF instance ID, if not passed, there will be no filtering.
47-
* `metric_name` - (Optional, String) Thirteen values are available: access-Peak qps trend chart; botAccess- bot peak qps trend chart; down-Downstream peak bandwidth trend chart; up-Upstream peak bandwidth trend chart; attack-Trend chart of total number of web attacks; cc-Trend chart of total number of CC attacks; StatusServerError-Trend chart of the number of status codes returned by WAF to the server; StatusClientError-Trend chart of the number of status codes returned by WAF to the client; StatusRedirect-Trend chart of the number of status codes returned by WAF to the client; StatusOk-Trend chart of the number of status codes returned by WAF to the client; UpstreamServerError-Trend chart of the number of status codes returned to WAF by the origin site; UpstreamClientError-Trend chart of the number of status codes returned to WAF by the origin site; UpstreamRedirect-Trend chart of the number of status codes returned to WAF by the origin site.
47+
* `metric_name` - (Optional, String) Twelve values are available: `access`-Peak qps trend chart; `botAccess`- bot peak qps trend chart; `down`-Downstream peak bandwidth trend chart; `up`-Upstream peak bandwidth trend chart; `attack`-Trend chart of total number of web attacks; `cc`-Trend chart of total number of CC attacks; `bw`- Black IP Attack Total Trend Chart; `tamper`- Anti Tamper Attack Total Trend Chart; `leak`- Trend chart of total number of anti leakage attacks; `acl`- Trend chart of total number of access control attacks; `http_status`- Trend chart of status code frequency; `wx_access`- WeChat Mini Program Peak QPS Trend Chart.
4848
* `result_output_file` - (Optional, String) Used to save results.
4949

5050
## Attributes Reference

0 commit comments

Comments
 (0)