Skip to content

Commit

Permalink
Adding descriptions to new telemetry fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Apr 14, 2021
1 parent e79e335 commit 3b41bbf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 10 additions & 2 deletions x-pack/plugins/actions/server/usage/actions_usage_collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,18 @@ export function createActionsUsageCollector(
return true;
},
schema: {
alert_history_connector_enabled: { type: 'boolean' },
alert_history_connector_enabled: {
type: 'boolean',
_meta: { description: 'Indicates if preconfigured alert history connector is enabled.' },
},
count_total: { type: 'long' },
count_active_total: { type: 'long' },
count_active_alert_history_connectors: { type: 'long' },
count_active_alert_history_connectors: {
type: 'long',
_meta: {
description: 'The total number of preconfigured alert history connectors used by rules.',
},
},
count_by_type: byTypeSchema,
count_active_by_type: byTypeSchema,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"actions": {
"properties": {
"alert_history_connector_enabled": {
"type": "boolean"
"type": "boolean",
"_meta": {
"description": "Indicates if preconfigured alert history connector is enabled."
}
},
"count_total": {
"type": "long"
Expand All @@ -12,7 +15,10 @@
"type": "long"
},
"count_active_alert_history_connectors": {
"type": "long"
"type": "long",
"_meta": {
"description": "The total number of preconfigured alert history connectors used by rules."
}
},
"count_by_type": {
"properties": {
Expand Down

0 comments on commit 3b41bbf

Please sign in to comment.