API

LogStreamChunk

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/observability/spaces/{space_id}/log_streams/{log_stream_id}/chunks create Success
GET /api/v1/observability/spaces/{space_id}/log_streams/{log_stream_id}/chunks/{id} load Success
GET /api/v1/observability/spaces/{space_id}/log_streams/{log_stream_id}/chunks load Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

log_stream_chunk, err := client.LogStreamChunk(nil).Load(map[string]any{"log_stream_id": "example", "space_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(log_stream_chunk)
created, err := client.LogStreamChunk(nil).Create(map[string]any{"log_stream_id": "example", "space_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local log_stream_chunk, err = client:LogStreamChunk():load({ log_stream_id = "example", space_id = "example" })
local created, err = client:LogStreamChunk():create({ log_stream_id = "example", space_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$log_stream_chunk = $client->LogStreamChunk()->load(["log_stream_id" => "example", "space_id" => "example"]);
$created = $client->LogStreamChunk()->create(["log_stream_id" => "example", "space_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

log_stream_chunk = client.LogStreamChunk().load({"log_stream_id": "example", "space_id": "example"})
created = client.LogStreamChunk().create({ "log_stream_id": "example", "space_id": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

log_stream_chunk = client.LogStreamChunk.load({ "log_stream_id" => "example", "space_id" => "example" })
created = client.LogStreamChunk.create({ "log_stream_id" => "example", "space_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const log_stream_chunk = await client.LogStreamChunk().load({ log_stream_id: "example", space_id: "example" })
const created = await client.LogStreamChunk().create({ log_stream_id: "example", space_id: "example" })

Fields

Field Type Required Description
id string No Id

create

POST /api/v1/observability/spaces/{space_id}/log_streams/{log_stream_id}/chunks

Operation ID: post_api_v1_observability_spaces_space_id_log_streams_log_stream_id_chunks.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
space_id path string Yes
log_stream_id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/observability/spaces/{space_id}/log_streams/{log_stream_id}/chunks/{id}

Operation ID: api_v1_space_log_stream_chunk.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
space_id path string Yes
log_stream_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/observability/spaces/{space_id}/log_streams/{log_stream_id}/chunks

Operation ID: api_v1_space_log_stream_chunks.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
space_id path string Yes
log_stream_id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway