Skip to content

Commit

Permalink
Support new heartbeat 'state' fields (#4023)
Browse files Browse the repository at this point in the history
This is the mapping counterpart to elastic/beats#30632

It adds supports for the new state.* fields
  • Loading branch information
andrewvc committed Oct 4, 2022
1 parent f3c8f9f commit a691c64
Show file tree
Hide file tree
Showing 6 changed files with 278 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/synthetics/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.11.0"
changes:
- description: Add support for new data used in future synthetics UI
type: enhancement
link: https://github.com/elastic/integrations/pull/4023
- version: "0.10.3"
changes:
- description: Adds project fields for lightweight monitors
Expand Down
68 changes: 68 additions & 0 deletions packages/synthetics/data_stream/browser/fields/common.yml
Expand Up @@ -90,3 +90,71 @@
- name: name
type: text
description: Project name
- name: state
type: group
description: "Present in the last event emitted during a check. If a monitor checks multiple endpoints, as is the case with `mode: all`."
fields:
- name: id
type: keyword
description: >
ID of this state
- name: started_at
type: date
description: >
First time state with this ID was seen
- name: duration_ms
type: date
description: >
Length of time this state has existed in millis
- name: status
type: keyword
description: >
The current status, "up", "down", or "flapping" any state can change into flapping.
- name: checks
type: integer
description: total checks run
- name: up
type: integer
description: total up checks run
- name: down
type: integer
description: total down checks run
- name: flap_history
enabled: false
- name: ends
type: object
description: the state that was ended by this state
fields:
- name: id
type: integer
description: >
ID of this state
- name: started_at
type: date
description: >
First time state with this ID was seen
- name: duration_ms
type: date
description: >
Length of time this state has existed in millis
- name: status
type: keyword
description: >
The current status, "up", "down", or "flapping" any state can change into flapping.
- name: checks
type: integer
description: total checks run
- name: up
type: integer
description: total up checks run
- name: down
type: integer
description: total down checks run
68 changes: 68 additions & 0 deletions packages/synthetics/data_stream/http/fields/common.yml
Expand Up @@ -90,3 +90,71 @@
- name: name
type: text
description: Project name
- name: state
type: group
description: "Present in the last event emitted during a check. If a monitor checks multiple endpoints, as is the case with `mode: all`."
fields:
- name: id
type: keyword
description: >
ID of this state
- name: started_at
type: date
description: >
First time state with this ID was seen
- name: duration_ms
type: date
description: >
Length of time this state has existed in millis
- name: status
type: keyword
description: >
The current status, "up", "down", or "flapping" any state can change into flapping.
- name: checks
type: integer
description: total checks run
- name: up
type: integer
description: total up checks run
- name: down
type: integer
description: total down checks run
- name: flap_history
enabled: false
- name: ends
type: object
description: the state that was ended by this state
fields:
- name: id
type: integer
description: >
ID of this state
- name: started_at
type: date
description: >
First time state with this ID was seen
- name: duration_ms
type: date
description: >
Length of time this state has existed in millis
- name: status
type: keyword
description: >
The current status, "up", "down", or "flapping" any state can change into flapping.
- name: checks
type: integer
description: total checks run
- name: up
type: integer
description: total up checks run
- name: down
type: integer
description: total down checks run
68 changes: 68 additions & 0 deletions packages/synthetics/data_stream/icmp/fields/common.yml
Expand Up @@ -90,3 +90,71 @@
- name: name
type: text
description: Project name
- name: state
type: group
description: "Present in the last event emitted during a check. If a monitor checks multiple endpoints, as is the case with `mode: all`."
fields:
- name: id
type: keyword
description: >
ID of this state
- name: started_at
type: date
description: >
First time state with this ID was seen
- name: duration_ms
type: date
description: >
Length of time this state has existed in millis
- name: status
type: keyword
description: >
The current status, "up", "down", or "flapping" any state can change into flapping.
- name: checks
type: integer
description: total checks run
- name: up
type: integer
description: total up checks run
- name: down
type: integer
description: total down checks run
- name: flap_history
enabled: false
- name: ends
type: object
description: the state that was ended by this state
fields:
- name: id
type: integer
description: >
ID of this state
- name: started_at
type: date
description: >
First time state with this ID was seen
- name: duration_ms
type: date
description: >
Length of time this state has existed in millis
- name: status
type: keyword
description: >
The current status, "up", "down", or "flapping" any state can change into flapping.
- name: checks
type: integer
description: total checks run
- name: up
type: integer
description: total up checks run
- name: down
type: integer
description: total down checks run
68 changes: 68 additions & 0 deletions packages/synthetics/data_stream/tcp/fields/common.yml
Expand Up @@ -90,3 +90,71 @@
- name: name
type: text
description: Project name
- name: state
type: group
description: "Present in the last event emitted during a check. If a monitor checks multiple endpoints, as is the case with `mode: all`."
fields:
- name: id
type: keyword
description: >
ID of this state
- name: started_at
type: date
description: >
First time state with this ID was seen
- name: duration_ms
type: date
description: >
Length of time this state has existed in millis
- name: status
type: keyword
description: >
The current status, "up", "down", or "flapping" any state can change into flapping.
- name: checks
type: integer
description: total checks run
- name: up
type: integer
description: total up checks run
- name: down
type: integer
description: total down checks run
- name: flap_history
enabled: false
- name: ends
type: object
description: the state that was ended by this state
fields:
- name: id
type: integer
description: >
ID of this state
- name: started_at
type: date
description: >
First time state with this ID was seen
- name: duration_ms
type: date
description: >
Length of time this state has existed in millis
- name: status
type: keyword
description: >
The current status, "up", "down", or "flapping" any state can change into flapping.
- name: checks
type: integer
description: total checks run
- name: up
type: integer
description: total up checks run
- name: down
type: integer
description: total down checks run
2 changes: 1 addition & 1 deletion packages/synthetics/manifest.yml
Expand Up @@ -2,7 +2,7 @@ format_version: 1.0.0
name: synthetics
title: Elastic Synthetics
description: Monitor the availability of your services with Elastic Synthetics.
version: 0.10.3
version: 0.11.0
categories: ["elastic_stack", "monitoring", "web"]
release: beta
type: integration
Expand Down

0 comments on commit a691c64

Please sign in to comment.