Skip to content

Commit

Permalink
[OpenAPI][ResponseOps] Edit descriptions for alerting rule API exampl…
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl authored Sep 27, 2024
1 parent 6f01d6a commit 539ad61
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 14 deletions.
4 changes: 3 additions & 1 deletion oas_docs/examples/create_es_query_esql_rule_request.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
summary: Create an Elasticsearch query rule that uses Elasticsearch Query Language (ES|QL).
summary: Elasticsearch query rule (ES|QL)
description: >
Create an Elasticsearch query rule that uses Elasticsearch Query Language (ES|QL) to define its query and a server log connector to send notifications.
value:
name: my Elasticsearch query ESQL rule
params:
Expand Down
3 changes: 2 additions & 1 deletion oas_docs/examples/create_es_query_esql_rule_response.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
summary: The create rule API returns a JSON object that contains details about the rule.
summary: Elasticsearch query rule (ES|QL)
description: The response for successfully creating an Elasticsearch query rule that uses Elasticsearch Query Language (ES|QL).
value:
id: e0d62360-78e8-11ee-9177-f7d404c8c945
enabled: true
Expand Down
3 changes: 2 additions & 1 deletion oas_docs/examples/create_es_query_kql_rule_request.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
summary: Create an Elasticsearch query rule that uses Kibana query language (KQL).
summary: Elasticsearch query rule (KQL)
description: Create an Elasticsearch query rule that uses Kibana query language (KQL).
value:
consumer: alerts
name: my Elasticsearch query KQL rule
Expand Down
3 changes: 2 additions & 1 deletion oas_docs/examples/create_es_query_kql_rule_response.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
summary: The create rule API returns a JSON object that contains details about the rule.
summary: Elasticsearch query rule (KQL)
description: The response for successfully creating an Elasticsearch query rule that uses Kibana query language (KQL).
value:
id: 7bd506d0-2284-11ee-8fad-6101956ced88
enabled: true
Expand Down
4 changes: 3 additions & 1 deletion oas_docs/examples/create_es_query_rule_request.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
summary: Create an Elasticsearch query rule that uses Elasticsearch query domain specific language (DSL) to define its query and a server log connector to send notifications.
summary: Elasticsearch query rule (DSL)
description: >
Create an Elasticsearch query rule that uses Elasticsearch query domain specific language (DSL) to define its query and a server log connector to send notifications.
value:
actions:
- group: query matched
Expand Down
3 changes: 2 additions & 1 deletion oas_docs/examples/create_es_query_rule_response.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
summary: The create rule API returns a JSON object that contains details about the rule.
summary: Elasticsearch query rule (DSL)
description: The response for successfully creating an Elasticsearch query rule that uses Elasticsearch query domain specific language (DSL).
value:
id: 58148c70-407f-11ee-850e-c71febc4ca7f
enabled: true
Expand Down
4 changes: 3 additions & 1 deletion oas_docs/examples/create_index_threshold_rule_request.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
summary: Create an index threshold rule.
summary: Index threshold rule
description: >
Create an index threshold rule that uses a server log connector to send notifications when the threshold is met.
value:
actions:
- id: 48de3460-f401-11ed-9f8e-399c75a2deeb
Expand Down
3 changes: 2 additions & 1 deletion oas_docs/examples/create_index_threshold_rule_response.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
summary: The create rule API returns a JSON object that contains details about the rule.
summary: Index threshold rule
description: The response for successfully creating an index threshold rule.
value:
actions:
- group: threshold met
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
summary: Create a tracking containment rule.
summary: Tracking containment rule
description: >
Create a tracking containment rule that checks when an entity is contained or no longer contained within a boundary.
value:
consumer: alerts
name: my tracking rule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
summary: The create rule API returns a JSON object that contains details about the rule.
summary: Tracking containment rule
description: The response for successfully creating a tracking containment rule.
value:
id: b6883f9d-5f70-4758-a66e-369d7c26012f
name: my tracking rule
Expand Down
3 changes: 2 additions & 1 deletion oas_docs/examples/find_rules_response.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
summary: Retrieve information about a rule.
summary: Index threshold rule
description: A response that contains information about an index threshold rule.
value:
page: 1
total: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
summary: Retrieve information about a rule that has conditional actions.
summary: Security rule
description: A response that contains information about a security rule that has conditional actions.
value:
page: 1
total: 1
Expand Down
3 changes: 2 additions & 1 deletion oas_docs/examples/update_rule_request.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
summary: Update an index threshold rule.
summary: Index threshold rule
description: Update an index threshold rule that uses a server log connector to send notifications when the threshold is met.
value:
actions:
- frequency:
Expand Down
3 changes: 2 additions & 1 deletion oas_docs/examples/update_rule_response.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
summary: The update rule API returns a JSON object that contains details about the rule.
summary: Index threshold rule
description: The response for successfully updating an index threshold rule.
value:
id: ac4e6b90-6be7-11eb-ba0d-9b1c1f912d74
consumer: alerts
Expand Down

0 comments on commit 539ad61

Please sign in to comment.