mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
[OAS] Clarify rule action descriptions (#162199)
This commit is contained in:
parent
03303940f2
commit
bc9d601feb
4 changed files with 35 additions and 24 deletions
|
@ -3113,14 +3113,14 @@ Any modifications made to this file will be overwritten.
|
||||||
</div>
|
</div>
|
||||||
<div class="model">
|
<div class="model">
|
||||||
<h3><a name="actions_inner"><code>actions_inner</code> - </a> <a class="up" href="#__Models">Up</a></h3>
|
<h3><a name="actions_inner"><code>actions_inner</code> - </a> <a class="up" href="#__Models">Up</a></h3>
|
||||||
<div class='model-description'></div>
|
<div class='model-description'>An action that runs under defined conditions.</div>
|
||||||
<div class="field-items">
|
<div class="field-items">
|
||||||
<div class="param">alerts_filter (optional)</div><div class="param-desc"><span class="param-type"><a href="#actions_inner_alerts_filter">actions_inner_alerts_filter</a></span> </div>
|
<div class="param">alerts_filter (optional)</div><div class="param-desc"><span class="param-type"><a href="#actions_inner_alerts_filter">actions_inner_alerts_filter</a></span> </div>
|
||||||
<div class="param">connector_type_id (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> The type of connector. This property appears in responses but cannot be set in requests. </div>
|
<div class="param">connector_type_id (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> The type of connector. This property appears in responses but cannot be set in requests. </div>
|
||||||
<div class="param">frequency (optional)</div><div class="param-desc"><span class="param-type"><a href="#actions_inner_frequency">actions_inner_frequency</a></span> </div>
|
<div class="param">frequency (optional)</div><div class="param-desc"><span class="param-type"><a href="#actions_inner_frequency">actions_inner_frequency</a></span> </div>
|
||||||
<div class="param">group (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> The group name for the actions. If you don't need to group actions, set to <code>default</code>. </div>
|
<div class="param">group </div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> The group name, which affects when the action runs (for example, when the threshold is met or when the alert is recovered). Each rule type has a list of valid action group names. If you don't need to group actions, set to <code>default</code>. </div>
|
||||||
<div class="param">id (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> The identifier for the connector saved object. </div>
|
<div class="param">id </div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> The identifier for the connector saved object. </div>
|
||||||
<div class="param">params (optional)</div><div class="param-desc"><span class="param-type"><a href="#AnyType">map[String, oas_any_type_not_mapped]</a></span> The parameters for the action, which are sent to the connector. The <code>params</code> are handled as Mustache templates and passed a default set of context. </div>
|
<div class="param">params </div><div class="param-desc"><span class="param-type"><a href="#AnyType">map[String, oas_any_type_not_mapped]</a></span> The parameters for the action, which are sent to the connector. The <code>params</code> are handled as Mustache templates and passed a default set of context. </div>
|
||||||
<div class="param">uuid (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> A universally unique identifier (UUID) for the action. </div>
|
<div class="param">uuid (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> A universally unique identifier (UUID) for the action. </div>
|
||||||
</div> <!-- field-items -->
|
</div> <!-- field-items -->
|
||||||
</div>
|
</div>
|
||||||
|
@ -3159,7 +3159,7 @@ Any modifications made to this file will be overwritten.
|
||||||
</div>
|
</div>
|
||||||
<div class="model">
|
<div class="model">
|
||||||
<h3><a name="actions_inner_frequency"><code>actions_inner_frequency</code> - </a> <a class="up" href="#__Models">Up</a></h3>
|
<h3><a name="actions_inner_frequency"><code>actions_inner_frequency</code> - </a> <a class="up" href="#__Models">Up</a></h3>
|
||||||
<div class='model-description'>The parameters that affect how often actions are generated. NOTE: You cannot specify these parameters when <code>notify_when</code> or <code>throttle</code> are defined at the rule level.</div>
|
<div class='model-description'>The properties that affect how often actions are generated. If the rule type supports setting <code>summary</code> to <code>true</code>, the action can be a summary of alerts at the specified notification interval. Otherwise, an action runs for each alert at the specified notification interval. NOTE: You cannot specify these parameters when <code>notify_when</code> or <code>throttle</code> are defined at the rule level.</div>
|
||||||
<div class="field-items">
|
<div class="field-items">
|
||||||
<div class="param">notify_when </div><div class="param-desc"><span class="param-type"><a href="#notify_when">notify_when</a></span> </div>
|
<div class="param">notify_when </div><div class="param-desc"><span class="param-type"><a href="#notify_when">notify_when</a></span> </div>
|
||||||
<div class="param">summary </div><div class="param-desc"><span class="param-type"><a href="#boolean">Boolean</a></span> Indicates whether the action is a summary. </div>
|
<div class="param">summary </div><div class="param-desc"><span class="param-type"><a href="#boolean">Boolean</a></span> Indicates whether the action is a summary. </div>
|
||||||
|
|
|
@ -2616,14 +2616,15 @@
|
||||||
"actions": {
|
"actions": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"default": [],
|
||||||
"required": [
|
|
||||||
"group",
|
|
||||||
"id",
|
|
||||||
"params"
|
|
||||||
],
|
|
||||||
"nullable": true,
|
"nullable": true,
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"group",
|
||||||
|
"id",
|
||||||
|
"params"
|
||||||
|
],
|
||||||
|
"description": "An action that runs under defined conditions.\n",
|
||||||
"properties": {
|
"properties": {
|
||||||
"alerts_filter": {
|
"alerts_filter": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -2696,7 +2697,7 @@
|
||||||
},
|
},
|
||||||
"frequency": {
|
"frequency": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "The parameters that affect how often actions are generated. NOTE: You cannot specify these parameters when `notify_when` or `throttle` are defined at the rule level.\n",
|
"description": "The properties that affect how often actions are generated. If the rule type supports setting `summary` to `true`, the action can be a summary of alerts at the specified notification interval. Otherwise, an action runs for each alert at the specified notification interval. NOTE: You cannot specify these parameters when `notify_when` or `throttle` are defined at the rule level.\n",
|
||||||
"required": [
|
"required": [
|
||||||
"notify_when",
|
"notify_when",
|
||||||
"summary"
|
"summary"
|
||||||
|
@ -2716,7 +2717,7 @@
|
||||||
},
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The group name for the actions. If you don't need to group actions, set to `default`.",
|
"description": "The group name, which affects when the action runs (for example, when the threshold is met or when the alert is recovered). Each rule type has a list of valid action group names. If you don't need to group actions, set to `default`.\n",
|
||||||
"example": "default"
|
"example": "default"
|
||||||
},
|
},
|
||||||
"id": {
|
"id": {
|
||||||
|
|
|
@ -1656,13 +1656,15 @@ components:
|
||||||
actions:
|
actions:
|
||||||
type: array
|
type: array
|
||||||
default: []
|
default: []
|
||||||
required:
|
|
||||||
- group
|
|
||||||
- id
|
|
||||||
- params
|
|
||||||
nullable: true
|
nullable: true
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
|
required:
|
||||||
|
- group
|
||||||
|
- id
|
||||||
|
- params
|
||||||
|
description: |
|
||||||
|
An action that runs under defined conditions.
|
||||||
properties:
|
properties:
|
||||||
alerts_filter:
|
alerts_filter:
|
||||||
type: object
|
type: object
|
||||||
|
@ -1721,7 +1723,7 @@ components:
|
||||||
frequency:
|
frequency:
|
||||||
type: object
|
type: object
|
||||||
description: |
|
description: |
|
||||||
The parameters that affect how often actions are generated. NOTE: You cannot specify these parameters when `notify_when` or `throttle` are defined at the rule level.
|
The properties that affect how often actions are generated. If the rule type supports setting `summary` to `true`, the action can be a summary of alerts at the specified notification interval. Otherwise, an action runs for each alert at the specified notification interval. NOTE: You cannot specify these parameters when `notify_when` or `throttle` are defined at the rule level.
|
||||||
required:
|
required:
|
||||||
- notify_when
|
- notify_when
|
||||||
- summary
|
- summary
|
||||||
|
@ -1735,7 +1737,8 @@ components:
|
||||||
$ref: '#/components/schemas/throttle'
|
$ref: '#/components/schemas/throttle'
|
||||||
group:
|
group:
|
||||||
type: string
|
type: string
|
||||||
description: The group name for the actions. If you don't need to group actions, set to `default`.
|
description: |
|
||||||
|
The group name, which affects when the action runs (for example, when the threshold is met or when the alert is recovered). Each rule type has a list of valid action group names. If you don't need to group actions, set to `default`.
|
||||||
example: default
|
example: default
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
type: array
|
type: array
|
||||||
default: []
|
default: []
|
||||||
required:
|
|
||||||
- group
|
|
||||||
- id
|
|
||||||
- params
|
|
||||||
nullable: true
|
nullable: true
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
|
required:
|
||||||
|
- group
|
||||||
|
- id
|
||||||
|
- params
|
||||||
|
description: >
|
||||||
|
An action that runs under defined conditions.
|
||||||
properties:
|
properties:
|
||||||
alerts_filter:
|
alerts_filter:
|
||||||
type: object
|
type: object
|
||||||
|
@ -64,7 +66,9 @@ items:
|
||||||
frequency:
|
frequency:
|
||||||
type: object
|
type: object
|
||||||
description: >
|
description: >
|
||||||
The parameters that affect how often actions are generated.
|
The properties that affect how often actions are generated.
|
||||||
|
If the rule type supports setting `summary` to `true`, the action can be a summary of alerts at the specified notification interval.
|
||||||
|
Otherwise, an action runs for each alert at the specified notification interval.
|
||||||
NOTE: You cannot specify these parameters when `notify_when` or `throttle` are defined at the rule level.
|
NOTE: You cannot specify these parameters when `notify_when` or `throttle` are defined at the rule level.
|
||||||
required:
|
required:
|
||||||
- notify_when
|
- notify_when
|
||||||
|
@ -79,7 +83,10 @@ items:
|
||||||
$ref: 'throttle.yaml'
|
$ref: 'throttle.yaml'
|
||||||
group:
|
group:
|
||||||
type: string
|
type: string
|
||||||
description: The group name for the actions. If you don't need to group actions, set to `default`.
|
description: >
|
||||||
|
The group name, which affects when the action runs (for example, when the threshold is met or when the alert is recovered).
|
||||||
|
Each rule type has a list of valid action group names.
|
||||||
|
If you don't need to group actions, set to `default`.
|
||||||
example: default
|
example: default
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue