Example #1
0
func alertsRetrieve(client *cm15.Api, alertsLocator string) []*cm15.AlertSpec {
	locator := client.AlertSpecLocator(alertsLocator)
	alertSpec, err := locator.Index(rsapi.ApiParams{"with_inherited": "false"})
	if err != nil {
		fmt.Println("failed to find alertspec: %s", err)
	}
	return alertSpec
}