-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
815 lines (721 loc) · 58.3 KB
/
index.html
File metadata and controls
815 lines (721 loc) · 58.3 KB
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<style type="text/css">.ttfm1{font-family: 'dual300';font-size:em;line-height:em;color:;} .ttfm2{font-family: 'Roboto';font-size:em;line-height:3em;color:;}</style> <!--[if lt IE 9]>
<script src="../../../../wp/wp-content/themes/rise/js/html5/dist/html5shiv.js"></script>
<script src="//css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="../../../../wp/wp-content/themes/rise/css/ie8.css"/>
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="../../../../wp/wp-content/themes/rise/css/ie7.css"/>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<meta name="google-site-verification" content="ovwnX0ej2kps4UuJ9NOzNjJcLOQD8JPDLNhe-hMYTMk">
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
<!-- This site is optimized with the Yoast SEO plugin v16.4 - https://yoast.com/wordpress/plugins/seo/ -->
<title>Build or Integrate Your Own Operational Dashboard w/ StackStorm (guest blog) - StackStorm</title>
<link rel="canonical" href="./index.html">
<meta property="og:locale" content="en_US">
<meta property="og:type" content="article">
<meta property="og:title" content="Build or Integrate Your Own Operational Dashboard w/ StackStorm (guest blog) - StackStorm">
<meta property="og:description" content="READ MORE">
<meta property="og:url" content="/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/">
<meta property="og:site_name" content="StackStorm">
<meta property="article:published_time" content="2015-11-26T21:08:07+00:00">
<meta property="article:modified_time" content="2015-12-13T20:40:49+00:00">
<meta property="og:image" content="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture-1.png">
<meta name="twitter:label1" content="Written by">
<meta name="twitter:data1" content="st2admin">
<meta name="twitter:label2" content="Est. reading time">
<meta name="twitter:data2" content="8 minutes">
<script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"/#organization","name":"StackStorm","url":"/","sameAs":[],"logo":{"@type":"ImageObject","@id":"/#logo","inLanguage":"en-US","url":"../../../../wp/wp-content/uploads/2014/10/stackstorm-logo-header.png","contentUrl":"../../../../wp/wp-content/uploads/2014/10/stackstorm-logo-header.png","width":228,"height":59,"caption":"StackStorm"},"image":{"@id":"/#logo"}},{"@type":"WebSite","@id":"/#website","url":"/","name":"StackStorm","description":"Event-driven automation","publisher":{"@id":"/#organization"},"potentialAction":[{"@type":"SearchAction","target":"/?s={search_term_string}","query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#primaryimage","inLanguage":"en-US","url":"../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture-1.png","contentUrl":"../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture-1.png"},{"@type":"WebPage","@id":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#webpage","url":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/","name":"Build or Integrate Your Own Operational Dashboard w/ StackStorm (guest blog) - StackStorm","isPartOf":{"@id":"/#website"},"primaryImageOfPage":{"@id":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#primaryimage"},"datePublished":"2015-11-26T21:08:07+00:00","dateModified":"2015-12-13T20:40:49+00:00","breadcrumb":{"@id":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/"]}]},{"@type":"BreadcrumbList","@id":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"item":{"@type":"WebPage","@id":"/","url":"/","name":"Home"}},{"@type":"ListItem","position":2,"item":{"@type":"WebPage","@id":"/blog/","url":"/blog/","name":"Blog"}},{"@type":"ListItem","position":3,"item":{"@id":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#webpage"}}]},{"@type":"Article","@id":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#article","isPartOf":{"@id":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#webpage"},"author":{"@id":"/#/schema/person/d2242d1dc5b3b5652be4c9175eb18000"},"headline":"Build or Integrate Your Own Operational Dashboard w/ StackStorm (guest blog)","datePublished":"2015-11-26T21:08:07+00:00","dateModified":"2015-12-13T20:40:49+00:00","mainEntityOfPage":{"@id":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#webpage"},"wordCount":881,"commentCount":0,"publisher":{"@id":"/#organization"},"image":{"@id":"/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#primaryimage"},"thumbnailUrl":"../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture-1.png","keywords":["ASP.NET","StackStorm"],"articleSection":["Blog","Community","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/#respond"]}]},{"@type":"Person","@id":"/#/schema/person/d2242d1dc5b3b5652be4c9175eb18000","name":"st2admin","image":{"@type":"ImageObject","@id":"/#personlogo","inLanguage":"en-US","url":"https://secure.gravatar.com/avatar/67f6d678610d4b8a7b9a7e95a065695f?s=96&d=mm&r=g","contentUrl":"https://secure.gravatar.com/avatar/67f6d678610d4b8a7b9a7e95a065695f?s=96&d=mm&r=g","caption":"st2admin"},"url":"/author/support/"}]}</script>
<!-- / Yoast SEO plugin. -->
<link rel="dns-prefetch" href="//s.w.org">
<link rel="alternate" type="application/rss+xml" title="StackStorm » Build or Integrate Your Own Operational Dashboard w/ StackStorm (guest blog) Comments Feed" href="/2015/11/26/build-integrate-operational-dashboard-w-stackstorm-guest-blog/feed/">
<script type="text/javascript">
window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.1\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.1\/svg\/","svgExt":".svg","source":{"concatemoji":"\/wp\/wp-includes\/js\/wp-emoji-release.min.js?ver=09e48cfb58fec140b4ee0c6d1d4da1b2"}};
!function(e,a,t){var n,r,o,i=a.createElement("canvas"),p=i.getContext&&i.getContext("2d");function s(e,t){var a=String.fromCharCode;p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,e),0,0);e=i.toDataURL();return p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,t),0,0),e===i.toDataURL()}function c(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(o=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},r=0;r<o.length;r++)t.supports[o[r]]=function(e){if(!p||!p.fillText)return!1;switch(p.textBaseline="top",p.font="600 32px Arial",e){case"flag":return s([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])?!1:!s([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!s([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]);case"emoji":return!s([55357,56424,8205,55356,57212],[55357,56424,8203,55356,57212])}return!1}(o[r]),t.supports.everything=t.supports.everything&&t.supports[o[r]],"flag"!==o[r]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[o[r]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(n=t.source||{}).concatemoji?c(n.concatemoji):n.wpemoji&&n.twemoji&&(c(n.twemoji),c(n.wpemoji)))}(window,document,window._wpemojiSettings);
</script>
<style type="text/css">img.wp-smiley,
img.emoji {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 .07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
}</style>
<link rel="stylesheet" id="dashicons-css" href="../../../../wp/wp-includes/css/dashicons.min.css?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" type="text/css" media="all">
<link rel="stylesheet" id="menu-icons-extra-css" href="../../../../wp/wp-content/plugins/menu-icons/css/extra.min.css?ver=0.12.8" type="text/css" media="all">
<link rel="stylesheet" id="wp-block-library-css" href="../../../../wp/wp-includes/css/dist/block-library/style.min.css?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" type="text/css" media="all">
<link rel="stylesheet" id="cookie-law-info-css" href="../../../../wp/wp-content/plugins/cookie-law-info/public/css/cookie-law-info-public.css?ver=2.0.3" type="text/css" media="all">
<link rel="stylesheet" id="cookie-law-info-gdpr-css" href="../../../../wp/wp-content/plugins/cookie-law-info/public/css/cookie-law-info-gdpr.css?ver=2.0.3" type="text/css" media="all">
<link rel="stylesheet" id="testimonial-rotator-style-css" href="../../../../wp/wp-content/plugins/testimonial-rotator/testimonial-rotator-style.css?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" type="text/css" media="all">
<link rel="stylesheet" id="font-awesome-css" href="../../../../wp/wp-content/plugins/menu-icons/vendor/codeinwp/icon-picker/css/types/font-awesome.min.css?ver=4.7.0" type="text/css" media="all">
<link rel="stylesheet" id="rise-style-css" href="../../../../wp/wp-content/themes/stackstorm/style.css?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" type="text/css" media="all">
<link rel="stylesheet" id="thrive-reset-css" href="../../../../wp/wp-content/themes/rise/css/reset.css?v=1.101.1" type="text/css" media="all">
<link rel="stylesheet" id="thrive-main-style-css" href="../../../../wp/wp-content/themes/rise/css/main_blue.css?v=1.101.1" type="text/css" media="all">
<link rel="stylesheet" id="enlighterjs-css" href="../../../../wp/wp-content/plugins/enlighter/cache/enlighterjs.min.css?ver=c8vUwCl5jS8Iu00" type="text/css" media="all">
<script type="text/javascript" src="../../../../wp/wp-includes/js/jquery/jquery.min.js?v=1.101.1" id="jquery-core-js"></script>
<script type="text/javascript" src="../../../../wp/wp-includes/js/jquery/jquery-migrate.min.js?v=1.101.1" id="jquery-migrate-js"></script>
<script type="text/javascript" id="cookie-law-info-js-extra">
/* <![CDATA[ */
var Cli_Data = {"nn_cookie_ids":[],"cookielist":[],"non_necessary_cookies":[],"ccpaEnabled":"","ccpaRegionBased":"","ccpaBarEnabled":"","strictlyEnabled":["necessary","obligatoire"],"ccpaType":"gdpr","js_blocking":"","custom_integration":"","triggerDomRefresh":"","secure_cookies":""};
var cli_cookiebar_settings = {"animate_speed_hide":"500","animate_speed_show":"500","background":"#384353","border":"#b1a6a6c2","border_on":"","button_1_button_colour":"#384353","button_1_button_hover":"#2d3642","button_1_link_colour":"#fff","button_1_as_button":"","button_1_new_win":"","button_2_button_colour":"#333","button_2_button_hover":"#292929","button_2_link_colour":"#00a5bf","button_2_as_button":"","button_2_hidebar":"1","button_3_button_colour":"#000","button_3_button_hover":"#000000","button_3_link_colour":"#fff","button_3_as_button":"1","button_3_new_win":"","button_4_button_colour":"#000","button_4_button_hover":"#000000","button_4_link_colour":"#fff","button_4_as_button":"1","button_7_button_colour":"#61a229","button_7_button_hover":"#4e8221","button_7_link_colour":"#fff","button_7_as_button":"1","button_7_new_win":"","font_family":"inherit","header_fix":"","notify_animate_hide":"1","notify_animate_show":"","notify_div_id":"#cookie-law-info-bar","notify_position_horizontal":"right","notify_position_vertical":"bottom","scroll_close":"","scroll_close_reload":"","accept_close_reload":"","reject_close_reload":"","showagain_tab":"1","showagain_background":"#fff","showagain_border":"#000","showagain_div_id":"#cookie-law-info-again","showagain_x_position":"100px","text":"#b7b7b7","show_once_yn":"","show_once":"10000","logging_on":"","as_popup":"","popup_overlay":"1","bar_heading_text":"","cookie_bar_as":"banner","popup_showagain_position":"bottom-right","widget_position":"left"};
var log_object = {"ajax_url":"\/wp\/wp-admin\/admin-ajax.php"};
/* ]]> */
</script>
<script type="text/javascript" src="../../../../wp/wp-content/plugins/cookie-law-info/public/js/cookie-law-info-public.js?ver=2.0.3" id="cookie-law-info-js"></script>
<script type="text/javascript" src="../../../../wp/wp-content/plugins/testimonial-rotator/js/jquery.cycletwo.js?v=1.101.1" id="cycletwo-js"></script>
<script type="text/javascript" src="../../../../wp/wp-content/plugins/testimonial-rotator/js/jquery.cycletwo.addons.js?v=1.101.1" id="cycletwo-addons-js"></script>
<script type="text/javascript" src="../../../../wp/wp-content/plugins/easy-logo-slider/js/jquery.jcarousel.min.js?v=1.101.1" id="jquery_jcarousel_min-js"></script>
<script type="text/javascript" src="../../../../wp/wp-content/plugins/easy-logo-slider/js/jcarousel.responsive.js?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" id="jcarousel_responsive-js"></script>
<link rel="https://api.w.org/" href="/wp-json/">
<link rel="alternate" type="application/json" href="/wp-json../../../../wp/v2/posts/4873">
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="../../../../wp/xmlrpc.php?rsd">
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="../../../../wp/wp-includes/wlwmanifest.xml">
<link rel="shortlink" href="/?p=4873">
<link rel="alternate" type="application/json+oembed" href="/wp-json/oembed/1.0/embed?url=https%3A%2F%2F%2F2015%2F11%2F26%2Fbuild-integrate-operational-dashboard-w-stackstorm-guest-blog%2F">
<link rel="alternate" type="text/xml+oembed" href="/wp-json/oembed/1.0/embed?url=https%3A%2F%2F%2F2015%2F11%2F26%2Fbuild-integrate-operational-dashboard-w-stackstorm-guest-blog%2F&format=xml">
<style type="text/css">:not(#tve) .ttfm1{font-family: 'dual300' !important;font-weight: 400 !important;}.ttfm1 input, .ttfm1 select, .ttfm1 textarea, .ttfm1 button {font-family: 'dual300' !important;font-weight: 400 !important;}:not(#tve) .ttfm2{font-family: 'Roboto' !important;font-weight: 400 !important;}.ttfm2 input, .ttfm2 select, .ttfm2 textarea, .ttfm2 button {font-family: 'Roboto' !important;font-weight: 400 !important;}:not(#tve) .ttfm2.bold_text,.ttfm2 .bold_text,.ttfm2 b,.ttfm2 strong{font-weight: 500 !important;}.ttfm2.bold_text,.ttfm2 .bold_text,.ttfm2 b,.ttfm2 strong input, .ttfm2.bold_text,.ttfm2 .bold_text,.ttfm2 b,.ttfm2 strong select, .ttfm2.bold_text,.ttfm2 .bold_text,.ttfm2 b,.ttfm2 strong textarea, .ttfm2.bold_text,.ttfm2 .bold_text,.ttfm2 b,.ttfm2 strong button {font-weight: 500 !important;}</style>
<style type="text/css" id="tve_global_variables">:root{--tcb-gradient-0:linear-gradient(180deg, #ff712c 0%, #000000 100%);}</style> <style type="text/css">.wp-video-shortcode {
max-width: 100% !important;
}
.bSe a {
clear: right;
}
.bSe blockquote {
clear: both;
}
body { background:#FFF; }.cnt article h1.entry-title a { color:#333; }.cnt article h2.entry-title a { color:#333; }.bSe h1, h1.entry-title, h1.entry-title a { color:#333; }.bSe h2 { color:#464545; }.bSe h3 { color:#333; }.bSe h4 { color:#333; }.bSe h5 { color:#333; }.bSe h6 { color:#333; }.bSe p, .mry .awr-e p { color:#666; }.cnt .bSe { color:#666; }.cnt h1 a, .tve-woocommerce .bSe .awr .entry-title, .tve-woocommerce .bSe .awr .page-title{font-family:Roboto,sans-serif;}.bSe h1{font-family:Roboto,sans-serif;}.bSe h2,.tve-woocommerce .bSe h2{font-family:Roboto,sans-serif;}.bSe h3,.tve-woocommerce .bSe h3{font-family:Roboto,sans-serif;}.bSe h4{font-family:Roboto,sans-serif;}.bSe h5{font-family:Roboto,sans-serif;}.bSe h6{font-family:Roboto,sans-serif;}#text_logo{font-family:Roboto,sans-serif;}.cnt h1 a { font-weight:500; }.bSe h1 { font-weight:500; }.bSe h2 { font-weight:500; }.bSe h3 { font-weight:500; }.bSe h4 { font-weight:500; }.bSe h5 { font-weight:500; }.bSe h6 { font-weight:500; }.cnt{font-family:Roboto,sans-serif;font-weight:300;}article strong {font-weight: bold;}.cnt p, .tve-woocommerce .product p, .tve-woocommerce .products p, .brd ul li, header nav ul li a, header nav ul li > ul li a, .has-extended.has-heading .colch, footer, footer .fmm p, .aut-f{font-family:Roboto,sans-serif;font-weight:300;}article strong {font-weight: bold;}.bSe h1, .bSe .entry-title { font-size:46px; }.cnt { font-size:18px; }.thrivecb { font-size:18px; }.out { font-size:18px; }.aut p { font-size:18px; }.cnt p { line-height:1.5em; }.thrivecb { line-height:1.5em; }.bSe a, .cnt a { color:#24447b; }.bSe .faq h4{font-family:Roboto,sans-serif;font-weight:300;}article strong {font-weight: bold;}header nav > ul.menu > li > a { color:#fff; }header nav > ul.menu > li > a:hover { color:#fff; }header nav > ul > li.current_page_item > a:hover { color:#fff; }header nav > ul > li.current_menu_item > a:hover { color:#fff; }header nav > ul > li.current_menu_item > a:hover { color:#fff; }header nav > ul > li > a:active { color:#fff; }header #logo > a > img { max-width:200px; }header ul.menu > li.h-cta > a { color:#FFFFFF!important; }header ul.menu > li.h-cta > a { background:#4b7cc7; }header ul.menu > li.h-cta > a { border-color:#4b7cc7; }header ul.menu > li.h-cta > a:hover { color:#4b7cc7!important; }header ul.menu > li.h-cta > a:hover { background:#transparent; }</style>
<style type="text/css">span.oe_textdirection { unicode-bidi: bidi-override; direction: rtl; }
span.oe_displaynone { display: none; }</style>
<style type="text/css" id="thrive-default-styles">@media (min-width: 300px) { .tcb-style-wrap blockquote {color:rgb(102, 102, 102);background-color:rgba(0, 0, 0, 0);font-family:Roboto, sans-serif;font-size:18px;font-weight:300;font-style:normal;margin:;padding-top:0px;padding-bottom:0px;text-decoration:rgb(102, 102, 102);text-transform:none;border-left:;--tcb-applied-color:;} }</style>
<link rel="icon" href="../../../../wp/wp-content/uploads/2015/09/st2.png" sizes="32x32">
<link rel="icon" href="../../../../wp/wp-content/uploads/2015/09/st2.png" sizes="192x192">
<link rel="apple-touch-icon" href="../../../../wp/wp-content/uploads/2015/09/st2.png">
<meta name="msapplication-TileImage" content="../../../../wp/wp-content/uploads/2015/09/st2.png">
<style type="text/css" id="wp-custom-css">/*
You can add your own CSS here.
Click the help icon above to learn more.
*/
.bSe ul:not([class]) {
margin-left: 20px;
margin-bottom: 15px;
}
.bSe ul:not([class]) li {
padding-left: 0;
margin-bottom: 5px;
position: relative;
}
/* StackStorm "Donate" button */
li#menu-item-9062 a {
display: inline-flex;
justify-content: center;
align-items: center;
background-color: #418cc5;
border: 3px solid #418cc5;
color: #fff !important;
text-decoration: none;
height: 30px;
border-radius: 20px;
padding: 0 12px;
font-weight: 400;
transition: all .25s ease-in-out;
}
li#menu-item-9062 a:hover {
color: #333 !important;
}
li#menu-item-9062 a:before {
top: 0;
}</style>
<style type="text/css">/* ***blog*** */
pre code {
overflow: scroll !important;
white-space: pre !important;
font-size: 11px
}
header.side nav>ul>li {
padding: 15px !important;
}
.cnt {
margin-top: 50px !important;
}
.cnt a.customHref{
color: #f82 !important;
}
.bSe ul li:before {
content: '' !important;
position: absolute;
left: 0;
top: -2px;
}
.bSe ul {
list-style-type: disc !important;
}
.bSe table tbody tr{
border-top-width:0px !important;
}
code {
font-size: 0.9em !important;
}
pre{
font-family: Monaco, MonacoRegular, monospace !important;
font-size: 14px !important;
background-color: rgb(250,253,255) !important;
padding: 0px 3px 0px 3px !important;
white-space: pre !important;
}
.bSe h1, .bSe .entry-title {
line-height: 1.2;
font-size: 40px;
}
.bSe h2 {
font-weight: 300;
}
.bSe h2, .tve-woocommerce .bSe h2 {
font-family: "Roboto",sans-serif;
}
.cnt p, .tve-woocommerce .product p, .tve-woocommerce .products p {
font-family: Roboto,sans-serif;
font-weight: 300;
}
p {
margin-bottom: 15px;
}
header.fbh {
height: 49px;
}
header #logo>a>img {
max-width: 150px;
}
.gist .blob-code .blob-code-inner .js-file-line {
white-space: pre !important;
}</style>
</head>
<body class="post-template-default single single-post postid-4873 single-format-standard">
<!-- BEGIN LF Header --> <div id="lf-header" style="padding-bottom: 3px; padding-top: 3px;background: #252525;"> <div class="container wrp"> <a href="https://linuxfoundation.org/projects" target="_blank" rel="noopener noreferrer"> <img src="../../../../wp/wp-content/themes/stackstorm/images/logo_lf_projects_horizontal.png" style="max-width: 270px;"> </a> </div> </div> <!-- END LF Header -->
<div class="theme-wrapper">
<div class="fln">
<div class="wrp clearfix">
<a class="fl-l" href="../../../../index.html">
<img src="../../../../wp/wp-content/uploads/2016/10/StackStorm-logo228.png" alt="StackStorm">
</a>
<div class="fl-s clearfix">
<ul>
</ul>
</div>
</div>
</div>
<div class="header-wrapper h-bi">
<div id="floating_menu" data-float="float" data-social="0">
<header class="side" style="">
<div class="h-i">
<div class="wrp">
<div id="logo">
<a href="../../../../index.html">
<img src="../../../../wp/wp-content/uploads/2016/10/StackStorm-logo228.png" alt="StackStorm"></a>
</div>
<div class="m-s">
<div class="hsm"></div>
<div class="m-si">
<nav class="menu-stackstorm-refresh-container"><ul id="menu-stackstorm-refresh" class="menu">
<li id="menu-item-5952" class="menu-item menu-item-type-custom menu-item-object-custom toplvl"><a href="../../../../features/index.html">Features</a></li>
<li id="menu-item-6100" class="menu-item menu-item-type-custom menu-item-object-custom toplvl"><a href="../../../../index.html#community">Community</a></li>
<li id="menu-item-4207" class="menu-item menu-item-type-custom menu-item-object-custom toplvl"><a target="_blank" href="http://docs.stackstorm.com/">Docs</a></li>
<li id="menu-item-8701" class="menu-item menu-item-type-custom menu-item-object-custom toplvl"><a href="https://exchange.stackstorm.org/">Exchange</a></li>
<li id="menu-item-2277" class="menu-item menu-item-type-custom menu-item-object-custom toplvl"><a href="../../../../blog/index.html">Blog</a></li>
<li id="menu-item-9062" class="menu-item menu-item-type-post_type menu-item-object-page toplvl"><a href="../../../../donate/index.html">Donate</a></li>
</ul></nav> <!-- Cart Dropdown -->
</div>
</div>
</div>
</div>
</header>
</div>
</div>
<div class="wrp cnt">
<section class="bSe bpd">
<div class="awr">
<h1 class="entry-title">Build or Integrate Your Own Operational Dashboard w/ StackStorm (guest blog)</h1>
<div class="awr-i">
<p><strong>November 26, 2015</strong><br>
<em>by Anthony Shaw of <a href="http://www.dimensiondata.com/">Dimension Data</a></em></p>
<p>This tutorial will show you how to leverage the power of the StackStorm API to expose your fantastic new workflows built using the Flow (available to Enterprise Edition uses) by <a href="../../../../2015/10/02/tutorial-of-the-week-cassandra-auto-remediation/index.html">following one of the blogs</a>.</p>
<p>In our fictional scenario, we have built 2 complex workflows.</p>
<ol>
<li>Engage Tractor Beam, this workflow deploys some virtual machines to cloud, uses Hubot to notify the staff and then Puppet to drive the tractor beam.</li>
<li>Open/Close loading bay doors, this workflow takes the desired state of the doors to drive another workflow.</li>
</ol>
<p>We want to provide our technical operations team with a really simple UI where they can just click these buttons and we hide the magic behind the scenes.</p>
<h2>Starting off</h2>
<p>First off, this is a tutorial for ASP.NET 4.5, MVC 5 and WebAPI 2.0, the latest Microsoft Web Development toolkit.</p>
<p>If you want to use another stack, you can follow the patterns here to repeat in another language.</p>
<p>Opening up Visual Studio (here I am using 2013, 2015 would also work), select the ASP.NET Web Application template</p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture-1.png" alt="stackstorm-Capture-1" width="941" height="653" class="wp-image-4917 size-full aligncenter" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture-1.png 941w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture-1-300x208.png 300w" sizes="(max-width: 941px) 100vw, 941px"></p>
<p><span>When prompted, pick out the Single Page Application option, this will install a whole smorgasbord of web-development tools.</span><span id="more-4873"></span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture-2.png" alt="stackstorm-Capture-2" width="756" height="568" class="wp-image-4919 size-full aligncenter" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture-2.png 756w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture-2-300x225.png 300w" sizes="(max-width: 756px) 100vw, 756px"></p>
<p>I’m not going to rely too heavily on these, but if you go ahead and press F5, it’ll present you with a login screen.</p>
<p>Inside the project Microsoft have already installed a user database and given you a registration system, so you can sign up to your new application by filling in your details.</p>
<p>If you want to replace this authentication mechanism with Active Directory (a more likely replacement in a large org), the provide detailed guides in the readme.</p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture2-1024x555.png" alt="stackstorm-Capture2" width="1024" height="555" class="size-large wp-image-4918 aligncenter" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture2-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture2-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture2-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture2.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<p><span>At the registration page, fill in some details to get yourself started with your application.</span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture3-1024x555.png" alt="stackstorm-Capture3" width="1024" height="555" class="aligncenter wp-image-4920 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture3-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture3-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture3-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture3.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<p><span>Now you’re logged in, you’re greeting with this rather useless welcome page.</span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture4-1024x555.png" alt="stackstorm-Capture4" width="1024" height="555" class="aligncenter wp-image-4921 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture4-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture4-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture4-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture4.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<h2>Installing StackStorm API Client</h2>
<p>In Visual Studio, 3rd party packages are distributed via nuget.org. I’ve been sharing a nuget package for the StackStorm API so I’ll show you in this tutorial how to use it.</p>
<p>The package is available on <a href="https://www.nuget.org/packages/St2.Client/">nuget.org</a></p>
<p>To install the package into your project either use the Nuget Package Manager Console</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">Install-Package St2.Client</pre>
<p><span>Or using the GUI you can search for St2.Client under the nuget.org repository and click install.</span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture5-1024x630.png" alt="stackstorm-Capture5" width="1024" height="630" class="aligncenter wp-image-4922 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture5-1024x630.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture5-300x185.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture5-1080x665.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture5.png 1288w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<h2>Simple Example</h2>
<p><span>Now we want to setup a quick API to provide a basic function, so under your controllers directory, add a new controller called ActionController (it will run our actions) </span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture6.png" alt="stackstorm-Capture6" width="941" height="653" class="aligncenter wp-image-4923 size-full" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture6.png 941w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture6-300x208.png 300w" sizes="(max-width: 941px) 100vw, 941px"></p>
<p>Back in the StackStorm UI you will already have access to the Examples pack, under this pack you will see a complex workflow action called “examples.mistral-basic-two-tasks-with-notifications”.</p>
<p>That is going to be our first action, since it requires no inputs and works every time.</p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture7-1024x555.png" alt="stackstorm-Capture7" width="1024" height="555" class="aligncenter wp-image-4924 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture7-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture7-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture7-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture7.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<p><span>In ActionController.cs let’s write some code to call that workflow as a REST API.</span></p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Results;
using TonyBaloney.St2.Client;
using TonyBaloney.St2.Client.Models;
namespace ExampleSt2Console.Controllers
{
[RoutePrefix("api")]
public class ActionController : ApiController
{
private St2Client _st2Client;</pre>
<p><span>Now, you want to connect to the StackStorm API, so fill in these details of your server. In production you would most likely use an IoC container and inject an ISt2Client instance based on a configuration file, but I’m not going to bore you with how to do that now.</span></p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">public ActionController()
{
_st2Client = new St2Client(
"https://10.209.120.21:9100", // Auth URL
"https://10.209.120.21:9101", // API URL
"admin",
"DevAdmin123",
true); // ignore certificate validation - if using self-signed cert
}</pre>
<p>If you did you and setup a proper certificate when you installed StackStorm, set that last parameter to false.</p>
<p>Now, create a WebAPI action method to engage the tractor beam.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null"> [Route("tractor/engage")]
[HttpPost]
public async Task<JsonResult<Execution>> EngageTractorBeam()
{
// Get a sign-on token
await _st2Client.RefreshTokenAsync();
// Any parameters needed for our action
Dictionary<string, object> actionParameters = new Dictionary<string, object>();
// Run our action
var result = await _st2Client.Executions.ExecuteActionAsync(
"examples.mistral-basic-two-tasks-with-notifications",
actionParameters);
return Json(result);
}
}
}</pre>
<p><span>Now, debug your application by pressing F5 and go to the API link at the top, you’ll see that WebAPI has documented your new method, so you know it works.</span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture8-1024x555.png" alt="stackstorm-Capture8" width="1024" height="555" class="aligncenter wp-image-4925 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture8-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture8-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture8-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture8.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<p><span>Back in Visual Studio, edit the home page contents (Views/Home/_Home.cshtml) to add a link to a function.</span></p>
<pre class="EnlighterJSRAW" data-enlighter-language="null"><!-- ko with: home -->
<div class="jumbotron">
<h1>Rebel Alliance Operations Dashboard</h1>
<p class="lead">This is a dashboard for the technical operations team in the rebel alliance.</p>
<p><a href="http://starwars.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
</div>
<div class="row">
<div class="col-md-6">
<h2>Ship Engagement</h2>
<p>Actions related to foreign ship engagement.</p>
<p data-bind="text: myHometown"></p>
<p><a data-bind="click: engageTractorBeam" class="btn btn-default" href="#">Engage Tractor Beam &raquo;</a></p>
</div>
...
</div>
<!-- /ko --></pre>
<p><span>Now in Scripts/app/home.viewmodel.js if you edit the file and add our action to call the API.</span></p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">function HomeViewModel(app, dataModel) {
var self = this;
self.myHometown = ko.observable("");
Sammy(function () {
this.get('#home', function () {
// Make a call to the protected Web API by passing in a Bearer Authorization Header
$.ajax({
method: 'get',
url: app.dataModel.userInfoUrl,
contentType: "application/json; charset=utf-8",
headers: {
'Authorization': 'Bearer ' + app.dataModel.getAccessToken()
},
success: function (data) {
self.myHometown('Your Hometown is : ' + data.hometown);
}
});
});
this.get('/', function () { this.app.runRoute('get', '#home') });
});
self.engageTractorBeam = function() {
$.ajax({
method: 'post',
url: '/api/tractor/engage',
contentType: "application/json; charset=utf-8",
headers: {
'Authorization': 'Bearer ' + app.dataModel.getAccessToken()
},
success: function (data) {
alert('engaged!');
}
});
}
...</pre>
<p><span>Hit F5 then you’ll see we have our nice dashboard</span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture9-1024x555.png" alt="stackstorm-Capture9" width="1024" height="555" class="aligncenter wp-image-4926 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture9-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture9-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture9-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture9.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<p><span>and click that button to engage the tractor beam.</span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture10-1024x555.png" alt="stackstorm-Capture10" width="1024" height="555" class="aligncenter wp-image-4927 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture10-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture10-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture10-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture10.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<p><span>There it goes, now let’s checkout the StackStorm UI and make sure that actually ran our workflow. In the history window you’ll see it. Check out the output and make sure it was successful.</span><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture11-1024x555.png" alt="stackstorm-Capture11" width="1024" height="555" class="aligncenter wp-image-4928 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture11-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture11-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture11-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture11.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<h2>Complex Example</h2>
<p>Let’s work on a more complex example, we have an action, “exampes.mistral-basic” that requires a parameter, <code>cmd</code>, which is the command to run.</p>
<p>Let’s use that command to open and close our loading bay doors</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">...
<div class="col-md-6">
<h2>Ship Engagement</h2>
<p>Actions related to foreign ship engagement.</p>
<p data-bind="text: myHometown"></p>
<p><a data-bind="click: engageTractorBeam" class="btn btn-default" href="#">Engage Tractor Beam &raquo;</a></p>
</div>
<div class="col-md-6">
<h2>Loading Bay Doors</h2>
<p>
Operations related to the loading bay doors.
</p>
<p><a data-bind="click: openLoadingDoors" class="btn btn-success" href="#">Open &raquo;</a></p>
<p><a data-bind="click: closeLoadingDoors" class="btn btn-warning" href="#">Close &raquo;</a></p>
</div>
...</pre>
<p><span>Back in the view model, call the new API methods to include a data in the POST message with the desired door state.</span></p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">...
self.openLoadingDoors = function () {
$.ajax({
method: 'post',
url: '/api/doors/set',
headers: {
'Authorization': 'Bearer ' + app.dataModel.getAccessToken()
},
data: '=open' ,
success: function (data) {
alert(data.status);
}
});
}
self.closeLoadingDoors = function () {
$.ajax({
method: 'post',
url: '/api/doors/set',
headers: {
'Authorization': 'Bearer ' + app.dataModel.getAccessToken()
},
data: '=close',
success: function (data) {
alert(data.status);
}
});
}
...</pre>
<p><span>Then finally we’ll add our new API action controller</span></p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">...
[Route("doors/set")]
[HttpPost]
public async Task<JsonResult<Execution>> SetDoorState([FromBody]string state)
{
// Get a sign-on token
await _st2Client.RefreshTokenAsync();
</pre>
<p><span>Now you need to assemble the collection of parameters for the action, this is a dictionary for convenience</span></p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">// Any parameters needed for our action
// NB: This is really really really insecure. Just an example!
Dictionary<string, object> actionParameters = new Dictionary<string, object>
{
{"cmd", "echo 'Setting doors to " + state + "'"}
};</pre>
<p><span>Then run the action using the same function as before.</span></p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">// Run our action
Execution result = await _st2Client.Executions.ExecuteActionAsync(
"examples.mistral-basic",
actionParameters);
string executionId = result.id;</pre>
<p><span>This time, instead of just firing back the execution reference, let’s wait for it to finish.</span></p>
<pre class="EnlighterJSRAW" data-enlighter-language="null"> // Wait to complete.
while (result.status == "running" || result.status == "requested")
{
result = await _st2Client.Executions.GetExecutionAsync(executionId);
Thread.Sleep(20);
}
return Json(result);
}</pre>
<p><span>Now hit F5 and test it out. Click Open to test the function..</span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture12-1024x555.png" alt="stackstorm-Capture12" width="1024" height="555" class="aligncenter wp-image-4929 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture12-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture12-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture12-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture12.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<p> </p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture14-1024x555.png" alt="stackstorm-Capture14" width="1024" height="555" class="aligncenter wp-image-4931 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture14-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture14-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture14-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture14.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<p> </p>
<p><span>Check in StackStorm UI to make sure it succeeded.</span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture13-1024x555.png" alt="stackstorm-Capture13" width="1024" height="555" class="aligncenter wp-image-4930 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture13-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture13-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture13-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture13.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<p> </p>
<p><span>And if you expand the result data on the right-hand panel you can see the full result.</span></p>
<p><img loading="lazy" src="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture15-1024x555.png" alt="stackstorm-Capture15" width="1024" height="555" class="aligncenter wp-image-4932 size-large" srcset="../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture15-1024x555.png 1024w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture15-300x163.png 300w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture15-1080x586.png 1080w, ../../../../wp/wp-content/uploads/2015/11/stackstorm-Capture15.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px"></p>
<p>This toolkit gives you a way of interfacing with StackStorm from .NET, if you’re using PowerShell or want to script these actions, checkout my PowerShell command library for StackStorm on <a href="https://www.powershellgallery.com/packages/St2.Client/">powershellgallery.com</a></p>
<p>Happy hacking.</p>
<p>p.s. StarWars is copyright of LucasFilm/Disney.</p>
<p> </p> </div>
<div class="clear"></div>
<div class="pnav">
<a class="pav left" href="../../../../2015/11/21/netflix-stackstorm-based-auto-remediation-why-how-and-so-what/index.html">
<span>Previous Post</span>
<span>Netflix: StackStorm-based Auto-Remediation – Why, How, and So What</span>
</a>
<a class="pav right" href="../../../../2015/12/02/getting-started-with-auto-remediation/index.html">
<span>Next Post</span>
<span>Auto-Remediation: Getting Started</span>
</a>
</div>
</div>
<div id="disqus_thread"></div>
</section>
</div>
<div class="clear"></div>
<div class="footer-wrapper">
<footer>
<div class="fmw">
<div class="wrp">
<div class="colm oth ">
<section id="text-7" class="col"><div class="scn"> <div class="textwidget">
<p><a href="http://docs.stackstorm.com/" target="_blank" rel="noopener">Documentation</a><br>
<a href="https://github.com/StackStorm" target="_blank" rel="noopener">GitHub</a><br>
<a href="../../../../index.html#community" target="_blank" rel="noopener">Community</a><br>
<a href="../../../../security/index.html" target="_blank" rel="noopener">Security</a></p>
</div>
</div></section> </div>
<div class="colm oth ">
<section id="text-8" class="col"><div class="scn"> <div class="textwidget">
<p><a href="../../../../blog/index.html">Blog</a><br>
<a href="https://www.youtube.com/channel/UCColc5CuBJ8-1SnALnkDz8Q">Video Gallery</a><br>
<a href="../../../../privacy-policy/index.html">Privacy Policy</a></p>
</div>
</div></section> </div>
<div class="colm oth lst">
<section id="text-9" class="col"><div class="scn"> <div class="textwidget">
<div style="line-height:1.7em;">
<a href="../../../../contact/index.html">Contact</a><br>
<div class="ic-social">
<a href="https://www.facebook.com/stackstormdevops" target="_blank" rel="noopener"><i class="fa fa-facebook-square"></i></a>
<a href="https://twitter.com/StackStorm" target="_blank" rel="noopener"><i class="fa fa-twitter-square"></i></a>
<a href="https://www.linkedin.com/company/stackstorm" target="_blank" rel="noopener"><i class="fa fa-linkedin-square"></i></a>
<a href="https://github.com/StackStorm" target="_blank" rel="noopener"><i class="fa fa-github-square"></i></a>
<a href="https://www.youtube.com/channel/UCColc5CuBJ8-1SnALnkDz8Q" target="_blank" rel="noopener"><i class="fa fa-youtube-square"></i></a>
</div>
</div>
<style type="text/css">.tve-leads-track-ribbon-46 {
top: 70px !important;
}
.tve-leads-track-ribbon-46 #tve_four_set {
font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
}
.tve-leads-track-ribbon-46 #tve_four_set .thrv-ribbon {
border-top: 1px solid #ddd;
box-shadow: 0px 4px 3px -4px rgba(0,0,0,0.75);
padding-bottom: 0px !important;
padding-top: 0px !important;
border-right: none;
border-left: none;
}
.tve-leads-track-ribbon-46 .bold_text {
font-weight: normal;
}
.tve-leads-track-ribbon-46 #tve_four_set .tve-ribbon-close {
height: 30px;
border-color: white;
color: white;
font-family: sans-serif;
border-width: 2px;
top: 50%;
margin-top: -15px;
font-size: 18px;
font-weight: 800;
}</style>
</div>
</div></section> </div>
<div class="clear"></div>
</div>
</div>
<div class="fmm">
<div class="wrp">
<div class="ft-m">
</div>
</div>
<div class="wrp">
<div class="ft-c">
<p>
© 2021 StackStorm a Series of LF Projects, LLC. All rights reserved. For web site terms of use, trademark policy and other project policies please see <a href="https://lfprojects.org/">https://lfprojects.org/</a>.
<br>For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage">Trademark Usage</a> page. Linux is a registered trademark of Linus Torvalds. <a href="https://www.linuxfoundation.org/privacy">Privacy Policy</a> and <a href="https://www.linuxfoundation.org/terms">Terms of Use</a>. </p>
</div>
<div class="ft-s">
<ul>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</footer>
</div>
<!--googleoff: all--><div id="cookie-law-info-bar" data-nosnippet="true"><span>We use cookies for traffic analytics and ad and content personalization. By clicking on any of the content or interacting with any section of this website,<br>you are agreeing to this use of cookies in the manner described in our <a href="../../../../privacy-policy/index.html" id="CONSTANT_OPEN_URL" target="_blank" class="cli-plugin-main-link" style="display:inline-block;">Privacy Policy</a> <a role="button" tabindex="0" data-cli_action="accept" id="cookie_action_close_header" class="cli-plugin-main-button cookie_action_close_header cli_action_button" style="display:inline-block; ">close [x]</a></span></div>
<div id="cookie-law-info-again" style="display:none;" data-nosnippet="true"><span id="cookie_hdr_showagain">Privacy & Cookies Policy</span></div>
<div class="cli-modal" data-nosnippet="true" id="cliSettingsPopup" tabindex="-1" role="dialog" aria-labelledby="cliSettingsPopup" aria-hidden="true">
<div class="cli-modal-dialog" role="document">
<div class="cli-modal-content cli-bar-popup">
<button type="button" class="cli-modal-close" id="cliModalClose">
<svg class="" viewbox="0 0 24 24"><path d="M19 6.41l-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z"></path><path d="M0 0h24v24h-24z" fill="none"></path></svg>
<span class="wt-cli-sr-only">Close</span>
</button>
<div class="cli-modal-body">
<div class="cli-container-fluid cli-tab-container">
<div class="cli-row">
<div class="cli-col-12 cli-align-items-stretch cli-px-0">
<div class="cli-privacy-overview">
<h4>Privacy Overview</h4> <div class="cli-privacy-content">
<div class="cli-privacy-content-text">This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.</div>
</div>
<a class="cli-privacy-readmore" aria-label="Show more" tabindex="0" role="button" data-readmore-text="Show more" data-readless-text="Show less"></a> </div>
</div>
<div class="cli-col-12 cli-align-items-stretch cli-px-0 cli-tab-section-container">
<div class="cli-tab-section">
<div class="cli-tab-header">
<a role="button" tabindex="0" class="cli-nav-link cli-settings-mobile" data-target="necessary" data-toggle="cli-toggle-tab">
Necessary </a>
<div class="wt-cli-necessary-checkbox">
<input type="checkbox" class="cli-user-preference-checkbox" id="wt-cli-checkbox-necessary" data-id="checkbox-necessary" checked>
<label class="form-check-label" for="wt-cli-checkbox-necessary">Necessary</label>
</div>
<span class="cli-necessary-caption">Always Enabled</span> </div>
<div class="cli-tab-content">
<div class="cli-tab-pane cli-fade" data-id="necessary">
<p>Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.</p>
</div>
</div>
</div>
<div class="cli-tab-section">
<div class="cli-tab-header">
<a role="button" tabindex="0" class="cli-nav-link cli-settings-mobile" data-target="non-necessary" data-toggle="cli-toggle-tab">
Non-necessary </a>
<div class="cli-switch">
<input type="checkbox" id="wt-cli-checkbox-non-necessary" class="cli-user-preference-checkbox" data-id="checkbox-non-necessary" checked>
<label for="wt-cli-checkbox-non-necessary" class="cli-slider" data-cli-enable="Enabled" data-cli-disable="Disabled"><span class="wt-cli-sr-only">Non-necessary</span></label>
</div> </div>
<div class="cli-tab-content">
<div class="cli-tab-pane cli-fade" data-id="non-necessary">
<p>Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="cli-modal-footer">
<div class="wt-cli-element cli-container-fluid cli-tab-container">
<div class="cli-row">
<div class="cli-col-12 cli-align-items-stretch cli-px-0">
<div class="cli-tab-footer wt-cli-privacy-overview-actions">
<a id="wt-cli-privacy-save-btn" role="button" tabindex="0" data-cli-action="accept" class="wt-cli-privacy-btn cli_setting_save_button wt-cli-privacy-accept-btn cli-btn">SAVE & ACCEPT</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="cli-modal-backdrop cli-fade cli-settings-overlay"></div>
<div class="cli-modal-backdrop cli-fade cli-popupbar-overlay"></div>
<!--googleon: all--><script type="text/javascript">/**
* Displays toast message from storage, it is used when the user is redirected after login
*/
if ( window.sessionStorage ) {
window.addEventListener( 'load', function () {
var message = sessionStorage.getItem( 'tcb_toast_message' );
if ( message ) {
tcbToast( sessionStorage.getItem( 'tcb_toast_message' ), false );
sessionStorage.removeItem( 'tcb_toast_message' );
}
} );
}
/**
* Displays toast message
*/
function tcbToast( message, error, callback ) {
/* Also allow "message" objects */
if ( typeof message !== 'string' ) {
message = message.message || message.error || message.success;
}
if ( ! error ) {
error = false;
}
let _icon = 'checkmark',
_extra_class = '';
if ( error ) {
_icon = 'cross';
_extra_class = ' tve-toast-error';
}
jQuery( 'body' ).slideDown( 'fast', function () {
jQuery( 'body' ).prepend( '<div class="tvd-toast tve-fe-message"><div class="tve-toast-message"><div class="tve-toast-icon-container' + _extra_class + '"><span class="tve_tick thrv-svg-icon"><svg xmlns="http://www.w3.org/2000/svg" class="tcb-checkmark" style="width: 100%; height: 1em; stroke-width: 0; fill: #ffffff; stroke: #ffffff;" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"><\/path><\/svg><\/span><\/div><div class="tve-toast-message-container">' + message + '<\/div><\/div><\/div>' );
} );
setTimeout( function () {
jQuery( '.tvd-toast' ).hide();
if ( typeof callback === 'function' ) {
callback();
}
}, 3000 );
}
</script><link rel="stylesheet" id="jcarouselresponsive-css" href="../../../../wp/wp-content/plugins/easy-logo-slider/css/jcarouselresponsive.css?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" type="text/css" media="all">
<link rel="stylesheet" id="style-admin-css" href="../../../../wp/wp-content/plugins/easy-logo-slider/css/style-admin.css?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" type="text/css" media="all">
<script type="text/javascript" id="disqus_count-js-extra">
/* <![CDATA[ */
var countVars = {"disqusShortname":"stackstorm"};
/* ]]> */
</script>
<script type="text/javascript" src="../../../../wp/wp-content/plugins/disqus-comment-system/public/js/comment_count.js?ver=3.0.22" id="disqus_count-js"></script>
<script type="text/javascript" id="disqus_embed-js-extra">
/* <![CDATA[ */
var embedVars = {"disqusConfig":{"integration":"wordpress 3.0.22"},"disqusIdentifier":"4873 \/?p=4873","disqusShortname":"stackstorm","disqusTitle":"Build or Integrate Your Own Operational Dashboard w\/ StackStorm (guest blog)","disqusUrl":"\/2015\/11\/26\/build-integrate-operational-dashboard-w-stackstorm-guest-blog\/","postId":"4873"};
/* ]]> */
</script>
<script type="text/javascript" src="../../../../wp/wp-content/plugins/disqus-comment-system/public/js/comment_embed.js?ver=3.0.22" id="disqus_embed-js"></script>
<script type="text/javascript" id="thrive-main-script-js-extra">
/* <![CDATA[ */
var ThriveApp = {"ajax_url":"\/wp\/wp-admin\/admin-ajax.php","is_singular":"1","post_type":"post","lazy_load_comments":"0","comments_loaded":"0","theme_uri":"\/wp\/wp-content\/themes\/rise","translations":{"ProductDetails":"Product Details"}};
/* ]]> */
</script>
<script type="text/javascript" src="../../../../wp/wp-content/themes/rise/js/script.js?v=1.101.1" id="thrive-main-script-js"></script>
<script type="text/javascript" id="tve-dash-frontend-js-extra">
/* <![CDATA[ */
var tve_dash_front = {"ajaxurl":"\/wp\/wp-admin\/admin-ajax.php","force_ajax_send":"","is_crawler":"1","recaptcha":[]};
/* ]]> */
</script>
<script type="text/javascript" src="../../../../wp/wp-content/themes/rise/thrive-dashboard/js/dist/frontend.min.js?ver=2.4.0.1" id="tve-dash-frontend-js"></script>
<script type="text/javascript" src="../../../../wp/wp-content/plugins/enlighter/cache/enlighterjs.min.js?ver=c8vUwCl5jS8Iu00" id="enlighterjs-js"></script>
<script type="text/javascript" id="enlighterjs-js-after">
!function(e,n){if("undefined"!=typeof EnlighterJS){var o={"selectors":{"block":"pre.EnlighterJSRAW","inline":"code.EnlighterJSRAW"},"options":{"indent":2,"ampersandCleanup":true,"linehover":true,"rawcodeDbclick":false,"textOverflow":"break","linenumbers":false,"theme":"beyond","language":"python","retainCssClasses":false,"collapse":false,"toolbarOuter":"","toolbarTop":"{BTN_RAW}{BTN_COPY}{BTN_WINDOW}{BTN_WEBSITE}","toolbarBottom":""}};(e.EnlighterJSINIT=function(){EnlighterJS.init(o.selectors.block,o.selectors.inline,o.options)})()}else{(n&&(n.error||n.log)||function(){})("Error: EnlighterJS resources not loaded yet!")}}(window,console);
</script>
<script type="text/javascript" src="../../../../wp/wp-includes/js/wp-embed.min.js?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" id="wp-embed-js"></script>
<script type="text/javascript">var tcb_post_lists=JSON.parse('[]');</script>
</div>
</body>
</html>