Pipelines (2)·续5

modified_at: string

formatdate-time

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

name: string

Defines the name of the Sink.

maxLength128

minLength1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type: "r2"or "r2_data_catalog"or "basin_catalog"

Specifies the type of sink.

</summary>

One of the following:

"r2"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"r2_data_catalog"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"basin_catalog"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

config: optional object {account_id, bucket, file_naming, 4 more } or object {account_id, bucket, table_name, 2 more }

Defines the configuration of the R2 Sink.

</summary>

One of the following:

<details>

<summary>

CloudflarePipelinesR2TablePublic object {account_id, bucket, file_naming, 4 more }

R2 Sink public configuration.

</summary>

account_id: string

Cloudflare Account ID for the bucket

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20account_id">Link to this property</a>

bucket: string

R2 Bucket to write to

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20bucket">Link to this property</a>

<details>

<summary>

file_naming: optional object {prefix, strategy, suffix }

Controls filename prefix/suffix and strategy.

</summary>

prefix: optional string

The prefix to use in file name. i.e prefix-.parquet

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20prefix">Link to this property</a>

<details>

<summary>

strategy: optional "serial"or "uuid"or "uuid_v7"or "ulid"

Filename generation strategy.

</summary>

One of the following:

"serial"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%200">Link to this property</a>

"uuid"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%201">Link to this property</a>

"uuid_v7"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%202">Link to this property</a>

"ulid"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy">Link to this property</a>

suffix: optional string

This will overwrite the default file suffix. i.e .parquet, use with caution

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20suffix">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming">Link to this property</a>

jurisdiction: optional string

Jurisdiction this bucket is hosted in

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20jurisdiction">Link to this property</a>

<details>

<summary>

partitioning: optional object {time_pattern }

Data-layout partitioning for sinks.

</summary>

time_pattern: optional string

The pattern of the date string

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20partitioning%20%3E%20(property)%20time_pattern">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20partitioning">Link to this property</a>

path: optional string

Subpath within the bucket to write to

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20path">Link to this property</a>

<details>

<summary>

rolling_policy: optional object {file_size_bytes, inactivity_seconds, interval_seconds }

Rolling policy for file sinks (when & why to close a file and open a new one).

</summary>

file_size_bytes: optional number

Files will be rolled after reaching this number of bytes

formatuint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20file_size_bytes">Link to this property</a>

inactivity_seconds: optional number

Number of seconds of inactivity to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20inactivity_seconds">Link to this property</a>

interval_seconds: optional number

Number of seconds to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20interval_seconds">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

CloudflarePipelinesR2DataCatalogTablePublic object {account_id, bucket, table_name, 2 more }

R2 Data Catalog Sink public configuration.

</summary>

account_id: string

Cloudflare Account ID

formaturi

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20account_id">Link to this property</a>

bucket: string

The R2 Bucket that hosts this catalog

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20bucket">Link to this property</a>

table_name: string

Table name

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20table_name">Link to this property</a>

namespace: optional string

Table namespace

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20namespace">Link to this property</a>

<details>

<summary>

rolling_policy: optional object {file_size_bytes, inactivity_seconds, interval_seconds }

Rolling policy for file sinks (when & why to close a file and open a new one).

</summary>

file_size_bytes: optional number

Files will be rolled after reaching this number of bytes

formatuint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20file_size_bytes">Link to this property</a>

inactivity_seconds: optional number

Number of seconds of inactivity to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20inactivity_seconds">Link to this property</a>

interval_seconds: optional number

Number of seconds to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20interval_seconds">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20config">Link to this property</a>

<details>

<summary>

format: optional object {type, compression, decimal_encoding, 2 more } or object {type, compression, row_group_bytes }

Defines the output data format of a sink.

</summary>

One of the following:

<details>

<summary>

Json object {type, compression, decimal_encoding, 2 more }

</summary>

type: "json"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

compression: optional "uncompressed"or "gzip"

Specifies the compression applied to JSON sink output.

</summary>

One of the following:

"uncompressed"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20compression%20%3E%20(member)%200">Link to this property</a>

"gzip"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20compression%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20compression">Link to this property</a>

<details>

<summary>

decimal_encoding: optional "number"or "string"or "bytes"

</summary>

One of the following:

"number"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%200">Link to this property</a>

"string"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%201">Link to this property</a>

"bytes"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding">Link to this property</a>

<details>

<summary>

timestamp_format: optional "rfc3339"or "unix_millis"

</summary>

One of the following:

"rfc3339"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format%20%3E%20(member)%200">Link to this property</a>

"unix_millis"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format">Link to this property</a>

unstructured: optional boolean

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20unstructured">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

Parquet object {type, compression, row_group_bytes }

</summary>

type: "parquet"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

compression: optional "uncompressed"or "snappy"or "gzip"or 2 more

</summary>

One of the following:

"uncompressed"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%200">Link to this property</a>

"snappy"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%201">Link to this property</a>

"gzip"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%202">Link to this property</a>

"zstd"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%203">Link to this property</a>

"lz4"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression">Link to this property</a>

row_group_bytes: optional number

formatint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20row_group_bytes">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_list_response%20%3E%20(schema)%20%3E%20(property)%20format">Link to this property</a>

<details>

<summary>

schema: optional object {fields, inferred }

Defines the schema of the events in the data stream.

</summary>

<details>

<summary>

fields: optional array of <a href="https://developers.cloudflare.com/api/resources/pipelines#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)">SourceField</a>

</summary>

One of the following:

<details>

<summary>

Int32 object {type, metadata_key, name, 2 more }

</summary>

type: "int32"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

metadata_key: optional string

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20metadata_key">Link to this property</a>

name: optional string

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

required: optional boolean

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20required">Link to this property</a>