Skip to content

Commit

Permalink
[Usage Collection] [schema] actions
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Sep 30, 2020
1 parent 1ba706c commit a55a9e5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
1 change: 0 additions & 1 deletion x-pack/.telemetryrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"output": "plugins/telemetry_collection_xpack/schema/xpack_plugins.json",
"root": "plugins/",
"exclude": [
"plugins/actions/server/usage/actions_usage_collector.ts",
"plugins/alerts/server/usage/alerts_usage_collector.ts",
"plugins/apm/server/lib/apm_telemetry/index.ts",
"plugins/infra/server/usage/usage_collector.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ export function createActionsUsageCollector(
return usageCollection.makeUsageCollector<ActionsUsage>({
type: 'actions',
isReady: () => true,
schema: {
count_total: { type: 'long' },
count_active_total: { type: 'long' },
// TODO: Find out all the possible values for DYNAMIC_KEY or reformat into an array
count_by_type: { DYNAMIC_KEY: { type: 'long' } },
count_active_by_type: { DYNAMIC_KEY: { type: 'long' } },
},
fetch: async () => {
try {
const doc = await getLatestTaskState(await taskManager);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
{
"properties": {
"actions": {
"properties": {
"count_total": {
"type": "long"
},
"count_active_total": {
"type": "long"
},
"count_by_type": {
"properties": {
"DYNAMIC_KEY": {
"type": "long"
}
}
},
"count_active_by_type": {
"properties": {
"DYNAMIC_KEY": {
"type": "long"
}
}
}
}
},
"canvas": {
"properties": {
"workpads": {
Expand Down

0 comments on commit a55a9e5

Please sign in to comment.