Class MonitoringIterator
Class ResourceIterator is tasked with iterating over resource collections - many of which are paginated. Based on a base URL, the iterator will append elements based on further requests to the API. Each time this happens, query parameters (marker) are updated based on the current value.
- OpenCloud\Common\ArrayAccess implements ArrayAccess
-
OpenCloud\Common\Collection\ArrayCollection implements Countable
-
OpenCloud\Common\Collection\ResourceIterator implements Iterator
-
OpenCloud\Common\Collection\PaginatedIterator implements Iterator
-
OpenCloud\CloudMonitoring\Collection\MonitoringIterator
Namespace: OpenCloud\CloudMonitoring\Collection
Package: OpenCloud\Common\Collection
Since: 1.8.0
Located at OpenCloud/CloudMonitoring/Collection/MonitoringIterator.php
Package: OpenCloud\Common\Collection
Since: 1.8.0
Located at OpenCloud/CloudMonitoring/Collection/MonitoringIterator.php
public
array
|
#
parseResponseBody( mixed $body )
Based on the response from the API, parse it for the data we need (i.e. an meaningful array of elements). |
__construct(),
append(),
count(),
setElements(),
valueExists()
|
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset()
|
LIMIT,
MARKER
|
$currentMarker,
$defaults,
$nextUrl,
$required
|
$options,
$position,
$resourceParent
|
$elements
|