mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	inetgrations: Add webhook payloads for Honeybadger.
This commit is contained in:
		
							
								
								
									
										57
									
								
								zerver/webhooks/honeybadger/fixtures/checkin.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								zerver/webhooks/honeybadger/fixtures/checkin.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,57 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					   "event":"check_in_missing",
 | 
				
			||||||
 | 
					   "message":"[Zulip Integration] MISSING: Zulip hasn't checked in for 6 minutes",
 | 
				
			||||||
 | 
					   "project":{
 | 
				
			||||||
 | 
					      "id":54639,
 | 
				
			||||||
 | 
					      "name":"Zulip Integration",
 | 
				
			||||||
 | 
					      "token":"d144e04c",
 | 
				
			||||||
 | 
					      "created_at":"2017-12-29T14:18:50.512753Z",
 | 
				
			||||||
 | 
					      "disable_public_links":false,
 | 
				
			||||||
 | 
					      "pivotal_project_id":null,
 | 
				
			||||||
 | 
					      "asana_workspace_id":null,
 | 
				
			||||||
 | 
					      "github_project":null,
 | 
				
			||||||
 | 
					      "environments":[
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "owner":{
 | 
				
			||||||
 | 
					         "id":57245,
 | 
				
			||||||
 | 
					         "email":"madelf1337@gmail.com",
 | 
				
			||||||
 | 
					         "name":"Pranav Kulkarni"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "last_notice_at":null,
 | 
				
			||||||
 | 
					      "earliest_notice_at":"2017-11-29T14:59:09.234554Z",
 | 
				
			||||||
 | 
					      "unresolved_fault_count":0,
 | 
				
			||||||
 | 
					      "fault_count":0,
 | 
				
			||||||
 | 
					      "active":true,
 | 
				
			||||||
 | 
					      "users":[
 | 
				
			||||||
 | 
					         {
 | 
				
			||||||
 | 
					            "id":57245,
 | 
				
			||||||
 | 
					            "email":"madelf1337@gmail.com",
 | 
				
			||||||
 | 
					            "name":"Pranav Kulkarni"
 | 
				
			||||||
 | 
					         }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "sites":[
 | 
				
			||||||
 | 
					         {
 | 
				
			||||||
 | 
					            "id":"59ad71ac-6d2e-4fd0-a04f-b5c916c8f57e",
 | 
				
			||||||
 | 
					            "active":true,
 | 
				
			||||||
 | 
					            "last_checked_at":"2017-12-29T14:59:09.191265Z",
 | 
				
			||||||
 | 
					            "name":"Zulip",
 | 
				
			||||||
 | 
					            "state":"up",
 | 
				
			||||||
 | 
					            "url":"https://zulipint.slack.com"
 | 
				
			||||||
 | 
					         }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "team_id":34534
 | 
				
			||||||
 | 
					   },
 | 
				
			||||||
 | 
					   "check_in":{
 | 
				
			||||||
 | 
					      "state":"missing",
 | 
				
			||||||
 | 
					      "schedule_type":"simple",
 | 
				
			||||||
 | 
					      "reported_at":"2017-12-29T14:53:02.498067Z",
 | 
				
			||||||
 | 
					      "expected_at":"2017-12-29T15:04:08.980590Z",
 | 
				
			||||||
 | 
					      "missed_count":1,
 | 
				
			||||||
 | 
					      "grace_period":60,
 | 
				
			||||||
 | 
					      "id":"15mIYe",
 | 
				
			||||||
 | 
					      "name":"Zulip",
 | 
				
			||||||
 | 
					      "url":"https://api.honeybadger.io/v1/check_in/15mIYe",
 | 
				
			||||||
 | 
					      "report_period":300
 | 
				
			||||||
 | 
					   }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										96
									
								
								zerver/webhooks/honeybadger/fixtures/test_error.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										96
									
								
								zerver/webhooks/honeybadger/fixtures/test_error.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,96 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					   "event":"occurred",
 | 
				
			||||||
 | 
					   "message":"[Zulip Integration/production] TestingException: This is a test error generated by Honeybadger",
 | 
				
			||||||
 | 
					   "project":{
 | 
				
			||||||
 | 
					      "id":54639,
 | 
				
			||||||
 | 
					      "name":"Zulip Integration",
 | 
				
			||||||
 | 
					      "token":"d144e04c",
 | 
				
			||||||
 | 
					      "created_at":"2017-12-29T14:18:50.512753Z",
 | 
				
			||||||
 | 
					      "disable_public_links":false,
 | 
				
			||||||
 | 
					      "pivotal_project_id":null,
 | 
				
			||||||
 | 
					      "asana_workspace_id":null,
 | 
				
			||||||
 | 
					      "github_project":null,
 | 
				
			||||||
 | 
					      "environments":[
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "owner":{
 | 
				
			||||||
 | 
					         "id":57245,
 | 
				
			||||||
 | 
					         "email":"madelf1337@gmail.com",
 | 
				
			||||||
 | 
					         "name":"Pranav Kulkarni"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "last_notice_at":null,
 | 
				
			||||||
 | 
					      "earliest_notice_at":"2017-11-29T14:24:48.144908Z",
 | 
				
			||||||
 | 
					      "unresolved_fault_count":0,
 | 
				
			||||||
 | 
					      "fault_count":0,
 | 
				
			||||||
 | 
					      "active":true,
 | 
				
			||||||
 | 
					      "users":[
 | 
				
			||||||
 | 
					         {
 | 
				
			||||||
 | 
					            "id":57245,
 | 
				
			||||||
 | 
					            "email":"madelf1337@gmail.com",
 | 
				
			||||||
 | 
					            "name":"Pranav Kulkarni"
 | 
				
			||||||
 | 
					         }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "sites":[
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "team_id":34534
 | 
				
			||||||
 | 
					   },
 | 
				
			||||||
 | 
					   "fault":{
 | 
				
			||||||
 | 
					      "project_id":54639,
 | 
				
			||||||
 | 
					      "klass":"TestingException",
 | 
				
			||||||
 | 
					      "component":null,
 | 
				
			||||||
 | 
					      "action":null,
 | 
				
			||||||
 | 
					      "environment":null,
 | 
				
			||||||
 | 
					      "resolved":false,
 | 
				
			||||||
 | 
					      "ignored":false,
 | 
				
			||||||
 | 
					      "created_at":null,
 | 
				
			||||||
 | 
					      "comments_count":0,
 | 
				
			||||||
 | 
					      "message":"This is a test error generated by Honeybadger",
 | 
				
			||||||
 | 
					      "notices_count":1,
 | 
				
			||||||
 | 
					      "last_notice_at":null,
 | 
				
			||||||
 | 
					      "tags":[
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "id":123,
 | 
				
			||||||
 | 
					      "assignee":null,
 | 
				
			||||||
 | 
					      "url":"https://app.honeybadger.io/projects/54639/faults/123",
 | 
				
			||||||
 | 
					      "deploy":null
 | 
				
			||||||
 | 
					   },
 | 
				
			||||||
 | 
					   "notice":{
 | 
				
			||||||
 | 
					      "id":null,
 | 
				
			||||||
 | 
					      "environment":{
 | 
				
			||||||
 | 
					         "environment_name":"production"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "created_at":"2017-12-29T14:24:48.114317Z",
 | 
				
			||||||
 | 
					      "message":"This is a test error generated by Honeybadger",
 | 
				
			||||||
 | 
					      "token":null,
 | 
				
			||||||
 | 
					      "fault_id":123,
 | 
				
			||||||
 | 
					      "request":{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "backtrace":[
 | 
				
			||||||
 | 
					         {
 | 
				
			||||||
 | 
					            "file":"[PROJECT_ROOT]/lib/testing.rb",
 | 
				
			||||||
 | 
					            "number":"1",
 | 
				
			||||||
 | 
					            "method":"testing",
 | 
				
			||||||
 | 
					            "application_file":"lib/testing.rb",
 | 
				
			||||||
 | 
					            "context":"app"
 | 
				
			||||||
 | 
					         }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "application_trace":[
 | 
				
			||||||
 | 
					         {
 | 
				
			||||||
 | 
					            "file":"[PROJECT_ROOT]/lib/testing.rb",
 | 
				
			||||||
 | 
					            "number":"1",
 | 
				
			||||||
 | 
					            "method":"testing",
 | 
				
			||||||
 | 
					            "application_file":"lib/testing.rb",
 | 
				
			||||||
 | 
					            "context":"app"
 | 
				
			||||||
 | 
					         }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "web_environment":{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "deploy":null,
 | 
				
			||||||
 | 
					      "url":"https://app.honeybadger.io/projects/54639/faults/123/0636e982-eca4-11e7-9974-1058555bf71c"
 | 
				
			||||||
 | 
					   },
 | 
				
			||||||
 | 
					   "context":null
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										65
									
								
								zerver/webhooks/honeybadger/fixtures/uptime.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								zerver/webhooks/honeybadger/fixtures/uptime.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,65 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					   "event":"up",
 | 
				
			||||||
 | 
					   "message":"[Zulip Integration] Zulip will now receive uptime alerts.",
 | 
				
			||||||
 | 
					   "project":{
 | 
				
			||||||
 | 
					      "id":54639,
 | 
				
			||||||
 | 
					      "name":"Zulip Integration",
 | 
				
			||||||
 | 
					      "token":"d144e04c",
 | 
				
			||||||
 | 
					      "created_at":"2017-12-29T14:18:50.512753Z",
 | 
				
			||||||
 | 
					      "disable_public_links":false,
 | 
				
			||||||
 | 
					      "pivotal_project_id":null,
 | 
				
			||||||
 | 
					      "asana_workspace_id":null,
 | 
				
			||||||
 | 
					      "github_project":null,
 | 
				
			||||||
 | 
					      "environments":[
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "owner":{
 | 
				
			||||||
 | 
					         "id":57245,
 | 
				
			||||||
 | 
					         "email":"madelf1337@gmail.com",
 | 
				
			||||||
 | 
					         "name":"Pranav Kulkarni"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "last_notice_at":null,
 | 
				
			||||||
 | 
					      "earliest_notice_at":"2017-11-29T14:51:11.443833Z",
 | 
				
			||||||
 | 
					      "unresolved_fault_count":0,
 | 
				
			||||||
 | 
					      "fault_count":0,
 | 
				
			||||||
 | 
					      "active":true,
 | 
				
			||||||
 | 
					      "users":[
 | 
				
			||||||
 | 
					         {
 | 
				
			||||||
 | 
					            "id":57245,
 | 
				
			||||||
 | 
					            "email":"madelf1337@gmail.com",
 | 
				
			||||||
 | 
					            "name":"Pranav Kulkarni"
 | 
				
			||||||
 | 
					         }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "sites":[
 | 
				
			||||||
 | 
					         {
 | 
				
			||||||
 | 
					            "id":"59ad71ac-6d2e-4fd0-a04f-b5c916c8f57e",
 | 
				
			||||||
 | 
					            "active":true,
 | 
				
			||||||
 | 
					            "last_checked_at":null,
 | 
				
			||||||
 | 
					            "name":"Zulip",
 | 
				
			||||||
 | 
					            "state":"up",
 | 
				
			||||||
 | 
					            "url":"https://zulipint.slack.com"
 | 
				
			||||||
 | 
					         }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "team_id":34534
 | 
				
			||||||
 | 
					   },
 | 
				
			||||||
 | 
					   "site":{
 | 
				
			||||||
 | 
					      "id":"59ad71ac-6d2e-4fd0-a04f-b5c916c8f57e",
 | 
				
			||||||
 | 
					      "name":"Zulip",
 | 
				
			||||||
 | 
					      "url":"https://zulipint.slack.com",
 | 
				
			||||||
 | 
					      "frequency":5,
 | 
				
			||||||
 | 
					      "match_type":"success",
 | 
				
			||||||
 | 
					      "match":"",
 | 
				
			||||||
 | 
					      "state":"pending",
 | 
				
			||||||
 | 
					      "active":true,
 | 
				
			||||||
 | 
					      "last_checked_at":null,
 | 
				
			||||||
 | 
					      "retries":0,
 | 
				
			||||||
 | 
					      "proxy":0
 | 
				
			||||||
 | 
					   },
 | 
				
			||||||
 | 
					   "outage":{
 | 
				
			||||||
 | 
					      "down_at":null,
 | 
				
			||||||
 | 
					      "up_at":null,
 | 
				
			||||||
 | 
					      "status":null,
 | 
				
			||||||
 | 
					      "reason":null,
 | 
				
			||||||
 | 
					      "headers":null
 | 
				
			||||||
 | 
					   }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user