aboutsummaryrefslogtreecommitdiffstats
path: root/dcae-analytics-cdap-plugins/piplelines/SimpleTCAPipeline.json
blob: 7f2ec7240209ba95f5a1737b02c92efb1fe88383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
{
  "artifact": {
    "name": "cdap-data-streams",
    "version": "4.0.0",
    "scope": "SYSTEM",
    "label": "Data Pipeline - Realtime"
  },
  "__ui__": {
    "nodes": [
      {
        "plugin": {
          "label": "DMaaPMRSink",
          "artifact": {
            "name": "dcae-analytics-cdap-plugins",
            "version": "3.0-SNAPSHOT",
            "scope": "USER"
          },
          "name": "DMaaPMRSink",
          "properties": {
            "referenceName": "DMaaPMRSink",
            "hostName": "zldcmtc1njmsrt00.homer.com",
            "portNumber": "3905",
            "topicName": "com.dcae.dmaap.FTL.DcaeTestVESPub",
            "protocol": "https",
            "userName": "USER",
            "userPassword": "PASSWORD",
            "contentType": "application/json",
            "messageColumnName": "alert",
            "maxBatchSize": "50"
          }
        },
        "icon": "fa-plug",
        "description": "A batch sink Plugin that publishes messages to DMaaP MR Topic.",
        "type": "batchsink",
        "warning": true,
        "_uiPosition": {
          "top": "230.9921875px",
          "left": "1212px"
        },
        "name": "DMaaPMRSink",
        "errorCount": 0,
        "_backendProperties": {
          "portNumber": {
            "name": "portNumber",
            "description": "DMaaP Message Router Host Port number. Defaults to Port 80",
            "type": "int",
            "required": false,
            "macroSupported": true
          },
          "protocol": {
            "name": "protocol",
            "description": "DMaaP Message Router HTTP Protocol e.g. HTTP or HTTPS. Defaults to HTTPS",
            "type": "string",
            "required": false,
            "macroSupported": true
          },
          "userPassword": {
            "name": "userPassword",
            "description": "DMaaP Message Router User Password used for AAF Authentication. Defaults to no authentication",
            "type": "string",
            "required": false,
            "macroSupported": true
          },
          "userName": {
            "name": "userName",
            "description": "DMaaP Message Router User Name used for AAF Authentication. Defaults to no authentication",
            "type": "string",
            "required": false,
            "macroSupported": true
          },
          "hostName": {
            "name": "hostName",
            "description": "DMaaP Message Router HostName",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "messageColumnName": {
            "name": "messageColumnName",
            "description": "Column name of input schema which contains the message that needs to be written to DMaaP MR Topic",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "contentType": {
            "name": "contentType",
            "description": "DMaaP Message Router Content Type. Defaults to 'application/json'",
            "type": "string",
            "required": false,
            "macroSupported": true
          },
          "maxRecoveryQueueSize": {
            "name": "maxRecoveryQueueSize",
            "description": "DMaaP MR Publisher Recovery Queue Size. Default to 1000K messages which can be buffered in memory in case DMaaP MR Publisher is temporarily unavailable",
            "type": "int",
            "required": false,
            "macroSupported": true
          },
          "referenceName": {
            "name": "referenceName",
            "description": "This will be used to uniquely identify this source/sink for lineage, annotating metadata, etc.",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "topicName": {
            "name": "topicName",
            "description": "DMaaP Message Router Topic Name",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "maxBatchSize": {
            "name": "maxBatchSize",
            "description": "DMaaP MR Publisher Max Batch Size. Defaults to no Batch",
            "type": "int",
            "required": false,
            "macroSupported": true
          }
        },
        "implicitSchema": null,
        "outputSchemaProperty": null,
        "selected": false,
        "inputSchema": [
          {
            "name": "JavaScript2",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":\"string\"},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}"
          }
        ],
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":\"string\"},{\"name\":\"tacMessageType\",\"type\":\"string\"}]}"
      },
      {
        "plugin": {
          "label": "DMaaPMRSource",
          "artifact": {
            "name": "dcae-analytics-cdap-plugins",
            "version": "3.0-SNAPSHOT",
            "scope": "USER"
          },
          "name": "DMaaPMRSource",
          "properties": {
            "referenceName": "DMaaPMRSource",
            "hostName": "zldcmtc1njmsrt00.homer.com",
            "portNumber": "3905",
            "topicName": "com.dcae.dmaap.FTL.DcaeTestVESSub",
            "pollingInterval": "20000",
            "protocol": "https",
            "userName": "USER",
            "userPassword": "PASSWORD",
            "contentType": "application/json",
            "consumerId": "C1",
            "consumerGroup": "OpenDCAE-G1"
          }
        },
        "icon": "fa-plug",
        "description": "Fetches DMaaP MR Messages at regular intervals",
        "type": "streamingsource",
        "warning": true,
        "_uiPosition": {
          "top": "230.9921875px",
          "left": "318px"
        },
        "name": "DMaaPMRSource",
        "errorCount": 0,
        "_backendProperties": {
          "portNumber": {
            "name": "portNumber",
            "description": "DMaaP Message Router Host Port number. Defaults to Port 80",
            "type": "int",
            "required": false,
            "macroSupported": true
          },
          "protocol": {
            "name": "protocol",
            "description": "DMaaP Message Router HTTP Protocol e.g. HTTP or HTTPS. Defaults to HTTPS",
            "type": "string",
            "required": false,
            "macroSupported": true
          },
          "timeoutMS": {
            "name": "timeoutMS",
            "description": "DMaaP Message Router Subscriber Timeout in MS. Defaults to no timeout",
            "type": "int",
            "required": false,
            "macroSupported": true
          },
          "consumerGroup": {
            "name": "consumerGroup",
            "description": "DMaaP Message Router Subscriber Consumer Group. Defaults to some randomly created user Group",
            "type": "string",
            "required": false,
            "macroSupported": true
          },
          "userPassword": {
            "name": "userPassword",
            "description": "DMaaP Message Router User Password used for AAF Authentication. Defaults to no authentication",
            "type": "string",
            "required": false,
            "macroSupported": true
          },
          "userName": {
            "name": "userName",
            "description": "DMaaP Message Router User Name used for AAF Authentication. Defaults to no authentication",
            "type": "string",
            "required": false,
            "macroSupported": true
          },
          "hostName": {
            "name": "hostName",
            "description": "DMaaP Message Router HostName",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "pollingInterval": {
            "name": "pollingInterval",
            "description": "DMaaP MR Polling Interval in MS",
            "type": "int",
            "required": true,
            "macroSupported": true
          },
          "contentType": {
            "name": "contentType",
            "description": "DMaaP Message Router Content Type. Defaults to 'application/json'",
            "type": "string",
            "required": false,
            "macroSupported": true
          },
          "referenceName": {
            "name": "referenceName",
            "description": "This will be used to uniquely identify this source/sink for lineage, annotating metadata, etc.",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "topicName": {
            "name": "topicName",
            "description": "DMaaP Message Router Topic Name",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "messageLimit": {
            "name": "messageLimit",
            "description": "DMaaP Message Router Subscriber Message Limit. Defaults to no message limit",
            "type": "int",
            "required": false,
            "macroSupported": true
          },
          "consumerId": {
            "name": "consumerId",
            "description": "DMaaP Message Router Subscriber Consumer ID. Defaults to some randomly created userID",
            "type": "string",
            "required": false,
            "macroSupported": true
          }
        },
        "implicitSchema": {
          "ts": "long",
          "responseCode": "int",
          "responseMessage": "string",
          "message": "string"
        },
        "outputSchemaProperty": null,
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}",
        "selected": false
      },
      {
        "plugin": {
          "label": "JsonPathFilter",
          "artifact": {
            "name": "dcae-analytics-cdap-plugins",
            "version": "3.0-SNAPSHOT",
            "scope": "USER"
          },
          "name": "JsonPathFilter",
          "properties": {
            "referenceName": "JsonPathFilter",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}",
            "jsonFilterMappings": "$.event.commonEventHeader.domain:measurementsForVfScaling,$.event.commonEventHeader.functionalRole:vLoadBalancer;vFirewall",
            "incomingJsonFieldName": "message",
            "outputSchemaFieldName": "filterMatched"
          }
        },
        "icon": "fa-plug",
        "description": "Filters incoming schema field based of given json path expected values",
        "type": "transform",
        "warning": true,
        "_uiPosition": {
          "top": "230.9921875px",
          "left": "474px"
        },
        "name": "JsonPathFilter",
        "errorCount": 0,
        "_backendProperties": {
          "schema": {
            "name": "schema",
            "description": "Output Schema",
            "type": "string",
            "required": true,
            "macroSupported": false
          },
          "incomingJsonFieldName": {
            "name": "incomingJsonFieldName",
            "description": "Input schema field name that contain JSON used for filtering",
            "type": "string",
            "required": true,
            "macroSupported": false
          },
          "outputSchemaFieldName": {
            "name": "outputSchemaFieldName",
            "description": "Name of the nullable boolean schema field name that will contain result of the filter matching",
            "type": "string",
            "required": true,
            "macroSupported": false
          },
          "jsonFilterMappings": {
            "name": "jsonFilterMappings",
            "description": "Filters incoming JSON based on given filter mappings - in terms of JSON path and expected values.Right hand side contains JSON path. Left hand side contains semicolon (';') separated expected values for that JSON Path. If all provided JSON Path mappings and corresponding values matches - output schema field will be marked as true",
            "type": "string",
            "required": true,
            "macroSupported": false
          },
          "referenceName": {
            "name": "referenceName",
            "description": "This will be used to uniquely identify this source/sink for lineage, annotating metadata, etc.",
            "type": "string",
            "required": true,
            "macroSupported": true
          }
        },
        "implicitSchema": null,
        "outputSchemaProperty": "schema",
        "watchProperty": "format",
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}",
        "selected": false,
        "inputSchema": [
          {
            "name": "DMaaPMRSource",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}"
          }
        ]
      },
      {
        "plugin": {
          "label": "JavaScriptJsonPathFilter",
          "artifact": {
            "name": "core-plugins",
            "version": "1.5.0",
            "scope": "SYSTEM"
          },
          "name": "JavaScript",
          "properties": {
            "script": "function transform(input, emitter, context) {\n  \n  var filterMatched = input.filterMatched;\n  var log = context.getLogger();\n  var metrics = context.getMetrics();\n  \n  log.debug('Received filterMatched: ' + filterMatched);\n  \n  // if matched filter push message for TCA\n  if(filterMatched) {\n    \n    log.debug('Json Filter matched - pushing to TCA');\n    metrics.count('js.tca.pushed', 1);\n    emitter.emit(input);\n    \n   \n   // if matched unsuccessfull - no need to do TCA\n  } else {\n    \n    log.debug('Json Filter unmatched - dropping message');\n    metrics.count('js.tca.dropped', 1); \n\n  }\n  \n  \n}",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}"
          }
        },
        "icon": "icon-javascript",
        "description": "Executes user-provided JavaScript that transforms one record into zero or more records.",
        "type": "transform",
        "warning": true,
        "_uiPosition": {
          "top": "230.9921875px",
          "left": "642px"
        },
        "name": "JavaScriptJsonPathFilter",
        "errorCount": 0,
        "_backendProperties": {
          "schema": {
            "name": "schema",
            "description": "The schema of output objects. If no schema is given, it is assumed that the output schema is the same as the input schema.",
            "type": "string",
            "required": false,
            "macroSupported": false
          },
          "script": {
            "name": "script",
            "description": "JavaScript defining how to transform input record into zero or more records. The script must implement a function called 'transform', which takes as input a JSON object (representing the input record) emitter object, which can be used to emit records and error messagesand a context object (which contains CDAP metrics, logger and lookup)For example:\n'function transform(input, emitter, context) {\n  if(context.getLookup('blacklist').lookup(input.id) != null) {\n     emitter.emitError({\"errorCode\":31, \"errorMsg\":\"blacklisted id\", \"invalidRecord\": input}); \n  } else {\n     if(input.count < 0) {\n       context.getMetrics().count(\"negative.count\", 1);\n       context.getLogger().debug(\"Received record with negative count\");\n     }\n  input.count = input.count * 1024;\n  emitter.emit(input);   } \n}'\nwill emit an error if the input id is present in blacklist table, else scale the 'count' field by 1024",
            "type": "string",
            "required": true,
            "macroSupported": false
          },
          "lookup": {
            "name": "lookup",
            "description": "Lookup tables to use during transform. Currently supports KeyValueTable.",
            "type": "string",
            "required": false,
            "macroSupported": false
          }
        },
        "implicitSchema": null,
        "outputSchemaProperty": "schema",
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}",
        "selected": false,
        "inputSchema": [
          {
            "name": "JsonPathFilter",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}"
          }
        ],
        "errorDatasetName": ""
      },
      {
        "plugin": {
          "label": "SimpleTCAPlugin",
          "artifact": {
            "name": "dcae-analytics-cdap-plugins",
            "version": "3.0-SNAPSHOT",
            "scope": "USER"
          },
          "name": "SimpleTCAPlugin",
          "properties": {
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}",
            "policyJson": "{\"domain\":\"measurementsForVfScaling\",\"metricsPerFunctionalRole\":[{\"functionalRole\":\"vFirewall\",\"policyScope\":\"resource=vFirewall;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].bytesIn\",\"thresholdValue\":4000,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"},{\"closedLoopControlName\":\"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].bytesIn\",\"thresholdValue\":20000,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\"}]},{\"functionalRole\":\"vLoadBalancer\",\"policyScope\":\"resource=vLoadBalancer;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].packetsIn\",\"thresholdValue\":500,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"},{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].packetsIn\",\"thresholdValue\":5000,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\"}]}]}",
            "vesMessageFieldName": "message",
            "alertFieldName": "alert",
            "messageTypeFieldName": "tcaMessageType",
            "referenceName": "SimpleTCAPlugin",
            "enableAlertCEFFormat": "false"
          }
        },
        "icon": "fa-plug",
        "description": "Used to create TCA (Threshold Crossing Alert) based on given Policy",
        "type": "sparkcompute",
        "warning": true,
        "_uiPosition": {
          "top": "230.9921875px",
          "left": "824px"
        },
        "name": "SimpleTCAPlugin",
        "errorCount": 0,
        "_backendProperties": {
          "schema": {
            "name": "schema",
            "description": "Specifies the output schema",
            "type": "string",
            "required": true,
            "macroSupported": false
          },
          "policyJson": {
            "name": "policyJson",
            "description": "Policy JSON that need to be applied to VES Message",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "vesMessageFieldName": {
            "name": "vesMessageFieldName",
            "description": "Field name containing VES Message",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "referenceName": {
            "name": "referenceName",
            "description": "This will be used to uniquely identify this source/sink for lineage, annotating metadata, etc.",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "messageTypeFieldName": {
            "name": "messageTypeFieldName",
            "description": "Name of the output field that will contain message type: INAPPLICABLE, COMPLIANT, NON_COMPLIANT",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "alertFieldName": {
            "name": "alertFieldName",
            "description": "Name of the output field that will contain the alert",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "enableAlertCEFFormat": {
            "name": "enableAlertCEFFormat",
            "description": "Enable Alert Output Format in CEF format",
            "type": "string",
            "required": false,
            "macroSupported": true
          }
        },
        "implicitSchema": null,
        "outputSchemaProperty": "schema",
        "watchProperty": "format",
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}",
        "selected": false,
        "inputSchema": [
          {
            "name": "JavaScriptJsonPathFilter",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}"
          }
        ]
      },
      {
        "plugin": {
          "label": "TCAMessageStatusTable",
          "artifact": {
            "name": "core-plugins",
            "version": "1.5.0",
            "scope": "SYSTEM"
          },
          "name": "Table",
          "properties": {
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}",
            "name": "TCAMessageStatusTable",
            "schema.row.field": "ts"
          }
        },
        "icon": "icon-table",
        "description": "Writes records to a Table with one record field mapping to the Table rowkey, and all other record fields mapping to Table columns.",
        "type": "batchsink",
        "warning": true,
        "_uiPosition": {
          "top": "416.9921875px",
          "left": "956px"
        },
        "name": "TCAMessageStatusTable",
        "errorCount": 0,
        "_backendProperties": {
          "schema": {
            "name": "schema",
            "description": "schema of the table as a JSON Object. If the table does not already exist, one will be created with this schema, which will allow the table to be explored through Hive. If no schema is given, the table created will not be explorable.",
            "type": "string",
            "required": false,
            "macroSupported": false
          },
          "name": {
            "name": "name",
            "description": "Name of the dataset. If the dataset does not already exist, one will be created.",
            "type": "string",
            "required": true,
            "macroSupported": true
          },
          "schema.row.field": {
            "name": "schema.row.field",
            "description": "The name of the record field that should be used as the row key when writing to the table.",
            "type": "string",
            "required": true,
            "macroSupported": false
          }
        },
        "implicitSchema": null,
        "outputSchemaProperty": "schema",
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}",
        "selected": false,
        "inputSchema": [
          {
            "name": "SimpleTCAPlugin",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}"
          }
        ]
      },
      {
        "plugin": {
          "label": "JavaScript2",
          "artifact": {
            "name": "core-plugins",
            "version": "1.5.0",
            "scope": "SYSTEM"
          },
          "name": "JavaScript",
          "properties": {
            "script": "function transform(input, emitter, context) {\n  \n  var alert = input.alert;\n  var log = context.getLogger();\n  var metrics = context.getMetrics();\n  \n  log.debug('Received alert: ' + alert)\n  \n  \n  // if alert is null then drop the message\n  if(alert == null) {\n    \n    log.debug('No Alert Found - Dropping incoming record');\n    metrics.count('js.alerts.dropped', 1);\n  \n    \n  // if alert is not null push message to next plugin\n  } else {\n    \n    log.debug('Found Alert - Pushing record to next Plugin');\n    metrics.count('js.alerts.pushed', 1);\n  \n    emitter.emit(input);\n\n  }\n  \n}",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":\"string\"},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}"
          }
        },
        "icon": "icon-javascript",
        "description": "Executes user-provided JavaScript that transforms one record into zero or more records.",
        "type": "transform",
        "warning": true,
        "_uiPosition": {
          "top": "230.9921875px",
          "left": "1030px"
        },
        "name": "JavaScript2",
        "errorCount": 0,
        "_backendProperties": {
          "schema": {
            "name": "schema",
            "description": "The schema of output objects. If no schema is given, it is assumed that the output schema is the same as the input schema.",
            "type": "string",
            "required": false,
            "macroSupported": false
          },
          "script": {
            "name": "script",
            "description": "JavaScript defining how to transform input record into zero or more records. The script must implement a function called 'transform', which takes as input a JSON object (representing the input record) emitter object, which can be used to emit records and error messagesand a context object (which contains CDAP metrics, logger and lookup)For example:\n'function transform(input, emitter, context) {\n  if(context.getLookup('blacklist').lookup(input.id) != null) {\n     emitter.emitError({\"errorCode\":31, \"errorMsg\":\"blacklisted id\", \"invalidRecord\": input}); \n  } else {\n     if(input.count < 0) {\n       context.getMetrics().count(\"negative.count\", 1);\n       context.getLogger().debug(\"Received record with negative count\");\n     }\n  input.count = input.count * 1024;\n  emitter.emit(input);   } \n}'\nwill emit an error if the input id is present in blacklist table, else scale the 'count' field by 1024",
            "type": "string",
            "required": true,
            "macroSupported": false
          },
          "lookup": {
            "name": "lookup",
            "description": "Lookup tables to use during transform. Currently supports KeyValueTable.",
            "type": "string",
            "required": false,
            "macroSupported": false
          }
        },
        "implicitSchema": null,
        "outputSchemaProperty": "schema",
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":\"string\"},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}",
        "selected": false,
        "inputSchema": [
          {
            "name": "SimpleTCAPlugin",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}"
          }
        ],
        "errorDatasetName": ""
      }
    ],
    "draftId": "26c03fab-253e-42f3-94e8-575dc1501036"
  },
  "description": "",
  "name": "SimpleTCAPluginFullPipeLine",
  "config": {
    "resources": {
      "memoryMB": 1024,
      "virtualCores": 1
    },
    "driverResources": {
      "memoryMB": 1024,
      "virtualCores": 1
    },
    "connections": [
      {
        "from": "DMaaPMRSource",
        "to": "JsonPathFilter"
      },
      {
        "from": "JsonPathFilter",
        "to": "JavaScriptJsonPathFilter"
      },
      {
        "from": "JavaScriptJsonPathFilter",
        "to": "SimpleTCAPlugin"
      },
      {
        "from": "SimpleTCAPlugin",
        "to": "TCAMessageStatusTable"
      },
      {
        "from": "SimpleTCAPlugin",
        "to": "JavaScript2"
      },
      {
        "from": "JavaScript2",
        "to": "DMaaPMRSink"
      }
    ],
    "comments": [],
    "postActions": [],
    "stages": [
      {
        "name": "DMaaPMRSource",
        "plugin": {
          "name": "DMaaPMRSource",
          "type": "streamingsource",
          "label": "DMaaPMRSource",
          "artifact": {
            "name": "dcae-analytics-cdap-plugins",
            "version": "3.0-SNAPSHOT",
            "scope": "USER"
          },
          "properties": {
            "referenceName": "DMaaPMRSource",
            "hostName": "zldcmtc1njmsrt00.homer.com",
            "portNumber": "3905",
            "topicName": "com.dcae.dmaap.FTL.DcaeTestVESSub",
            "pollingInterval": "20000",
            "protocol": "https",
            "userName": "USER",
            "userPassword": "PASSWORD",
            "contentType": "application/json",
            "consumerId": "C1",
            "consumerGroup": "OpenDCAE-G1"
          }
        },
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}"
      },
      {
        "name": "JsonPathFilter",
        "plugin": {
          "name": "JsonPathFilter",
          "type": "transform",
          "label": "JsonPathFilter",
          "artifact": {
            "name": "dcae-analytics-cdap-plugins",
            "version": "3.0-SNAPSHOT",
            "scope": "USER"
          },
          "properties": {
            "referenceName": "JsonPathFilter",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}",
            "jsonFilterMappings": "$.event.commonEventHeader.domain:measurementsForVfScaling,$.event.commonEventHeader.functionalRole:vLoadBalancer;vFirewall",
            "incomingJsonFieldName": "message",
            "outputSchemaFieldName": "filterMatched"
          }
        },
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}",
        "inputSchema": [
          {
            "name": "DMaaPMRSource",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}"
          }
        ]
      },
      {
        "name": "JavaScriptJsonPathFilter",
        "plugin": {
          "name": "JavaScript",
          "type": "transform",
          "label": "JavaScriptJsonPathFilter",
          "artifact": {
            "name": "core-plugins",
            "version": "1.5.0",
            "scope": "SYSTEM"
          },
          "properties": {
            "script": "function transform(input, emitter, context) {\n  \n  var filterMatched = input.filterMatched;\n  var log = context.getLogger();\n  var metrics = context.getMetrics();\n  \n  log.debug('Received filterMatched: ' + filterMatched);\n  \n  // if matched filter push message for TCA\n  if(filterMatched) {\n    \n    log.debug('Json Filter matched - pushing to TCA');\n    metrics.count('js.tca.pushed', 1);\n    emitter.emit(input);\n    \n   \n   // if matched unsuccessfull - no need to do TCA\n  } else {\n    \n    log.debug('Json Filter unmatched - dropping message');\n    metrics.count('js.tca.dropped', 1); \n\n  }\n  \n  \n}",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}"
          }
        },
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}",
        "inputSchema": [
          {
            "name": "JsonPathFilter",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}"
          }
        ]
      },
      {
        "name": "SimpleTCAPlugin",
        "plugin": {
          "name": "SimpleTCAPlugin",
          "type": "sparkcompute",
          "label": "SimpleTCAPlugin",
          "artifact": {
            "name": "dcae-analytics-cdap-plugins",
            "version": "3.0-SNAPSHOT",
            "scope": "USER"
          },
          "properties": {
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}",
            "policyJson": "{\"domain\":\"measurementsForVfScaling\",\"metricsPerFunctionalRole\":[{\"functionalRole\":\"vFirewall\",\"policyScope\":\"resource=vFirewall;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].bytesIn\",\"thresholdValue\":4000,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"},{\"closedLoopControlName\":\"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].bytesIn\",\"thresholdValue\":20000,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\"}]},{\"functionalRole\":\"vLoadBalancer\",\"policyScope\":\"resource=vLoadBalancer;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].packetsIn\",\"thresholdValue\":500,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"},{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].packetsIn\",\"thresholdValue\":5000,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\"}]}]}",
            "vesMessageFieldName": "message",
            "alertFieldName": "alert",
            "messageTypeFieldName": "tcaMessageType",
            "referenceName": "SimpleTCAPlugin",
            "enableAlertCEFFormat": "false"
          }
        },
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}",
        "inputSchema": [
          {
            "name": "JavaScriptJsonPathFilter",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"}]}"
          }
        ]
      },
      {
        "name": "TCAMessageStatusTable",
        "plugin": {
          "name": "Table",
          "type": "batchsink",
          "label": "TCAMessageStatusTable",
          "artifact": {
            "name": "core-plugins",
            "version": "1.5.0",
            "scope": "SYSTEM"
          },
          "properties": {
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}",
            "name": "TCAMessageStatusTable",
            "schema.row.field": "ts"
          }
        },
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}",
        "inputSchema": [
          {
            "name": "SimpleTCAPlugin",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}"
          }
        ]
      },
      {
        "name": "JavaScript2",
        "plugin": {
          "name": "JavaScript",
          "type": "transform",
          "label": "JavaScript2",
          "artifact": {
            "name": "core-plugins",
            "version": "1.5.0",
            "scope": "SYSTEM"
          },
          "properties": {
            "script": "function transform(input, emitter, context) {\n  \n  var alert = input.alert;\n  var log = context.getLogger();\n  var metrics = context.getMetrics();\n  \n  log.debug('Received alert: ' + alert)\n  \n  \n  // if alert is null then drop the message\n  if(alert == null) {\n    \n    log.debug('No Alert Found - Dropping incoming record');\n    metrics.count('js.alerts.dropped', 1);\n  \n    \n  // if alert is not null push message to next plugin\n  } else {\n    \n    log.debug('Found Alert - Pushing record to next Plugin');\n    metrics.count('js.alerts.pushed', 1);\n  \n    emitter.emit(input);\n\n  }\n  \n}",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":\"string\"},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}"
          }
        },
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":\"string\"},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}",
        "inputSchema": [
          {
            "name": "SimpleTCAPlugin",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":[\"string\",\"null\"]},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}"
          }
        ]
      },
      {
        "name": "DMaaPMRSink",
        "plugin": {
          "name": "DMaaPMRSink",
          "type": "batchsink",
          "label": "DMaaPMRSink",
          "artifact": {
            "name": "dcae-analytics-cdap-plugins",
            "version": "3.0-SNAPSHOT",
            "scope": "USER"
          },
          "properties": {
            "referenceName": "DMaaPMRSink",
            "hostName": "zldcmtc1njmsrt00.homer.com",
            "portNumber": "3905",
            "topicName": "com.dcae.dmaap.FTL.DcaeTestVESPub",
            "protocol": "https",
            "userName": "USER",
            "userPassword": "PASSWORD",
            "contentType": "application/json",
            "messageColumnName": "alert",
            "maxBatchSize": "50"
          }
        },
        "outputSchema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":\"string\"},{\"name\":\"tacMessageType\",\"type\":\"string\"}]}",
        "inputSchema": [
          {
            "name": "JavaScript2",
            "schema": "{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"ts\",\"type\":\"long\"},{\"name\":\"filterMatched\",\"type\":[\"boolean\",\"null\"]},{\"name\":\"responseCode\",\"type\":\"int\"},{\"name\":\"responseMessage\",\"type\":\"string\"},{\"name\":\"message\",\"type\":\"string\"},{\"name\":\"alert\",\"type\":\"string\"},{\"name\":\"tcaMessageType\",\"type\":\"string\"}]}"
          }
        ]
      }
    ],
    "batchInterval": "60s"
  }
}