Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add audit alert monitor type #471

Merged
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev11",
"regenerated": "2021-08-20 13:34:24.322595",
"spec_repo_commit": "4f0cc56"
"regenerated": "2021-08-20 19:27:32.173407",
"spec_repo_commit": "96bac9a"
},
"v2": {
"apigentools_version": "1.4.1.dev11",
"regenerated": "2021-08-20 13:35:07.621380",
"spec_repo_commit": "4f0cc56"
"regenerated": "2021-08-20 19:28:20.832067",
"spec_repo_commit": "96bac9a"
}
}
}
31 changes: 30 additions & 1 deletion data/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5813,6 +5813,7 @@ components:
- trace-analytics alert
- slo alert
- event-v2 alert
- audit alert
example: metric alert
type: string
x-enum-varnames:
Expand All @@ -5828,6 +5829,7 @@ components:
- TRACE_ANALYTICS_ALERT
- SLO_ALERT
- EVENT_V2_ALERT
- AUDIT_ALERT
MonitorUpdateRequest:
description: Object describing a monitor update request.
properties:
Expand Down Expand Up @@ -18275,6 +18277,8 @@ paths:

- event-v2: `event-v2 alert`

- audit: `audit alert`


#### Query Types

Expand Down Expand Up @@ -18498,7 +18502,32 @@ paths:
- **`time_window`**: The time window of the SLO target you wish to alert on.
Valid options: `7d`, `30d`, `90d`.

- **`operator`**: `>=` or `>`'
- **`operator`**: `>=` or `>`


**Audit Alert Query**


Example: `audits(query).rollup(rollup_method[, measure]).last(time_window)
operator #`


- **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).

- **`rollup_method`** The stats roll-up method - supports `count`, `avg` and
`cardinality`.

- **`measure`** For `avg` and cardinality `rollup_method` - specify the measure
or the facet name you want to use.

- **`time_window`** #m (between 1 and 2880), #h (between 1 and 48).

- **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`.

- **`#`** an integer or decimal number used to set the threshold.


**NOTE** Only available on US1-FED and in closed beta on EU, US3, and US1.'
operationId: CreateMonitor
requestBody:
content:
Expand Down
14 changes: 14 additions & 0 deletions docs/v1/MonitorsAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ The type of monitor chosen from:
- SLO: `slo alert`
- watchdog: `event alert`
- event-v2: `event-v2 alert`
- audit: `audit alert`

#### Query Types

Expand Down Expand Up @@ -212,6 +213,19 @@ Example: `error_budget("slo_id").over("time_window") operator #`
- **`time_window`**: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`.
- **`operator`**: `>=` or `>`

**Audit Alert Query**

Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #`

- **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).
- **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`.
- **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use.
- **`time_window`** #m (between 1 and 2880), #h (between 1 and 48).
- **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`.
- **`#`** an integer or decimal number used to set the threshold.

**NOTE** Only available on US1-FED and in closed beta on EU, US3, and US1.

### Examples

```ruby
Expand Down
Loading