Jamie Hannaford | 7afb7af | 2014-11-04 13:32:20 +0100 | [diff] [blame^] | 1 | package monitors |
2 | |||||
3 | import ( | ||||
4 | "strconv" | ||||
5 | |||||
6 | "github.com/rackspace/gophercloud" | ||||
7 | ) | ||||
8 | |||||
9 | const ( | ||||
10 | path = "loadbalancers" | ||||
11 | monitorPath = "healthmonitor" | ||||
12 | ) | ||||
13 | |||||
14 | func rootURL(c *gophercloud.ServiceClient, lbID int) string { | ||||
15 | return c.ServiceURL(path, strconv.Itoa(lbID), monitorPath) | ||||
16 | } |