You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Optional map of runtime field name to runtime field mapping. For each entry the server forwards `type`, `script.source`, and `format` to the underlying `_update_by_query` as `runtime_mappings`, so the close query can match fields not natively mapped on the alerts index (e.g. data view runtime fields with Painless scripts). Unlike `runtime_fields`, the caller-supplied Painless script is preserved and executed by Elasticsearch at query time. The server always sets `on_script_error: continue` regardless of any value supplied by the caller, so a single alert that causes a script error is skipped rather than aborting the entire close. Limited to 100 unique field names combined with `runtime_fields`; larger maps are rejected.'
128140
+
description: |-
128141
+
Use this when the query references fields that are not in the alerts index mapping, for example data view runtime fields with a Painless script.
128142
+
Kibana sends `type`, `script.source`, and `format` to Elasticsearch as `runtime_mappings` on the status-update query. Unlike `runtime_fields`, Kibana keeps your script and runs it at query time. It does not replace the script with a `_source` reader.
128143
+
When a script is present, Kibana sets `on_script_error` to `continue`. If the script fails on one alert, that field has no value for the alert and the update continues.
128144
+
Unique field names across `runtime_fields` and `runtime_mappings` combined cannot exceed 100. Larger maps are rejected.
128141
128145
maxProperties: 100
128142
128146
type: object
128143
128147
status:
@@ -131701,16 +131705,16 @@ components:
131701
131705
required:
131702
131706
- command
131703
131707
Security_Detections_API_RuntimeFieldMapping:
131704
-
description: A single runtime field mapping to be attached verbatim to the `_update_by_query` as `runtime_mappings`. Allows the close query to reference fields that are not natively mapped on the alerts index but are evaluatable at query time by Elasticsearch — for example, scripted fields defined on a data view.
131708
+
description: A runtime field included in the status-update query so the query can match fields that are not in the alerts index mapping, for example scripted fields on a data view. Elasticsearch evaluates the field at query time.
131705
131709
type: object
131706
131710
properties:
131707
131711
format:
131708
-
description: Optional format string for date runtime fields (e.g. `strict_date_optional_time`).
131712
+
description: Format string for date runtime fields, for example `strict_date_optional_time`.
131709
131713
maxLength: 100
131710
131714
type: string
131711
131715
script:
131712
131716
additionalProperties: false
131713
-
description: Painless script that Elasticsearch evaluates for each candidate document. Only inline scripts (`source`) are accepted — stored scripts, parameterised scripts (`params`), and non-default `lang` values are not supported. The server rejects any extra properties with a 400 to avoid silently changing runtime field semantics.
131717
+
description: Inline Painless script that Elasticsearch evaluates for each alert. Only `source` is accepted. Stored scripts, parameterized scripts (`params`), and non-default `lang` values are not supported. Extra properties are rejected with a 400 so the script is not run with different semantics.
description: 'Optional map of runtime field name to runtime field mapping. For each entry the server forwards `type`, `script.source`, and `format` to the underlying `_update_by_query` as `runtime_mappings`, so the close query can match fields not natively mapped on the alerts index (e.g. data view runtime fields with Painless scripts). Unlike `runtime_fields`, the caller-supplied Painless script is preserved and executed by Elasticsearch at query time. The server always sets `on_script_error: continue` regardless of any value supplied by the caller, so a single alert that causes a script error is skipped rather than aborting the entire close. Limited to 100 unique field names combined with `runtime_fields`; larger maps are rejected.'
132308
+
description: |-
132309
+
Use this when the query references fields that are not in the alerts index mapping, for example data view runtime fields with a Painless script.
132310
+
Kibana sends `type`, `script.source`, and `format` to Elasticsearch as `runtime_mappings` on the status-update query. Unlike `runtime_fields`, Kibana keeps your script and runs it at query time. It does not replace the script with a `_source` reader.
132311
+
When a script is present, Kibana sets `on_script_error` to `continue`. If the script fails on one alert, that field has no value for the alert and the update continues.
132312
+
Unique field names across `runtime_fields` and `runtime_mappings` combined cannot exceed 100. Larger maps are rejected.
description: 'Optional map of runtime field name to runtime field mapping. For each entry the server forwards `type`, `script.source`, and `format` to the underlying `_update_by_query` as `runtime_mappings`, so the close query can match fields not natively mapped on the alerts index (e.g. data view runtime fields with Painless scripts). Unlike `runtime_fields`, the caller-supplied Painless script is preserved and executed by Elasticsearch at query time. The server always sets `on_script_error: continue` regardless of any value supplied by the caller, so a single alert that causes a script error is skipped rather than aborting the entire close. Limited to 100 unique field names combined with `runtime_fields`; larger maps are rejected.'
135945
+
description: |-
135946
+
Use this when the query references fields that are not in the alerts index mapping, for example data view runtime fields with a Painless script.
135947
+
Kibana sends `type`, `script.source`, and `format` to Elasticsearch as `runtime_mappings` on the status-update query. Unlike `runtime_fields`, Kibana keeps your script and runs it at query time. It does not replace the script with a `_source` reader.
135948
+
When a script is present, Kibana sets `on_script_error` to `continue`. If the script fails on one alert, that field has no value for the alert and the update continues.
135949
+
Unique field names across `runtime_fields` and `runtime_mappings` combined cannot exceed 100. Larger maps are rejected.
135946
135950
maxProperties: 100
135947
135951
type: object
135948
135952
status:
@@ -139627,16 +139631,16 @@ components:
139627
139631
required:
139628
139632
- command
139629
139633
Security_Detections_API_RuntimeFieldMapping:
139630
-
description: A single runtime field mapping to be attached verbatim to the `_update_by_query` as `runtime_mappings`. Allows the close query to reference fields that are not natively mapped on the alerts index but are evaluatable at query time by Elasticsearch — for example, scripted fields defined on a data view.
139634
+
description: A runtime field included in the status-update query so the query can match fields that are not in the alerts index mapping, for example scripted fields on a data view. Elasticsearch evaluates the field at query time.
139631
139635
type: object
139632
139636
properties:
139633
139637
format:
139634
-
description: Optional format string for date runtime fields (e.g. `strict_date_optional_time`).
139638
+
description: Format string for date runtime fields, for example `strict_date_optional_time`.
139635
139639
maxLength: 100
139636
139640
type: string
139637
139641
script:
139638
139642
additionalProperties: false
139639
-
description: Painless script that Elasticsearch evaluates for each candidate document. Only inline scripts (`source`) are accepted — stored scripts, parameterised scripts (`params`), and non-default `lang` values are not supported. The server rejects any extra properties with a 400 to avoid silently changing runtime field semantics.
139643
+
description: Inline Painless script that Elasticsearch evaluates for each alert. Only `source` is accepted. Stored scripts, parameterized scripts (`params`), and non-default `lang` values are not supported. Extra properties are rejected with a 400 so the script is not run with different semantics.
description: 'Optional map of runtime field name to runtime field mapping. For each entry the server forwards `type`, `script.source`, and `format` to the underlying `_update_by_query` as `runtime_mappings`, so the close query can match fields not natively mapped on the alerts index (e.g. data view runtime fields with Painless scripts). Unlike `runtime_fields`, the caller-supplied Painless script is preserved and executed by Elasticsearch at query time. The server always sets `on_script_error: continue` regardless of any value supplied by the caller, so a single alert that causes a script error is skipped rather than aborting the entire close. Limited to 100 unique field names combined with `runtime_fields`; larger maps are rejected.'
140234
+
description: |-
140235
+
Use this when the query references fields that are not in the alerts index mapping, for example data view runtime fields with a Painless script.
140236
+
Kibana sends `type`, `script.source`, and `format` to Elasticsearch as `runtime_mappings` on the status-update query. Unlike `runtime_fields`, Kibana keeps your script and runs it at query time. It does not replace the script with a `_source` reader.
140237
+
When a script is present, Kibana sets `on_script_error` to `continue`. If the script fails on one alert, that field has no value for the alert and the update continues.
140238
+
Unique field names across `runtime_fields` and `runtime_mappings` combined cannot exceed 100. Larger maps are rejected.
0 commit comments