DescribeData

Last updated: 2021-04-06 14:12:05

1. API Description

Domain name for API request: gpm.tencentcloudapi.com.

This API is used to view statistics.

A maximum of 100 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribeData.
Version Yes String Common parameter. The value used for this API: 2020-08-20.
Region Yes String Common parameter. For more information, please see the list of regions supported by the product.
StartTime Yes Integer Start time in seconds
EndTime Yes Integer End time in seconds
TimeType Yes Integer Time granularity. Valid values: 1: 1 day, 2: 1 hour, 3: 1 minute, 4: 10 minutes, 5: 30 minutes
MatchCode No String MatchCode

3. Output Parameters

Parameter Name Type Description
OverviewData ReportOverviewData Matchmaking statistics overview
Note: this field may return null, indicating that no valid value is obtained.
TrendData ReportTrendData Trend data of the number of matchmaking requests
Note: this field may return null, indicating that no valid value is obtained.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Querying data

Input Example

https://gpm.tencentcloudapi.com/?Action=DescribeData
&MatchCode=match-v87jcr87
&StartTime=1600741736
&EndTime=1601000936
&TimeType=2
&<Common request parameters>

Output Example

{
  "Response": {
    "OverviewData": {
      "AverageSec": 1.91,
      "FailPercent": 2.86,
      "SuccessPercent": 22.86,
      "TimeoutPercent": 40,
      "TotalTimes": "35"
    },
    "RequestId": "024cba11-2f69-40ac-ac14-bbd31b210159",
    "TrendData": {
      "CancelList": [
        "0",
        "0",
        "0"
      ],
      "FailList": [
        "0",
        "0",
        "0"
      ],
      "SuccessList": [
        "0",
        "2",
        "0"
      ],
      "TimeList": [
        "1601103600",
        "1601107200",
        "1601110800",
        "1601362800"
      ],
      "TimeoutList": [
        "0",
        "1",
        "0",
        "0"
      ],
      "TotalList": [
        "0",
        "3",
        "0",
        "0"
      ]
    }
  }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
AuthFailure CAM signature/authentication error
DryRunOperation The DryRun operation means that the request will be successful, but an extra DryRun parameter is passed.
FailedOperation Operation failed
FailedOperation.ServiceUnavailable System error. If you cannot solve the problem, please submit a ticket.
InternalError Internal error
InvalidAction The API does not exist.
InvalidParameter Parameter error
InvalidParameterValue Invalid parameter value
InvalidParameterValue.MatchCodeNotFound MatchCode does not exist.
InvalidParameterValue.MatchNotFound The matchmaking does not exist.
InvalidParameterValue.ValueRangeLimit The value exceeds the range.
LimitExceeded Quota limit exceeded.
MissingParameter The parameter is missing.
NoSuchVersion API version does not exist.
OperationDenied Operation denied
RequestLimitExceeded The number of requests exceeds the frequency limit.
ResourceInUse Occupied resource
ResourceInsufficient Insufficient resources
ResourceNotFound Resource not found
ResourceUnavailable The resource is unavailable.
ResourcesSoldOut The resources have been sold out.
UnauthorizedOperation The operation is unauthorized.
UnauthorizedOperation.UnauthorizedAction API permission authorization is needed.
UnknownParameter Unknown parameter error
UnsupportedOperation Unsupported operation
UnsupportedRegion The API does not support the region passed in.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback
Help