We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900e3e9 commit 171f77aCopy full SHA for 171f77a
Core ServiceNow APIs/GlideAggregate/Incident resolution percentile by assignment group/example_background_usage.js
@@ -0,0 +1,13 @@
1
+// Background Script: example usage for PercentileMetrics
2
+(function() {
3
+ var util = new PercentileMetrics();
4
+ var out = util.resolutionPercentiles({
5
+ windowDays: 30,
6
+ groupField: 'assignment_group',
7
+ percentiles: [0.5, 0.9, 0.95]
8
+ });
9
+
10
+ out.forEach(function(r) {
11
+ gs.info('Group=' + r.group + ' count=' + r.count + ' avg=' + r.avgMins + 'm P50=' + r.p['0.5'] + 'm P90=' + r.p['0.9'] + 'm P95=' + r.p['0.95'] + 'm');
12
13
+})();
0 commit comments