Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface Request<TJsonDocument> {
* In this default scenario, all rows must have the same number of fields for a delimited format to be detected.
* If the format is set to `delimited` and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row.
*/
format?: string
format?: FindStructureFormat
/**
* If you have set `format` to `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text.
* The name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter.
Expand Down Expand Up @@ -207,3 +207,10 @@ export interface Request<TJsonDocument> {
* @codegen_name text_files */
body: Array<TJsonDocument>
}

export enum FindStructureFormat {
ndjson,
xml,
delimited,
semi_structured_text
}