• Cloud Trace Service

cts
  1. Help Center
  2. Cloud Trace Service
  3. User Guide
  4. Trace References
  5. Trace Structure

Trace Structure

The structure of a trace consists of multiple key fields. For details, see Table 1.

NOTE:
  • Formats of some fields displayed on the management console are optimized for easy understanding.
  • This section describes the key fields of a trace displayed on the management console.
Table 1 Key fields of traces

Field

Mandatory

Type

Description

time

Yes

Date

Time when a trace occurred

The value is the local standard time (GMT+local time zone), for example, 12/08/2016 11:24:04 GMT+08:00. This field is transmitted and stored in the form of a timestamp. It is the total number of milliseconds from 00:00:00 on January 1, 1970 (UTC), or 08:00:00 on January 1, 1970 (CST) to the current time.

user

Yes

Structure

Cloud account used to perform an operation

This field is displayed in the Operator column on the Trace List page.

This field is transmitted and stored in the API in the form of a string.

request

No

Structure

Content requested by an operation

This field is transmitted and stored in the API in the form of a string.

response

No

Structure

Response to the request by an operation

This field is transmitted and stored in the API in the form of a string.

service_type

Yes

String

Operation source

resource_type

Yes

String

Resource type

resource_name

No

String

Resource name

resource_id

No

String

Unique resource ID

source_ip

Yes

String

IP address of the user that performs an operation

The value of this parameter is empty if the operation is triggered by the system.

trace_name

Yes

String

Operation name

trace_status

Yes

String

Trace level

The value can be All trace statuses, normal, warning, or incident.

trace_type

Yes

String

Operation type

There are three types of operations:

  • ConsoleAction: operations performed on the management console
  • SystemAction: operations triggered by the system
  • ApiCall: operations triggered by invoking ApiGateway.

api_version

No

String

API version of the cloud service on which an operation is performed

message

No

Structure

Supplementary information

record_time

Yes

Number

Record time (time stamp) of an operation

trace_id

Yes

String

Unique operation ID

code

No

Number

Trace HTTP return code, for example, 200 or 400

request_id

No

String

Records the ID of the request.

location_info

No

String

Additional information required for fault locating after a request recording error occurs

endpoint

No

String

Endpoint of the page that displays details of cloud resources involved in this operation

resource_url

No

String

Access link (excluding the endpoint) of the page that displays details of cloud resources involved in this operation