Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

WebSocket Analytics

Markdown で表示Agent セットアップ

The descriptions below detail the fields available for websocket_analytics.

BytesReceivedClient

Type: int

Number of bytes received from the client.

BytesReceivedOrigin

Type: int

Number of bytes received from the origin.

BytesSentClient

Type: int

Number of bytes sent to the client.

BytesSentOrigin

Type: int

Number of bytes sent to the origin.

ClientASN

Type: int

The client's autonomous system number (ASN).

ClientIP

Type: string

The client IP address.

ClientRequestHost

Type: string

The host requested by the client in the WebSocket upgrade request.

ClientRequestPath

Type: string

The path requested by the client in the WebSocket upgrade request.

ClientRequestUserAgent

Type: string

The user agent reported by the client.

ColoCode

Type: string

IATA airport code of the data center that handled the connection.

ConnectionCloseReason

Type: string

The edge proxy classification for why the WebSocket connection ended. none means the proxy observed no classified error or timeout.
Possible values are none | unspecifiedError | timedOut | peerReset | upstreamReset | protocolViolation | peerNoError.

ConnectionCloseSource

Type: string

The side where the edge proxy observed the connection close. This field does not necessarily identify which side initiated the close. both means the proxy observed closure in both directions and does not identify which direction closed first.
Possible values are upstream | downstream | me | both. Unrecognized classifications can appear as raw internal values.

ConnectionID

Type: string

Unique identifier of the WebSocket connection, hex-encoded.

ConnectionTransportCloseCode

Type: int

A reportable transport-level close code observed. For Transport Layer Security (TLS) connections, the low byte contains the TLS alert description. A TLS close_notify alert is not reported. A value of 0 means no reportable code was observed or the connection used plain TCP. The most significant bit indicates the source: 0 = proxy-initiated, 1 = peer-initiated.

EdgeEndTimestamp

Type: int or string

Timestamp at which the WebSocket connection closed. To specify the timestamp format, refer to Output types.

EdgeStartTimestamp

Type: int or string

Timestamp at which the WebSocket connection was established. To specify the timestamp format, refer to Output types.

RayID

Type: string

The Ray ID of the WebSocket upgrade request.

役に立ちましたか?