Skip to content

Commit af3b01c

Browse files
christinewenggsoldevilakibanamachine
authored
[Cases] Add observables telemetry (#238755)
## Summary Dependency: #239636 and #241388 to be merged first This PR added telemetry for cases, namely: - observables: - total: total number of observables - auto: - default: number of automatically extracted observables of default type (kibana provided) - custom: number of automatically extracted observables of custom type (user created) - manual: - default: number of manually added observables of default type - custom: number of manually added observables of custom type - totalWithMaxObservables: number of cases with maximum (50) observables - extractObservablesOn: number of cases with auto-extract on - extractObservablesOff: number of cases with auto-extract off ### Checklist - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. --------- Co-authored-by: Gerard Soldevila <[email protected]> Co-authored-by: kibanamachine <[email protected]>
1 parent 5ed1b67 commit af3b01c

File tree

14 files changed

+1026
-8
lines changed

14 files changed

+1026
-8
lines changed

x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3512,6 +3512,66 @@
35123512
"syncAlertsOff": {
35133513
"type": "long"
35143514
},
3515+
"extractObservablesOn": {
3516+
"type": "long",
3517+
"_meta": {
3518+
"description": "Automatically extract observables setting enabled"
3519+
}
3520+
},
3521+
"extractObservablesOff": {
3522+
"type": "long",
3523+
"_meta": {
3524+
"description": "Automatically extract observables setting disabled"
3525+
}
3526+
},
3527+
"observables": {
3528+
"properties": {
3529+
"auto": {
3530+
"properties": {
3531+
"default": {
3532+
"type": "long",
3533+
"_meta": {
3534+
"description": "Number of default type observables automatically extracted"
3535+
}
3536+
},
3537+
"custom": {
3538+
"type": "long",
3539+
"_meta": {
3540+
"description": "Number of custom type observables automatically extracted"
3541+
}
3542+
}
3543+
}
3544+
},
3545+
"manual": {
3546+
"properties": {
3547+
"default": {
3548+
"type": "long",
3549+
"_meta": {
3550+
"description": "Number of default type observables manually added"
3551+
}
3552+
},
3553+
"custom": {
3554+
"type": "long",
3555+
"_meta": {
3556+
"description": "Number of custom type observables manually added"
3557+
}
3558+
}
3559+
}
3560+
},
3561+
"total": {
3562+
"type": "long",
3563+
"_meta": {
3564+
"description": "Total number of observables"
3565+
}
3566+
}
3567+
}
3568+
},
3569+
"totalWithMaxObservables": {
3570+
"type": "long",
3571+
"_meta": {
3572+
"description": "Number of cases with maximum observables"
3573+
}
3574+
},
35153575
"totalUsers": {
35163576
"type": "long"
35173577
},
@@ -3655,6 +3715,54 @@
36553715
"type": "long"
36563716
}
36573717
}
3718+
},
3719+
"observables": {
3720+
"properties": {
3721+
"auto": {
3722+
"properties": {
3723+
"default": {
3724+
"type": "long",
3725+
"_meta": {
3726+
"description": "Number of default type observables automatically extracted"
3727+
}
3728+
},
3729+
"custom": {
3730+
"type": "long",
3731+
"_meta": {
3732+
"description": "Number of custom type observables automatically extracted"
3733+
}
3734+
}
3735+
}
3736+
},
3737+
"manual": {
3738+
"properties": {
3739+
"default": {
3740+
"type": "long",
3741+
"_meta": {
3742+
"description": "Number of default type observables manually added"
3743+
}
3744+
},
3745+
"custom": {
3746+
"type": "long",
3747+
"_meta": {
3748+
"description": "Number of custom type observables manually added"
3749+
}
3750+
}
3751+
}
3752+
},
3753+
"total": {
3754+
"type": "long",
3755+
"_meta": {
3756+
"description": "Total number of observables"
3757+
}
3758+
}
3759+
}
3760+
},
3761+
"totalWithMaxObservables": {
3762+
"type": "long",
3763+
"_meta": {
3764+
"description": "Number of cases with maximum observables"
3765+
}
36583766
}
36593767
}
36603768
},
@@ -3771,6 +3879,54 @@
37713879
"type": "long"
37723880
}
37733881
}
3882+
},
3883+
"observables": {
3884+
"properties": {
3885+
"auto": {
3886+
"properties": {
3887+
"default": {
3888+
"type": "long",
3889+
"_meta": {
3890+
"description": "Number of default type observables automatically extracted"
3891+
}
3892+
},
3893+
"custom": {
3894+
"type": "long",
3895+
"_meta": {
3896+
"description": "Number of custom type observables automatically extracted"
3897+
}
3898+
}
3899+
}
3900+
},
3901+
"manual": {
3902+
"properties": {
3903+
"default": {
3904+
"type": "long",
3905+
"_meta": {
3906+
"description": "Number of default type observables manually added"
3907+
}
3908+
},
3909+
"custom": {
3910+
"type": "long",
3911+
"_meta": {
3912+
"description": "Number of custom type observables manually added"
3913+
}
3914+
}
3915+
}
3916+
},
3917+
"total": {
3918+
"type": "long",
3919+
"_meta": {
3920+
"description": "Total number of observables"
3921+
}
3922+
}
3923+
}
3924+
},
3925+
"totalWithMaxObservables": {
3926+
"type": "long",
3927+
"_meta": {
3928+
"description": "Number of cases with maximum observables"
3929+
}
37743930
}
37753931
}
37763932
},
@@ -3887,6 +4043,54 @@
38874043
"type": "long"
38884044
}
38894045
}
4046+
},
4047+
"observables": {
4048+
"properties": {
4049+
"auto": {
4050+
"properties": {
4051+
"default": {
4052+
"type": "long",
4053+
"_meta": {
4054+
"description": "Number of default type observables automatically extracted"
4055+
}
4056+
},
4057+
"custom": {
4058+
"type": "long",
4059+
"_meta": {
4060+
"description": "Number of custom type observables automatically extracted"
4061+
}
4062+
}
4063+
}
4064+
},
4065+
"manual": {
4066+
"properties": {
4067+
"default": {
4068+
"type": "long",
4069+
"_meta": {
4070+
"description": "Number of default type observables manually added"
4071+
}
4072+
},
4073+
"custom": {
4074+
"type": "long",
4075+
"_meta": {
4076+
"description": "Number of custom type observables manually added"
4077+
}
4078+
}
4079+
}
4080+
},
4081+
"total": {
4082+
"type": "long",
4083+
"_meta": {
4084+
"description": "Total number of observables"
4085+
}
4086+
}
4087+
}
4088+
},
4089+
"totalWithMaxObservables": {
4090+
"type": "long",
4091+
"_meta": {
4092+
"description": "Number of cases with maximum observables"
4093+
}
38904094
}
38914095
}
38924096
}

0 commit comments

Comments
 (0)