<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: vigneshwaran kumaravel</title>
    <description>The latest articles on DEV Community by vigneshwaran kumaravel (@vignesh19).</description>
    <link>https://dev.to/vignesh19</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F522709%2Ff5051736-bd4b-4195-860b-8da368772831.jpg</url>
      <title>DEV Community: vigneshwaran kumaravel</title>
      <link>https://dev.to/vignesh19</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vignesh19"/>
    <language>en</language>
    <item>
      <title>Slack Bot for Support Personnel build with API Led Connectivity</title>
      <dc:creator>vigneshwaran kumaravel</dc:creator>
      <pubDate>Mon, 30 Nov 2020 02:50:38 +0000</pubDate>
      <link>https://dev.to/vignesh19/slack-bot-for-support-personnel-build-with-api-led-connectivity-7o1</link>
      <guid>https://dev.to/vignesh19/slack-bot-for-support-personnel-build-with-api-led-connectivity-7o1</guid>
      <description>&lt;h3&gt;
  
  
  &lt;strong&gt;Overview&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;This integrates slack and mule integrations to assist for support tasks such as pinging the mule server host in case of server downtime and do basic operations(start, stop, update, restart) with help of cloudhub api.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Functional Overview&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fbhptmpl8rc7bbo9renzm.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fbhptmpl8rc7bbo9renzm.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Downloadable Asset&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Slack Experience API &lt;a href="https://anypoint.mulesoft.com/exchange/ce7baec3-d597-421f-8067-6fd531fb74f9/slack-experience-api/" rel="noopener noreferrer"&gt;RAML&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Support Operations API &lt;a href="https://anypoint.mulesoft.com/exchange/ce7baec3-d597-421f-8067-6fd531fb74f9/support-operations-api/" rel="noopener noreferrer"&gt;RAML&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Ping API &lt;a href="https://anypoint.mulesoft.com/exchange/ce7baec3-d597-421f-8067-6fd531fb74f9/ping-api/" rel="noopener noreferrer"&gt;RAML&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Cloudhub Operations API &lt;a href="https://anypoint.mulesoft.com/exchange/ce7baec3-d597-421f-8067-6fd531fb74f9/cloudhub-operations-api/" rel="noopener noreferrer"&gt;RAML&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://github.com/vigvel123/mulesoft.git" rel="noopener noreferrer"&gt;Github Repository&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Operations Supported:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ping host inside mule server host to check its connectivity with help of java class.&lt;/li&gt;
&lt;li&gt;Start, Stop, Update, Restart cloudhub applications in bulk using Cloudhub API.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;API Led Design&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6brqaifrkn23oa6l74fw.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6brqaifrkn23oa6l74fw.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Slack&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Slack is basically a messaging app meant for teams and workplaces can be used across multiple devices and platforms, and is equipped with robust features that allow you to not only chat one-on-one with associates but also in groups.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Slash Commmands&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Slash Commands&lt;/strong&gt; allow users to invoke your app by typing a string into the message composer box.&lt;/p&gt;

&lt;p&gt;A submitted Slash Command will cause a payload of data to be sent from Slack to the associated app. The app can then respond in whatever way it wants using the context provided by that payload.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://api.slack.com/interactivity/slash-commands" rel="noopener noreferrer"&gt;Slash-Command-Documentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With the help of slash commands, we can invoke external URLs. Using this concept we are interacting with mule API to perform operations such as pinging server inside mule runtime, starting, stopping, restarting, and updating mule applications in bulk from the slack channel itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steps to integrate slack with mule API:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1.Install slash command application to your slack.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fji4rvlow841gi3ytnceo.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fji4rvlow841gi3ytnceo.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
2.Configure custom slash commands required for example since we want to ping the mule application inside the mule server let's create a slash command /ping which triggered from the slack channel will call the configured mule API URL.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F36dpn099occg12b0ows4.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F36dpn099occg12b0ows4.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use Cases:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1.Support Personnel often faced with issues like server downtime and emergency network issue during those times we currently use net-tools API to check if our client-server is reachable over mule runtime.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fabi8gbwlfn4146aj483f.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fabi8gbwlfn4146aj483f.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
With the help of slack integration, we can ping the host from the slack channel itself to get ping statistics.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkxgbn6t3hbjega7k7n32.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkxgbn6t3hbjega7k7n32.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6tbubdog16p0y4kfg2wp.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6tbubdog16p0y4kfg2wp.JPG" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
2.When server downtime happens we are required to stop several applications and start them again after maintenance which needs to be done for several applications. Currently, we use the Runtime Manager to do these activities.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fga7rc6pobs5nhngku6wh.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fga7rc6pobs5nhngku6wh.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
With the help of slack integration, we can do this from the slack channel in bulk.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Foq3ibbzhvn0xww419hcn.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Foq3ibbzhvn0xww419hcn.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mulesofthackathon</category>
    </item>
  </channel>
</rss>
