diff --git a/lib/fog/rackspace/models/monitoring/agent_tokens.rb b/lib/fog/rackspace/models/monitoring/agent_tokens.rb index a4f524f36..0e013ec71 100644 --- a/lib/fog/rackspace/models/monitoring/agent_tokens.rb +++ b/lib/fog/rackspace/models/monitoring/agent_tokens.rb @@ -6,11 +6,14 @@ module Fog class Monitoring class AgentTokens < Fog::Collection + attribute :marker + model Fog::Rackspace::Monitoring::AgentToken def all(options={}) clear body = service.list_agent_tokens(options).body + self.marker = data['metadata']['next_marker'] load(body['values']) end diff --git a/lib/fog/rackspace/models/monitoring/alarms.rb b/lib/fog/rackspace/models/monitoring/alarms.rb index f49104bd3..f053230c1 100644 --- a/lib/fog/rackspace/models/monitoring/alarms.rb +++ b/lib/fog/rackspace/models/monitoring/alarms.rb @@ -7,12 +7,15 @@ module Fog class Alarms < Fog::Collection attribute :entity + attribute :marker model Fog::Rackspace::Monitoring::Alarm def all(options={}) requires :entity data = service.list_alarms(entity.identity, options).body['values'] + self.marker = data['metadata']['next_marker'] + load(data) end diff --git a/lib/fog/rackspace/models/monitoring/checks.rb b/lib/fog/rackspace/models/monitoring/checks.rb index 8195ca813..c9736fd88 100644 --- a/lib/fog/rackspace/models/monitoring/checks.rb +++ b/lib/fog/rackspace/models/monitoring/checks.rb @@ -7,12 +7,15 @@ module Fog class Checks < Fog::Collection attribute :entity + attribute :marker model Fog::Rackspace::Monitoring::Check def all(options={}) requires :entity data = service.list_checks(entity.identity, options).body['values'] + self.marker = data['metadata']['next_marker'] + load(data) end