Skip to content

Commit

Permalink
Regenerate client from commit 96bac9a of spec repo (#471)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Aug 24, 2021
1 parent 6ee0a49 commit a2e84f2
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 7 deletions.
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

0 comments on commit a2e84f2

Please sign in to comment.