Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions solutions/observability/synthetics/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ If the journey contains external NPM packages other than the `@elastic/synthetic

This can also be set in the configuration file using [the `monitor.fields` option](/solutions/observability/synthetics/configure-projects.md#synthetics-configuration-monitor). The value defined via the CLI will take precedence.

`--maintenance-windows Array<string>`
: A list of maintenance window IDs used to associate every monitor with one or more [maintenance windows](/explore-analyze/alerts-cases/alerts/maintenance-windows.md). This argument accepts a variable number of values as shown in the example.
Example: `--maintenance-windows "maintenance-window-ID-1" "maintenance-window-ID-2`

This can also be set in the configuration file using [the `monitor.fields` option](/solutions/observability/synthetics/configure-projects.md#synthetics-configuration-monitor). The value defined via the CLI will take precedence.

`--yes`
: The `push` command includes interactive prompts to prevent you from accidentally deleting or duplicating monitors. If running the CLI non-interactively, you can override these prompts using the `--yes` option. When the `--yes` option is passed to `push`:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,19 @@ $$$monitor-namespace$$$
namespace: custom-namespace
```

$$$monitor-maintenanceWindows$$$

**`maintenance_windows`**
: Type: [string](/solutions/observability/synthetics/configure-lightweight-monitors.md#synthetics-lightweight-data-string)

A list of maintenance window IDs used to associate this monitor with one or more [maintenance windows](/explore-analyze/alerts-cases/alerts/maintenance-windows.md).

**Examples**:

```yaml
maintenance_windows: ["maintenance-window-ID-1", "maintenance-window-ID-2"]
```

### HTTP options [synthetics-lightweight-http]

The options described here configure Synthetics to connect via HTTP and optionally verify that the host returns the expected response.
Expand Down
3 changes: 3 additions & 0 deletions solutions/observability/synthetics/configure-projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ For information on configuring monitors individually, refer to:
* [Configure individual browser monitors](/solutions/observability/synthetics/configure-individual-browser-monitors.md) for browser monitors
* [Configure lightweight monitors](/solutions/observability/synthetics/configure-lightweight-monitors.md) for lightweight monitors

`maintenanceWindows` (`Array<string>`)
: A list of maintenance window IDs used to associate this monitor with one or more [maintenance windows](/explore-analyze/alerts-cases/alerts/maintenance-windows.md).

## `proxy` [synthetics-configuration-proxy]

`uri` (`string`)
Expand Down
Loading