@c8y/ng1-modules 1017.0.479 → 1017.0.484

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,832 +0,0 @@
1
- [{
2
- "name": "onAlarmSendSms",
3
- "label": {
4
- "input": "On alarm",
5
- "output": "send SMS",
6
- "full": "On alarm send SMS"
7
- },
8
- "description": "When alarm is received then SMS is sent",
9
- "category": "Alarms",
10
- "contexts": {
11
- "inputAlarm": {
12
- "type": "config.alarmType"
13
- }
14
- },
15
- "paramGroups": {
16
- "input": {
17
- "label": "On alarm matching:",
18
- "icon": "bell",
19
- "params": [{
20
- "label": "Alarm type",
21
- "property": "alarmType",
22
- "required": true,
23
- "type": "alarmTypeMultiple"
24
- }]
25
- },
26
- "output": {
27
- "label": "Send SMS:",
28
- "icon": "mobile",
29
- "params": [{
30
- "label": "Phone number(s)",
31
- "property": "to",
32
- "required": true,
33
- "type": "phoneNumber",
34
- "allowMultiple": true,
35
- "info": "Enter valid international phone numbers. The accepted format is +49 9 876 543 210. Separate multiple numbers with a comma."
36
- }, {
37
- "label": "Message",
38
- "property": "text",
39
- "required": true,
40
- "type": "textarea",
41
- "default": "Alarm occurred",
42
- "warnMaxLength": 160
43
- }]
44
- }
45
- },
46
- "cepModule": {
47
- "file": "smsOnAlarm.epl"
48
- }
49
- }, {
50
- "name": "onAlarmSendEmail",
51
- "label": {
52
- "input": "On alarm",
53
- "output": "send email",
54
- "full": "On alarm send email"
55
- },
56
- "description": "When alarm is received then email is sent",
57
- "category": "Alarms",
58
- "contexts": {
59
- "inputAlarm": {
60
- "type": "config.alarmType"
61
- },
62
- "outputUser": {
63
- "email": "config.to"
64
- }
65
- },
66
- "paramGroups": {
67
- "input": {
68
- "label": "On alarm matching:",
69
- "icon": "bell",
70
- "params": [{
71
- "label": "Alarm type",
72
- "property": "alarmType",
73
- "required": true,
74
- "type": "alarmTypeMultiple"
75
- }]
76
- },
77
- "output": {
78
- "label": "Send email:",
79
- "icon": "envelope",
80
- "params": [{
81
- "label": "Send to",
82
- "property": "to",
83
- "required": true,
84
- "type": "email",
85
- "allowMultiple": true
86
- }, {
87
- "label": "Send CC to",
88
- "property": "cc",
89
- "required": false,
90
- "type": "email",
91
- "allowMultiple": true
92
- }, {
93
- "label": "Send BCC to",
94
- "property": "bcc",
95
- "required": false,
96
- "type": "email",
97
- "allowMultiple": true
98
- }, {
99
- "label": "Reply to",
100
- "property": "replyTo",
101
- "required": false,
102
- "type": "email",
103
- "allowMultiple": false
104
- }, {
105
- "label": "Subject",
106
- "property": "subject",
107
- "required": true,
108
- "type": "text",
109
- "default": "New #{severity} alarm from #{source.name}",
110
- "tokens": {
111
- "#{text}": "Alarm's text",
112
- "#{severity}": "Alarm's severity",
113
- "#{source.name}": "Alarm's source name"
114
- }
115
- }, {
116
- "label": "Message",
117
- "property": "text",
118
- "required": true,
119
- "type": "textarea",
120
- "default": "New #{severity} alarm has been received from #{source.name}. Alarm text is: \"#{text}\".",
121
- "tokens": {
122
- "#{text}": "Alarm's text",
123
- "#{severity}": "Alarm's severity",
124
- "#{source.name}": "Alarm's source name"
125
- }
126
- }]
127
- }
128
- },
129
- "cepModule": {
130
- "file": "emailOnAlarm.epl"
131
- }
132
- },
133
- {
134
- "name": "onAlarmEscalateAlarm",
135
- "label": {
136
- "input": "On alarm",
137
- "output": "escalate it",
138
- "full": "On alarm escalate it"
139
- },
140
- "description": "Escalate alarm",
141
- "category": "Alarms",
142
- "contexts": {
143
- "inputAlarm": {
144
- "type": "config.alarmType"
145
- }
146
- },
147
- "paramGroups": {
148
- "input": {
149
- "label": "On alarm matching:",
150
- "icon": "bell",
151
- "colWidth": "5",
152
- "params": [{
153
- "label": "Alarm type",
154
- "property": "alarmType",
155
- "required": true,
156
- "type": "alarmTypeMultiple"
157
- }]
158
- },
159
- "output": {
160
- "label": "Escalate as follows:",
161
- "icon": "list",
162
- "colWidth": "7",
163
- "params": [{
164
- "label": "Escalation steps",
165
- "property": "subrules",
166
- "type": "escalationSteps",
167
- "required": true,
168
- "stepTypes": [{
169
- "label": "email",
170
- "icon": "envelope",
171
- "failable": false,
172
- "associatedRuleTemplateName": "onAlarmSendEmail"
173
- }, {
174
- "label": "SMS",
175
- "icon": "mobile",
176
- "failable": false,
177
- "associatedRuleTemplateName": "onAlarmSendSms"
178
- }]
179
- }]
180
- }
181
- },
182
- "cepModule": {
183
- "files": [
184
- "escalation/step_email_on_alarm.epl",
185
- "escalation/step_sms_on_alarm.epl",
186
- "escalation/steps_dispatcher.epl"
187
- ]
188
- }
189
- },
190
- {
191
- "name": "onAlarmDurationIncreaseAlarmSeverity",
192
- "label": {
193
- "input": "On alarm duration",
194
- "output": "increase severity",
195
- "full": "On alarm duration increase severity"
196
- },
197
- "description": "Increase alarm severity when active for too long",
198
- "category": "Alarms",
199
- "contexts": {
200
- "inputAlarm": {
201
- "type": "config.alarmType"
202
- }
203
- },
204
- "paramGroups": {
205
- "input": {
206
- "label": "On alarm matching:",
207
- "icon": "bell",
208
- "params": [{
209
- "label": "Alarm type",
210
- "property": "alarmType",
211
- "required": true,
212
- "type": "alarmTypeMultiple"
213
- }, {
214
- "label": "Alarm duration",
215
- "property": "duration",
216
- "required": true,
217
- "type": "timeInterval",
218
- "default": 3600,
219
- "dontUseSeconds": true
220
- }]
221
- },
222
- "output": {
223
- "label": "Increase alarm severity",
224
- "icon": "bell",
225
- "params": []
226
- }
227
- },
228
- "cepModule": {
229
- "file": "onAlarmDurationChangeAlarmSeverity.epl"
230
- }
231
- }, {
232
- "name": "onGeofenceCreateAlarm",
233
- "label": {
234
- "input": "On geofence",
235
- "output": "create alarm",
236
- "full": "On geofence create alarm"
237
- },
238
- "description": "On geofence create alarm",
239
- "category": "Geofence",
240
- "paramGroups": {
241
- "input": {
242
- "label": "On geofence violation:",
243
- "icon": "map-marker",
244
- "params": [{
245
- "label": "Geofence",
246
- "property": "geofence",
247
- "required": true,
248
- "type": "geofence"
249
- }]
250
- },
251
- "output": {
252
- "label": "Create alarm:",
253
- "icon": "bell",
254
- "params": [{
255
- "label": "Trigger on",
256
- "property": "triggerAlarmOn",
257
- "required": true,
258
- "type": "select",
259
- "options": [{
260
- "label": "On entering",
261
- "value": "entering"
262
- }, {
263
- "label": "On leaving",
264
- "value": "leaving"
265
- }, {
266
- "label": "On entering and leaving",
267
- "value": "both"
268
- }],
269
- "default": "leaving"
270
- }, {
271
- "label": "Type",
272
- "property": "alarmType",
273
- "required": true,
274
- "type": "alarmType",
275
- "default": "c8y_GeofenceAlarm"
276
- }, {
277
- "label": "Severity",
278
- "property": "alarmSeverity",
279
- "required": true,
280
- "type": "alarmSeverity",
281
- "default": "MAJOR"
282
- }, {
283
- "label": "Text",
284
- "property": "alarmText",
285
- "required": true,
286
- "type": "text",
287
- "default": "Geofence violation"
288
- }]
289
- }
290
- },
291
- "cepModule": {
292
- "file": "geofencingRule.epl"
293
- }
294
- }, {
295
- "name": "onGeofenceSendEmail",
296
- "label": {
297
- "input": "On geofence",
298
- "output": "send email",
299
- "full": "On geofence send email"
300
- },
301
- "description": "On geofence send email",
302
- "category": "Geofence",
303
- "contexts": {
304
- "outputUser": {
305
- "email": "config.to"
306
- }
307
- },
308
- "paramGroups": {
309
- "input": {
310
- "label": "On geofence violation:",
311
- "icon": "map-marker",
312
- "params": [{
313
- "label": "Geofence",
314
- "property": "geofence",
315
- "required": true,
316
- "type": "geofence"
317
- }]
318
- },
319
- "output": {
320
- "label": "Send email:",
321
- "icon": "envelope",
322
- "params": [{
323
- "label": "Send to",
324
- "property": "to",
325
- "required": true,
326
- "type": "email",
327
- "allowMultiple": true
328
- }, {
329
- "label": "Send CC to",
330
- "property": "cc",
331
- "required": false,
332
- "type": "email",
333
- "allowMultiple": true
334
- }, {
335
- "label": "Send BCC to",
336
- "property": "bcc",
337
- "required": false,
338
- "type": "email",
339
- "allowMultiple": true
340
- }, {
341
- "label": "Reply to",
342
- "property": "replyTo",
343
- "required": false,
344
- "type": "email",
345
- "allowMultiple": false
346
- }, {
347
- "label": "Subject",
348
- "property": "subject",
349
- "required": true,
350
- "type": "text",
351
- "default": "New geofence violation from #{source.name}",
352
- "tokens": {
353
- "#{source.name}": "Name of device that violated geofence"
354
- }
355
- }, {
356
- "label": "Message",
357
- "property": "text",
358
- "required": true,
359
- "type": "textarea",
360
- "default": "New geofence violation from #{source.name}",
361
- "tokens": {
362
- "#{source.name}": "Name of device that violated geofence"
363
- }
364
- }]
365
- }
366
- },
367
- "cepModule": {
368
- "file": "geofencingEmail.epl"
369
- }
370
- }, {
371
- "name": "calculateEnergyConsumption",
372
- "label": {
373
- "input": "Calculate",
374
- "output": "energy consumption",
375
- "full": "Calculate energy consumption"
376
- },
377
- "description": "Calculates energy consumption",
378
- "category": "Energy",
379
- "contexts": {
380
- "inputDataPoint": {
381
- "fragment": "config.inputFragment",
382
- "series": "config.inputSeries"
383
- }
384
- },
385
- "paramGroups": {
386
- "input": {
387
- "label": "Monitored measurement:",
388
- "icon": "tachometer",
389
- "params": [{
390
- "label": "Fragment",
391
- "property": "inputFragment",
392
- "required": true,
393
- "type": "text",
394
- "default": "c8y_EnergyCounter"
395
- }, {
396
- "label": "Series",
397
- "property": "inputSeries",
398
- "required": true,
399
- "type": "text",
400
- "default": "E"
401
- }, {
402
- "label": "Time interval",
403
- "property": "timeInterval",
404
- "required": true,
405
- "type": "timeInterval",
406
- "default": 3600
407
- }]
408
- },
409
- "output": {
410
- "label": "Energy consumption measurement:",
411
- "icon": "bar-chart",
412
- "params": [{
413
- "label": "Fragment",
414
- "property": "outputFragment",
415
- "required": true,
416
- "type": "text",
417
- "default": "c8y_EnergyConsumption"
418
- }, {
419
- "label": "Series",
420
- "property": "outputSeries",
421
- "required": true,
422
- "type": "text",
423
- "default": "E"
424
- }]
425
- }
426
- },
427
- "cepModule": {
428
- "file": "consumption.epl"
429
- }
430
- }, {
431
- "name": "onMissingMeasurementsCreateAlarm",
432
- "label": {
433
- "input": "On missing measurements",
434
- "output": "create alarm",
435
- "full": "On missing measurements create alarm"
436
- },
437
- "description": "Creates alarm when measurements are missing",
438
- "category": "Measurements",
439
- "contexts": {
440
- "inputDataPoint": {
441
- "fragment": "config.measurementType"
442
- }
443
- },
444
- "paramGroups": {
445
- "input": {
446
- "label": "Monitored measurement:",
447
- "icon": "bar-chart",
448
- "params": [{
449
- "label": "Type",
450
- "property": "measurementType",
451
- "required": true,
452
- "type": "text"
453
- }, {
454
- "label": "Time interval",
455
- "property": "timePeriod",
456
- "required": true,
457
- "type": "timeInterval",
458
- "default": 3600,
459
- "dontUseSeconds": true
460
- }]
461
- },
462
- "output": {
463
- "label": "Create alarm:",
464
- "icon": "bell",
465
- "params": [{
466
- "label": "Type",
467
- "property": "alarmType",
468
- "required": true,
469
- "type": "alarmType",
470
- "default": "c8y_MissingMeasurementsAlarm"
471
- }, {
472
- "label": "Severity",
473
- "property": "alarmSeverity",
474
- "required": true,
475
- "type": "alarmSeverity",
476
- "default": "MAJOR"
477
- }, {
478
- "label": "Text",
479
- "property": "alarmText",
480
- "required": true,
481
- "type": "text",
482
- "default": "Missing measurements of type: #{type}",
483
- "tokens": {
484
- "#{type}": "Measurement's type"
485
- }
486
- }]
487
- }
488
- },
489
- "cepModule": {
490
- "file": "alarmOnMissingMeasurement.epl"
491
- }
492
- }, {
493
- "name": "onAlarmExecuteOperation",
494
- "label": {
495
- "input": "On alarm",
496
- "output": "execute operation",
497
- "full": "On alarm execute operation"
498
- },
499
- "description": "Executes an operation when alarm is received",
500
- "category": "Alarms",
501
- "contexts": {
502
- "inputAlarm": {
503
- "type": "config.alarmType"
504
- },
505
- "outputOperation": {
506
- "template": "config.operation"
507
- }
508
- },
509
- "paramGroups": {
510
- "input": {
511
- "label": "On alarm matching:",
512
- "icon": "bell",
513
- "params": [{
514
- "label": "Type",
515
- "property": "alarmType",
516
- "required": true,
517
- "type": "alarmTypeMultiple"
518
- }]
519
- },
520
- "output": {
521
- "label": "Execute operation:",
522
- "icon": "gamepad",
523
- "params": [{
524
- "label": "Operation",
525
- "property": "operation",
526
- "required": true,
527
- "type": "operation",
528
- "default": {
529
- "description": "Restart device",
530
- "c8y_Restart": {}
531
- }
532
- }]
533
- }
534
- },
535
- "cepModule": {
536
- "file": "operationOnAlarm.epl"
537
- }
538
- }, {
539
- "name": "explicitThresholdSmartRule",
540
- "label": {
541
- "input": "On measurement explicit threshold",
542
- "output": "create alarm",
543
- "full": "On measurement explicit threshold create alarm"
544
- },
545
- "description": "Create alarm when measurement reaches explicit thresholds",
546
- "category": "Measurements",
547
- "contexts": {
548
- "inputDataPoint": {
549
- "fragment": "config.fragment",
550
- "series": "config.series",
551
- "details.redRangeMin": "config.redRangeMin",
552
- "details.redRangeMax": "config.redRangeMax"
553
- },
554
- "inputKpi": {
555
- "id": "config.kpiId"
556
- }
557
- },
558
- "paramGroups": {
559
- "input": {
560
- "label": "On threshold:",
561
- "icon": "bar-chart",
562
- "params": [{
563
- "label": "Data point",
564
- "type": "kpi",
565
- "placeholder": "Select data point to prefill inputs below",
566
- "mapSelectedKpiToProperties": {
567
- "fragment": "fragment",
568
- "series": "series",
569
- "redRangeMin": "redRangeMin",
570
- "redRangeMax": "redRangeMax"
571
- }
572
- }, {
573
- "label": "Fragment",
574
- "property": "fragment",
575
- "required": true,
576
- "type": "text"
577
- }, {
578
- "label": "Series",
579
- "property": "series",
580
- "required": true,
581
- "type": "text"
582
- }, {
583
- "label": "Red range (min)",
584
- "property": "redRangeMin",
585
- "required": true,
586
- "type": "number",
587
- "default": 90
588
- }, {
589
- "label": "Red range (max)",
590
- "property": "redRangeMax",
591
- "required": true,
592
- "type": "number",
593
- "default": 100
594
- }, {
595
- "type": "hidden",
596
- "property": "explicitVariant",
597
- "default": true
598
- }]
599
- },
600
- "output": {
601
- "label": "Create alarm:",
602
- "icon": "bell",
603
- "params": [{
604
- "label": "Type",
605
- "property": "alarmType",
606
- "required": true,
607
- "type": "alarmType",
608
- "default": "c8y_ThresholdAlarm"
609
- }, {
610
- "label": "Text",
611
- "property": "alarmText",
612
- "required": true,
613
- "type": "text",
614
- "default": "Threshold exceeded",
615
- "tokens": {
616
- "#{type}": "Alarm's type",
617
- "#{time}": "Alarm's time",
618
- "#{sourceId}": "Alarm's source id"
619
- }
620
- }]
621
- }
622
- },
623
- "cepModule": {
624
- "file": "thresholdSmartRule.epl"
625
- }
626
- }, {
627
- "name": "thresholdSmartRule",
628
- "label": {
629
- "input": "On measurement threshold",
630
- "output": "create alarm",
631
- "full": "On measurement threshold create alarm"
632
- },
633
- "info":"Note that this rule may either use a configuration from the data point library or a data point configuration. Changing the data point configuration after the creation of the rule might result in rule malfunction. Consider to use the rule \"Create alarm when measurement reaches explicit thresholds\" instead.",
634
- "description": "Creates alarms when measurement reaches thresholds",
635
- "category": "Measurements",
636
- "contexts": {
637
- "inputDataPoint": {
638
- "fragment": "config.fragment",
639
- "series": "config.series"
640
- },
641
- "inputKpi": {
642
- "id": "config.kpiId"
643
- }
644
- },
645
- "paramGroups": {
646
- "input": {
647
- "label": "On threshold:",
648
- "icon": "bar-chart",
649
- "params": [{
650
- "label": "Data point",
651
- "property": "kpiId",
652
- "required": true,
653
- "type": "kpi",
654
- "placeholder": "Select data point"
655
- }]
656
- },
657
- "output": {
658
- "label": "Create alarm:",
659
- "icon": "bell",
660
- "params": [{
661
- "label": "Type",
662
- "property": "alarmType",
663
- "required": true,
664
- "type": "alarmType",
665
- "default": "c8y_ThresholdAlarm"
666
- }, {
667
- "label": "Text",
668
- "property": "alarmText",
669
- "required": true,
670
- "type": "text",
671
- "default": "Thresholds exceeded",
672
- "tokens": {
673
- "#{type}": "Alarm's type",
674
- "#{time}": "Alarm's time",
675
- "#{sourceId}": "Alarm's source id"
676
- }
677
- }]
678
- }
679
- },
680
- "cepModule": {
681
- "file": "thresholdSmartRule.epl"
682
- }
683
- }, {
684
- "name": "sendDashboardsViaEmail",
685
- "label": {
686
- "input": "On timer",
687
- "output": "send dashboard via email",
688
- "full": "On timer send dashboard via email"
689
- },
690
- "description": "Send dashboard via email",
691
- "category": "Dashboard",
692
- "noTarget": true,
693
- "contexts": {},
694
- "hideFromList": true,
695
- "paramGroups": {
696
- "input": {
697
- "label": "Dashboard & frequency",
698
- "icon": "asterisk",
699
- "params": [{
700
- "label": "Dashboard",
701
- "property": "url",
702
- "required": true,
703
- "type": "dashboard"
704
- },{
705
- "label": "Frequency",
706
- "property": "frequency",
707
- "required": true,
708
- "type": "frequency"
709
- }]
710
- },
711
- "output": {
712
- "label": "Send email:",
713
- "icon": "envelope",
714
- "params": [{
715
- "label": "Send to",
716
- "property": "to",
717
- "required": true,
718
- "type": "email",
719
- "allowMultiple": true
720
- }, {
721
- "label": "Send CC to",
722
- "property": "cc",
723
- "required": false,
724
- "type": "email",
725
- "allowMultiple": true
726
- }, {
727
- "label": "Send BCC to",
728
- "property": "bcc",
729
- "required": false,
730
- "type": "email",
731
- "allowMultiple": true
732
- }, {
733
- "label": "Reply to",
734
- "property": "replyTo",
735
- "required": false,
736
- "type": "email",
737
- "allowMultiple": false
738
- }, {
739
- "label": "Subject",
740
- "property": "subject",
741
- "required": true,
742
- "type": "text",
743
- "default": "Print screen of dashboard"
744
- }, {
745
- "label": "Message",
746
- "property": "text",
747
- "required": true,
748
- "type": "textarea",
749
- "default": ""
750
- }]
751
- }
752
- },
753
- "cepModule": {
754
- "file": "sendDashboardInEmail.epl"
755
- }
756
- }, {
757
- "name": "sendExportViaEmail",
758
- "label": {
759
- "input": "On timer",
760
- "output": "send export via email",
761
- "full": "On timer send export via email"
762
- },
763
- "description": "Send export via email",
764
- "category": "Export",
765
- "noTarget": true,
766
- "contexts": {},
767
- "hideFromList": true,
768
- "paramGroups": {
769
- "input": {
770
- "label": "Data & frequency",
771
- "icon": "c8y-report",
772
- "params": [{
773
- "label": "Data",
774
- "property": "exportConfigurationId",
775
- "required": true,
776
- "type": "exportConfiguration"
777
- },{
778
- "label": "Frequency",
779
- "property": "frequency",
780
- "required": true,
781
- "type": "frequency",
782
- "info": "Schedule intervals need to be provided in Coordinated Universal Time (UTC)."
783
- }]
784
- },
785
- "output": {
786
- "label": "Send email:",
787
- "icon": "envelope",
788
- "info": "Note that exporting data can take some time, email will be sent as soon as export is completed.",
789
- "params": [{
790
- "label": "Send to",
791
- "property": "to",
792
- "required": true,
793
- "type": "email",
794
- "allowMultiple": true
795
- }, {
796
- "label": "Send CC to",
797
- "property": "cc",
798
- "required": false,
799
- "type": "email",
800
- "allowMultiple": true
801
- }, {
802
- "label": "Send BCC to",
803
- "property": "bcc",
804
- "required": false,
805
- "type": "email",
806
- "allowMultiple": true
807
- }, {
808
- "label": "Reply to",
809
- "property": "replyTo",
810
- "required": false,
811
- "type": "email",
812
- "allowMultiple": false
813
- }, {
814
- "label": "Subject",
815
- "property": "subject",
816
- "required": true,
817
- "type": "text",
818
- "default": "Export data"
819
- }, {
820
- "label": "Message",
821
- "property": "text",
822
- "required": true,
823
- "type": "textarea",
824
- "info": "Available placeholders: {tenant-domain}, {host}, {binaryId}. Whole link to downloadable file is: {tenant-domain}/inventory/binaries/{binaryId}.",
825
- "default": "File with exported data can be downloaded from {tenant-domain}/inventory/binaries/{binaryId}."
826
- }]
827
- }
828
- },
829
- "cepModule": {
830
- "file": "sendExportViaEmail.epl"
831
- }
832
- }]