AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

Kafka 時系列のプロパティ

次の構成設定を使用して、MongoDB Kafka Sink Connector が MongoDB 時系列コレクションにデータをシンクする方法を指定します。

カテゴリ別に整理された Sink Connector 構成設定のリストについては、「 Sink Connector 構成プロパティ 」に関するガイドを参照してください。

名前
説明

timeseries.timefield

タイプ: string

説明:
時系列コレクションの新しいドキュメントに関連付ける時間情報を含むソース データのトップレベル フィールドの名前。

デフォルト: ""
受け入れる値: 空の string または BSON DateTime 値を含むフィールドの名前

timeseries.timefield.auto.convert.date.format

Type: string

Description:
The date format pattern the connector should use to convert the source data contained in the field specified by the timeseries.timefield setting.

The connector passes the date format pattern to the Java DateTimeFormatter.ofPattern(pattern, locale) method to perform date and time conversions on the time field.

If the date value from the source data only contains date information, the connector sets the time information to the start of the specified day. If the date value does not contain the timezone offset, the connector sets the offset to UTC.

Default:

yyyy-MM-dd[['T'][ ]][HH:mm:ss[[.][SSSSSS][SSS]][ ]VV[ ]'['VV']'][HH:mm:ss[[.][SSSSSS][SSS]][ ]X][HH:mm:ss[[.][SSSSSS][SSS]]]

許容値: 有効なDateTimeFormatter形式

timeseries.timefield.auto.convert

型: ブール値

説明:
フィールド内のデータを BSON Date 形式に変換するかどうか。

true に設定すると、値が数字の場合、コネクターは UNIXエポック以降のミリ秒を使用し、小数部分を破棄します。値が string の場合、コネクターは次の構成の設定を使用して日付を解析します:

timeseries.timefield.auto.convert.date.format

コネクターが値の変換に失敗した場合、元の値が時系列コレクションに送信されます。

デフォルト: false
受け入れ可能な値: true または false

timeseries.timefield.auto.convert.locale.value.map

Type: string

Description:
Which DateTimeFormatter locale language tag to use with the date format pattern (e.g. "en-US").

To learn more about locales, see the Java SE documentation of Locale.

Default: ROOT
Accepted Values: A valid Locale language tag format

timeseries.metafield

タイプ: string

説明:
関連する時系列ドキュメントのグループを説明するために、ソース データから読み取るトップレベル フィールド。

重要: このフィールドは _id フィールドでも、timeseries.timefield 設定で指定したフィールドでもあってはなりません。

デフォルト: ""
受け入れる値: 空の文字列または BsonArray 以外の BSON タイプを含むフィールドの名前。

timeseries.expire.After.seconds

Type: int

Description:
The number of seconds MongoDB should wait before automatically removing the time series collection data. The connector disables timed expiry when the setting value is less than 1.

To learn more, see Set up Automatic Removal for Time Series Collections in the MongoDB manual.

Default: 0
Accepted Values: An integer

timeseries.granularity

Type: string

Description:
The expected interval between subsequent measurements of your source data.

To learn more, see Set Granularity for Time Series Data in the MongoDB manual.

Optional
Default: ""
Accepted Values: "", "seconds", "minutes", "hours"

既存のコレクションを時系列コレクションに変換する方法の例については、「 既存のコレクションを時系列コレクションに移行する 」方法に関するチュートリアルを参照してください。

このページを評価

項目一覧