class Resource extends OperatorResource implements Retrievable

Traits

Constants

RESOURCE_TYPE_GENERIC

RESOURCE_TYPE_CEPH_ACCOUNT

RESOURCE_TYPE_HOST

RESOURCE_TYPE_HOST_DISK

RESOURCE_TYPE_HOST_NETWORK_INTERFACE

RESOURCE_TYPE_IDENTITY

RESOURCE_TYPE_IMAGE

RESOURCE_TYPE_INSTANCE

RESOURCE_TYPE_INSTANCE_DISK

RESOURCE_TYPE_INSTANCE_NETWORK_INTERFACE

RESOURCE_TYPE_IPMI

RESOURCE_TYPE_NETWORK

RESOURCE_TYPE_STACK

RESOURCE_TYPE_SWIFT_ACCOUNT

RESOURCE_TYPE_VOLUME

Properties

$createdByUserId string
$startedAt string
$displayName string
$revisionEnd string
$userId string
$createdByProjectId string
$id string
$metrics array
$host string
$imageRef string
$flavorId string
$serverGroup string
$originalResourceId string
$revisionStart string
$projectId string
$type string
$endedAt string

Methods

retrieve () : void

Retrieve details of the current resource from the remote API.

getMetric (string $metric) : Metric

No description

getMetricMeasures (array $options = array()) : array

No description

listResourceMetrics (array $options = array()) : Generator

No description

Details

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$resource->retrieve();

getMetric(string $metric)

Parameters

$metric string

Return value

Metric

Example code

$metric = $resource->getMetric($metric);

getMetricMeasures(array $options = array())

Parameters

$options array {see \OpenStack\Metric\v1\Gnocchi\Api::getResourceMetricMeasures}

Return value

array

Example code

$array = $resource->getMetricMeasures($options);

listResourceMetrics(array $options = array())

Parameters

$options array {see \OpenStack\Metric\v1\Gnocchi\Api::getResourceMetrics}

Return value

Generator

Example code

$generator = $resource->listResourceMetrics($options);