Adding list events
diff --git a/rackspace/lb/v1/nodes/urls.go b/rackspace/lb/v1/nodes/urls.go
index d2ae7c3..69444c8 100644
--- a/rackspace/lb/v1/nodes/urls.go
+++ b/rackspace/lb/v1/nodes/urls.go
@@ -7,8 +7,9 @@
)
const (
- lbPath = "loadbalancers"
- nodePath = "nodes"
+ lbPath = "loadbalancers"
+ nodePath = "nodes"
+ eventPath = "events"
)
func resourceURL(c *gophercloud.ServiceClient, lbID, nodeID int) string {
@@ -18,3 +19,7 @@
func rootURL(c *gophercloud.ServiceClient, lbID int) string {
return c.ServiceURL(lbPath, strconv.Itoa(lbID), nodePath)
}
+
+func eventsURL(c *gophercloud.ServiceClient, lbID, nodeID int) string {
+ return c.ServiceURL(lbPath, strconv.Itoa(lbID), nodePath, strconv.Itoa(nodeID), eventPath)
+}