QueryEventTrend

갱신 시간: 2025-09-04 15:54:37

Query traffic trend (by request count).

  • 한도 설명: The time range can not exceed 31 days.
  • 단일 사용자 통화 빈도: 300/5min
  • 해당 상품(제품): Cloud Security 2.0,Flood Shield 2.0
API 인증에 관한 자세한 내용은 다음을 참조하십시오:API 인증 개요

요청 파라미터

요청 헤더

파라미터 이름설명
serviceTypeString
선택 가능한 값:매개변수 값 보기

Security service type. Please enter a specific service type, if you purchase multiple security services.

timezoneString
기본값: GMT+8

Report Data Timezone:1. Indicates the timezone for the report data. lt must be relative to GMT andspecified in the format GMT+n where -12<=n <= 12. For example,timezone=GMT-7 and timezone=GMT+8.2. If the parameter is unspecified,results will be in the GMT+8 timezone.

Body 파라미터

파라미터 이름설명
*startTimeString

Start time, format: yyyy-MM-dd HH:mm:ss. The time range can not exceed 31 days.

*endTimeString

End time, format: yyyy-MM-dd HH:mm:ss. The time range can not exceed 31 days.

actTypeList
선택 가능한 값:mitigatedmonitored

Multiple selection. Handling results, default: display all results. mitigated: Number of mitigated requests. monitored: Number of observed requests.

domainsList

Domain list. Queries all domains under the account when not specified.

응답 파라미터

Body 파라미터

파라미터 이름설명
codeString
선택 가능한 값:매개변수 값 보기

Please refer to the error code for exceptions.

msgString

Description.

dataList

Data.

timePointString

Time, format: yyyy-MM-dd HH-mm-ss.

totalLong

Total requests.

attackLong

Attack requests.

mitigatedLong

Mitigated requests.

monitoredLong

Monitored requests.

whitelistLong

Whitelist requests.

distributionList

Policy type classification requests.

codeString
선택 가능한 값:BLOCKDMS_DEFENDWAF_DEFENDBOT_MANAGEAPI_DEFENDINTELLIGENCERATE_LIMITCUSTOMIZE_RULE

Policy type. BLOCK: IP/Geo Block DMS_DEFEND: DDoS Protection WAF_DEFEND: WAF BOT_MANAGE: Bot Management API_DEFEND: API Security INTELLIGENCE: Threat Intelligence RATE_LIMIT: Rate Limiting CUSTOMIZE_RULE: Custom Rules

valueLong

Number of policy requests of this type.

에러 코드

에러 코드(code)설명(message)HTTP 상태 코드설명
40010

Request parameter error.

200Request parameter error.
500

Server error.

200Server error.

예제

JSON
JSON
요청 예제
복사 복사 완료
#!/bin/bash
username="example_username"
# Note that this must be a single quote to avoid the special $ character
apiKey='example_apiKey'
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`

curl -i --url "https://api.cdnetworks.com/api/v1/overview/trendInfo" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
    "startTime": "2023-08-16 14:16:17",
    "endTime": "2023-08-16 14:20:17",
    "actType": ["mitigated", "monitored"],
    "domains": [
        "waap.example1.com",
        "waap.example2.com"
    ]
}'
응답 예제
복사 복사 완료
{
    "code": 200,
    "msg": "Success",
    "data": [
        {
            "timePoint": "2023-08-16 14:17:00",
            "total": 0,
            "attack": 0,
            "mitigated": 0,
            "monitored": 0,
            "whitelist": 0,
            "distribution": [
                {
                    "code": "DMS_DEFEND",
                    "value": 0
                },
                {
                    "code": "BOT_MANAGE",
                    "value": 0
                },
                {
                    "code": "WAF_DEFEND",
                    "value": 0
                },
                {
                    "code": "API_DEFEND",
                    "value": 0
                },
                {
                    "code": "INTELLIGENCE",
                    "value": 0
                },
                {
                    "code": "RATE_LIMIT",
                    "value": 0
                },
                {
                    "code": "CUSTOMIZE_RULE",
                    "value": 0
                },
                {
                    "code": "BLOCK",
                    "value": 0
                }
            ]
        },
        {
            "timePoint": "2023-08-16 14:18:00",
            "total": 0,
            "attack": 0,
            "mitigated": 0,
            "monitored": 0,
            "whitelist": 0,
            "distribution": [
                {
                    "code": "DMS_DEFEND",
                    "value": 0
                },
                {
                    "code": "BOT_MANAGE",
                    "value": 0
                },
                {
                    "code": "WAF_DEFEND",
                    "value": 0
                },
                {
                    "code": "API_DEFEND",
                    "value": 0
                },
                {
                    "code": "INTELLIGENCE",
                    "value": 0
                },
                {
                    "code": "RATE_LIMIT",
                    "value": 0
                },
                {
                    "code": "CUSTOMIZE_RULE",
                    "value": 0
                },
                {
                    "code": "BLOCK",
                    "value": 0
                }
            ]
        },
        {
            "timePoint": "2023-08-16 14:19:00",
            "total": 0,
            "attack": 0,
            "mitigated": 0,
            "monitored": 0,
            "whitelist": 0,
            "distribution": [
                {
                    "code": "DMS_DEFEND",
                    "value": 0
                },
                {
                    "code": "BOT_MANAGE",
                    "value": 0
                },
                {
                    "code": "WAF_DEFEND",
                    "value": 0
                },
                {
                    "code": "API_DEFEND",
                    "value": 0
                },
                {
                    "code": "INTELLIGENCE",
                    "value": 0
                },
                {
                    "code": "RATE_LIMIT",
                    "value": 0
                },
                {
                    "code": "CUSTOMIZE_RULE",
                    "value": 0
                },
                {
                    "code": "BLOCK",
                    "value": 0
                }
            ]
        },
        {
            "timePoint": "2023-08-16 14:20:00",
            "total": 0,
            "attack": 0,
            "mitigated": 0,
            "monitored": 0,
            "whitelist": 0,
            "distribution": [
                {
                    "code": "DMS_DEFEND",
                    "value": 0
                },
                {
                    "code": "BOT_MANAGE",
                    "value": 0
                },
                {
                    "code": "WAF_DEFEND",
                    "value": 0
                },
                {
                    "code": "API_DEFEND",
                    "value": 0
                },
                {
                    "code": "INTELLIGENCE",
                    "value": 0
                },
                {
                    "code": "RATE_LIMIT",
                    "value": 0
                },
                {
                    "code": "CUSTOMIZE_RULE",
                    "value": 0
                },
                {
                    "code": "BLOCK",
                    "value": 0
                }
            ]
        },
        {
            "timePoint": "2023-08-16 14:20:17",
            "total": 0,
            "attack": 0,
            "mitigated": 0,
            "monitored": 0,
            "whitelist": 0,
            "distribution": [
                {
                    "code": "DMS_DEFEND",
                    "value": 0
                },
                {
                    "code": "BOT_MANAGE",
                    "value": 0
                },
                {
                    "code": "WAF_DEFEND",
                    "value": 0
                },
                {
                    "code": "API_DEFEND",
                    "value": 0
                },
                {
                    "code": "INTELLIGENCE",
                    "value": 0
                },
                {
                    "code": "RATE_LIMIT",
                    "value": 0
                },
                {
                    "code": "CUSTOMIZE_RULE",
                    "value": 0
                },
                {
                    "code": "BLOCK",
                    "value": 0
                }
            ]
        }
    ]
}
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.