コード例 #1
0
					Value: time.Unix(sensuEvent.Check.Issued, 0).Format(time.RFC3339),
					Short: true,
				},
				slack.AttachmentField{
					Title: "Check State Duration",
					Value: strconv.Itoa(sensuhandler.DefineCheckStateDuration()),
					Short: true,
				},
				slack.AttachmentField{
					Title: "Current Threshold",
					Value: sensuEvent.AcquireThreshold(),
					Short: true,
				},
				slack.AttachmentField{
					Title: "Uchiwa",
					Value: sensuEnv.AcquireUchiwa(sensuEvent.AcquireMonitoredInstance(), sensuEvent.Check.Name),
					Short: true,
				},
				slack.AttachmentField{
					Title: "Playbook",
					Value: sensuEvent.AcquirePlaybook(),
					Short: true,
				},
				slack.AttachmentField{
					Title: "Sensu Environment",
					Value: sensuhandler.DefineSensuEnv(sensuEnv.Sensu.Environment),
					Short: true,
				},
				slack.AttachmentField{
					Title: "Check Event ID",
					Value: sensuEvent.ID,