Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Block Kit is really no different to 'attachments' and where some features are already incompatible with App Webhooks, others have been included through Block Kit.  A similar look may be achieved:

Image Modified

For example,

...

Code Block
languagebash
titleExample Json using Block Kit
	json="{
	        \"blocks\": [
	                {
	                        \"type\": \"section\",
	                        \"text\": {
	                                \"type\": \"mrkdwn\",
	                                \"text\": \":red_circle:*DANGER: ML1001*1015VMDEP\tDisk Warning*\n*!!System Drive Space Low!!*\n>*Drive Space Used:* 32%\n>*Available:* 21GB\"
	                        },
	                },        \"accessory\": {
	       {                         \"type\": \"sectionimage\",
	                        \"text\": {       \"image_url\": \"https://api.slack.com/img/blocks/bkb_template_images/beagle.png\",
		                        \"typealt_text\": \"mrkdwn\",alt text for image\"
                        	}
	    \"text\": \"*!!System Drive Space Low!!*\n>*Drive Space Used:* 70%\n>*Available Space:* 30GB\"        },
	                },{
         	               \"accessorytype\": {\"context\",
                	        \"elements\": [
      \"type\": \"image\",                         	{
       \"image_url\": \"https://api.slack.com/img/blocks/bkb_template_images/beagle.png\",                        	         \"alt_texttype\": \"alt text for imagemrkdwn\",
                        }        	         },
   \"text\": \"*model:* MacBook Pro (15-inch, 2019)\"
            {                    	},
    					{
											\"type\": \"contextmrkdwn\",
											\"text\": \"*macOS*: 10.15.1\"
					},
                    \"elements\": [                         {
       {                                         \"type\": \"mrkdwn\",
                                                \"text\": \"*Thresholdsclient:* 90% 35GB13.2.3\"
                                        },
                        	        {
                                	        \"type\": \"mrkdwn\",
                                 	       \"text\": \"*Modelthresholds:* 15\\\" MacBook Pro with Retina display (Mid 2015)90% 30GB\"
                                	}
                        	]
                	},
                	{
                	        \"type\": \"divider\"
                	}
        	]
	}"

Conclusion

The above shows how a Fileset may be delivered to devices in tandem with 3rd party tools, such that they will automatically report disk space usage at timed intervals.  However, this is just an example framework and the scope for use is endless.

...