mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
(cherry picked from commit 06fac37832
)
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
This commit is contained in:
parent
f77d1e6c69
commit
3f636e9806
3 changed files with 5 additions and 5 deletions
|
@ -7,6 +7,6 @@
|
|||
|
||||
export const MONITOR_UPDATE_CHANNEL = 'synthetics-monitor-update';
|
||||
export const MONITOR_CURRENT_CHANNEL = 'synthetics-monitor-current';
|
||||
export const MONITOR_ERROR_EVENT_CHANNEL = 'synthetics-monitor-error-event';
|
||||
export const MONITOR_ERROR_EVENTS_CHANNEL = 'synthetics-monitor-error-events';
|
||||
export const MONITOR_SYNC_STATE_CHANNEL = 'synthetics-monitor-sync-state';
|
||||
export const MONITOR_SYNC_EVENTS_CHANNEL = 'synthetics-monitor-sync-events';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
import { ServiceLocationErrors } from '../../../../common/runtime_types/monitor_management';
|
||||
import { MONITOR_ERROR_EVENT_CHANNEL } from './constants';
|
||||
import { MONITOR_ERROR_EVENTS_CHANNEL } from './constants';
|
||||
|
||||
export interface MonitorSyncEvent {
|
||||
total: number;
|
||||
|
@ -47,7 +47,7 @@ export interface MonitorUpdateTelemetryChannelEvents {
|
|||
// channel name => event type
|
||||
'synthetics-monitor-update': MonitorUpdateEvent;
|
||||
'synthetics-monitor-current': MonitorUpdateEvent;
|
||||
[MONITOR_ERROR_EVENT_CHANNEL]: MonitorErrorEvent;
|
||||
[MONITOR_ERROR_EVENTS_CHANNEL]: MonitorErrorEvent;
|
||||
'synthetics-monitor-sync-state': MonitorSyncEvent;
|
||||
'synthetics-monitor-sync-events': MonitorSyncEvent;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ import { TelemetryEventsSender } from '../../legacy_uptime/lib/telemetry/sender'
|
|||
import {
|
||||
MONITOR_UPDATE_CHANNEL,
|
||||
MONITOR_CURRENT_CHANNEL,
|
||||
MONITOR_ERROR_EVENT_CHANNEL,
|
||||
MONITOR_ERROR_EVENTS_CHANNEL,
|
||||
MONITOR_SYNC_STATE_CHANNEL,
|
||||
MONITOR_SYNC_EVENTS_CHANNEL,
|
||||
} from '../../legacy_uptime/lib/telemetry/constants';
|
||||
|
@ -77,7 +77,7 @@ export function sendErrorTelemetryEvents(
|
|||
}
|
||||
|
||||
try {
|
||||
eventsTelemetry.queueTelemetryEvents(MONITOR_ERROR_EVENT_CHANNEL, [updateEvent]);
|
||||
eventsTelemetry.queueTelemetryEvents(MONITOR_ERROR_EVENTS_CHANNEL, [updateEvent]);
|
||||
} catch (exc) {
|
||||
logger.error(`queuing telemetry events failed ${exc}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue