Overview
  • Namespace
  • Class

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CDN
      • Resource
    • CloudMonitoring
      • Collection
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Collection
      • Enum
      • Resource
    • Networking
      • Resource
    • ObjectStore
      • Constants
      • Enum
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource

Classes

  • MonitoringIterator

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
Extended by OpenCloud\Common\Collection\ArrayCollection implements Countable
Extended by OpenCloud\Common\Collection\ResourceIterator implements Iterator
Extended by OpenCloud\Common\Collection\PaginatedIterator implements Iterator
Extended by OpenCloud\CloudMonitoring\Collection\MonitoringIterator
Namespace: OpenCloud\CloudMonitoring\Collection
Package: OpenCloud\Common\Collection
Since: 1.8.0
Located at OpenCloud/CloudMonitoring/Collection/MonitoringIterator.php

Methods summary

public array
# parseResponseBody( $body )

Based on the response from the API, parse it for the data we need (i.e. an meaningful array of elements).

Based on the response from the API, parse it for the data we need (i.e. an meaningful array of elements).

Parameters

$body

Returns

array

Overrides

OpenCloud\Common\Collection\PaginatedIterator::parseResponseBody

Methods inherited from OpenCloud\Common\Collection\PaginatedIterator

appendElements(), appendNewCollection(), constructNextUrl(), current(), extractNextLink(), factory(), key(), next(), populateAll(), rewind(), setBaseUrl(), updateMarkerToCurrent(), valid()

Methods inherited from OpenCloud\Common\Collection\ResourceIterator

constructResource(), currentElement(), first(), getElement(), getOption(), getOptions(), search(), setOption(), setOptions(), setResourceParent(), sort()

Methods inherited from OpenCloud\Common\Collection\ArrayCollection

__construct(), append(), count(), setElements(), valueExists()

Methods inherited from OpenCloud\Common\ArrayAccess

offsetExists(), offsetGet(), offsetSet(), offsetUnset()

Constants summary

Constants inherited from OpenCloud\Common\Collection\PaginatedIterator

LIMIT, MARKER

API documentation generated by ApiGen