Queries tag keys.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetTagKey | The operation that you want to perform. Set the value to GetTagKey. |
RegionId | String | Yes | cn-beijing | The ID of the region. |
ServiceName | String | No | appTest | The name of the application. |
SpanName | String | No | createOrder | The name of the span. |
StartTime | Long | No | 1575561600000 | The beginning of the time range to query. Unit: milliseconds. |
EndTime | Long | No | 1575622455686 | The end of the time range to query. Unit: milliseconds. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 1E2B6A4C-6B83-4062-8B6F-AEEC1FC47DED | The ID of the request. |
TagKeys | Array of String | {"TagKey":["date","resultCount","aTid"]} | The list of tag keys. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetTagKey
&RegionId=cn-beijing
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetTagKeyResponse>
<TagKeys>
<TagKey>date</TagKey>
<TagKey>resultCount</TagKey>
<TagKey>aTid</TagKey>
</TagKeys>
<RequestId>7D6519C1-A92A-4F07-AC83-706D48204242</RequestId>
</GetTagKeyResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"TagKeys" : {
"TagKey" : [ "date", "resultCount", "aTid" ]
},
"RequestId" : "7D6519C1-A92A-4F07-AC83-706D48204242"
}
Error codes
For a list of error codes, see Service error codes.