From 1a820b645ef847f74ad04e92e1135b74792b9e34 Mon Sep 17 00:00:00 2001 From: Shahzad Date: Wed, 19 Feb 2025 16:25:22 +0100 Subject: [PATCH] [Synthetics] Added field for maintenance windows !! (#12820) * added field for maintenance windows * change log * formatting * update version --- packages/synthetics/changelog.yml | 5 +++++ .../data_stream/browser/agent/stream/browser.yml.hbs | 4 ++++ packages/synthetics/data_stream/browser/manifest.yml | 8 ++++++++ .../synthetics/data_stream/http/agent/stream/http.yml.hbs | 4 ++++ packages/synthetics/data_stream/http/manifest.yml | 8 ++++++++ .../synthetics/data_stream/icmp/agent/stream/icmp.yml.hbs | 4 ++++ packages/synthetics/data_stream/icmp/manifest.yml | 8 ++++++++ .../synthetics/data_stream/tcp/agent/stream/tcp.yml.hbs | 4 ++++ packages/synthetics/data_stream/tcp/manifest.yml | 8 ++++++++ packages/synthetics/manifest.yml | 4 ++-- 10 files changed, 55 insertions(+), 2 deletions(-) diff --git a/packages/synthetics/changelog.yml b/packages/synthetics/changelog.yml index a1ef499056f..74fd6298623 100644 --- a/packages/synthetics/changelog.yml +++ b/packages/synthetics/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "1.4.0" + changes: + - description: Field for maintenance windows + type: enhancement + link: https://github.com/elastic/integrations/pull/12820 - version: "1.3.0" changes: - description: For version 9.0.0 diff --git a/packages/synthetics/data_stream/browser/agent/stream/browser.yml.hbs b/packages/synthetics/data_stream/browser/agent/stream/browser.yml.hbs index f82e12d491d..c6f17456667 100644 --- a/packages/synthetics/data_stream/browser/agent/stream/browser.yml.hbs +++ b/packages/synthetics/data_stream/browser/agent/stream/browser.yml.hbs @@ -56,4 +56,8 @@ max_attempts: {{max_attempts}} {{#if processors}} processors: {{processors}} +{{/if}} +{{#if maintenance_windows}} +maintenance_windows: +{{maintenance_windows}} {{/if}} \ No newline at end of file diff --git a/packages/synthetics/data_stream/browser/manifest.yml b/packages/synthetics/data_stream/browser/manifest.yml index 5ec704e9e72..48286a0da72 100644 --- a/packages/synthetics/data_stream/browser/manifest.yml +++ b/packages/synthetics/data_stream/browser/manifest.yml @@ -174,3 +174,11 @@ streams: required: false show_user: true default: 2 + - name: maintenance_windows + type: yaml + title: Maintenance windows + multi: false + required: false + show_user: true + description: >- + Maintenance windows are used to disable monitors during a specific time period. diff --git a/packages/synthetics/data_stream/http/agent/stream/http.yml.hbs b/packages/synthetics/data_stream/http/agent/stream/http.yml.hbs index ca352b30ee3..fe9762af0db 100644 --- a/packages/synthetics/data_stream/http/agent/stream/http.yml.hbs +++ b/packages/synthetics/data_stream/http/agent/stream/http.yml.hbs @@ -93,3 +93,7 @@ max_attempts: {{max_attempts}} processors: {{processors}} {{/if}} +{{#if maintenance_windows}} +maintenance_windows: +{{maintenance_windows}} +{{/if}} \ No newline at end of file diff --git a/packages/synthetics/data_stream/http/manifest.yml b/packages/synthetics/data_stream/http/manifest.yml index f3fc8b50e9a..1c5ee08e672 100644 --- a/packages/synthetics/data_stream/http/manifest.yml +++ b/packages/synthetics/data_stream/http/manifest.yml @@ -273,3 +273,11 @@ streams: required: false show_user: true default: 2 + - name: maintenance_windows + type: yaml + title: Maintenance windows + multi: false + required: false + show_user: true + description: >- + Maintenance windows are used to disable monitors during a specific time period. diff --git a/packages/synthetics/data_stream/icmp/agent/stream/icmp.yml.hbs b/packages/synthetics/data_stream/icmp/agent/stream/icmp.yml.hbs index 1c1fe4de1f2..5c66e4404ee 100644 --- a/packages/synthetics/data_stream/icmp/agent/stream/icmp.yml.hbs +++ b/packages/synthetics/data_stream/icmp/agent/stream/icmp.yml.hbs @@ -35,4 +35,8 @@ max_attempts: {{max_attempts}} {{#if processors}} processors: {{processors}} +{{/if}} +{{#if maintenance_windows}} +maintenance_windows: +{{maintenance_windows}} {{/if}} \ No newline at end of file diff --git a/packages/synthetics/data_stream/icmp/manifest.yml b/packages/synthetics/data_stream/icmp/manifest.yml index c6840cecb71..ab2e2bef10c 100644 --- a/packages/synthetics/data_stream/icmp/manifest.yml +++ b/packages/synthetics/data_stream/icmp/manifest.yml @@ -148,3 +148,11 @@ streams: required: false show_user: true default: 2 + - name: maintenance_windows + type: yaml + title: Maintenance windows + multi: false + required: false + show_user: true + description: >- + Maintenance windows are used to disable monitors during a specific time period. diff --git a/packages/synthetics/data_stream/tcp/agent/stream/tcp.yml.hbs b/packages/synthetics/data_stream/tcp/agent/stream/tcp.yml.hbs index 2b603188964..bcbdeed7fee 100644 --- a/packages/synthetics/data_stream/tcp/agent/stream/tcp.yml.hbs +++ b/packages/synthetics/data_stream/tcp/agent/stream/tcp.yml.hbs @@ -62,4 +62,8 @@ max_attempts: {{max_attempts}} {{#if processors}} processors: {{processors}} +{{/if}} +{{#if maintenance_windows}} +maintenance_windows: +{{maintenance_windows}} {{/if}} \ No newline at end of file diff --git a/packages/synthetics/data_stream/tcp/manifest.yml b/packages/synthetics/data_stream/tcp/manifest.yml index e97aff2cb3f..d6ec8e86fe6 100644 --- a/packages/synthetics/data_stream/tcp/manifest.yml +++ b/packages/synthetics/data_stream/tcp/manifest.yml @@ -202,3 +202,11 @@ streams: required: false show_user: true default: 2 + - name: maintenance_windows + type: yaml + title: Maintenance windows + multi: false + required: false + show_user: true + description: >- + Maintenance windows are used to disable monitors during a specific time period. diff --git a/packages/synthetics/manifest.yml b/packages/synthetics/manifest.yml index ab45e247d42..5549065d2c7 100644 --- a/packages/synthetics/manifest.yml +++ b/packages/synthetics/manifest.yml @@ -2,7 +2,7 @@ format_version: 3.0.0 name: synthetics title: Elastic Synthetics description: Internal Elastic integration for providing access to private locations. -version: 1.3.0 +version: 1.4.0 categories: ["observability"] type: integration source: @@ -30,7 +30,7 @@ conditions: - "uptime" subscription: "basic" kibana: - version: "^8.11.0 || ^9.0.0" + version: "^9.1.0" icons: - src: /img/uptime-logo-color-64px.svg size: 16x16