mirror of
				https://github.com/tormachris/cf-workers-status-page.git
				synced 2025-11-04 12:56:24 +01:00 
			
		
		
		
	Supply fallback text for Slack message
This is used as a plain-text summary of the attachment, e.g. in push notifications. Docs: https://api.slack.com/reference/messaging/attachments#legacy_fields
This commit is contained in:
		
				
					committed by
					
						
						Adam Janiš
					
				
			
			
				
	
			
			
			
						parent
						
							de0cfaf504
						
					
				
				
					commit
					1189e708da
				
			@@ -27,6 +27,7 @@ export async function notifySlack(monitor, operational) {
 | 
			
		||||
  const payload = {
 | 
			
		||||
    attachments: [
 | 
			
		||||
      {
 | 
			
		||||
        fallback: `Monitor ${monitor.name} changed status to ${getOperationalLabel(operational)}`,
 | 
			
		||||
        color: operational ? '#36a64f' : '#f2c744',
 | 
			
		||||
        blocks: [
 | 
			
		||||
          {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user