Documentation ¶
Index ¶
- func CreateArchivePolicy(t *testing.T, client *gophercloud.ServiceClient) (*archivepolicies.ArchivePolicy, error)
- func CreateGenericResource(t *testing.T, client *gophercloud.ServiceClient) (*resources.Resource, error)
- func CreateMeasures(t *testing.T, client *gophercloud.ServiceClient, metricID string) error
- func CreateMetric(t *testing.T, client *gophercloud.ServiceClient) (*metrics.Metric, error)
- func CreateResourceType(t *testing.T, client *gophercloud.ServiceClient) (*resourcetypes.ResourceType, error)
- func CreateResourcesToBatchMeasures(t *testing.T, client *gophercloud.ServiceClient) (map[string][]string, error)
- func DeleteArchivePolicy(t *testing.T, client *gophercloud.ServiceClient, archivePolicyName string)
- func DeleteMetric(t *testing.T, client *gophercloud.ServiceClient, metricID string)
- func DeleteResource(t *testing.T, client *gophercloud.ServiceClient, ...)
- func DeleteResourceType(t *testing.T, client *gophercloud.ServiceClient, resourceTypeName string)
- func MeasuresBatchCreateMetrics(t *testing.T, client *gophercloud.ServiceClient, metricIDs ...string) error
- func MeasuresBatchCreateResourcesMetrics(t *testing.T, client *gophercloud.ServiceClient, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateArchivePolicy ¶
func CreateArchivePolicy(t *testing.T, client *gophercloud.ServiceClient) (*archivepolicies.ArchivePolicy, error)
CreateArchivePolicy will create a Gnocchi archive policy. An error will be returned if the archive policy could not be created.
func CreateGenericResource ¶
func CreateGenericResource(t *testing.T, client *gophercloud.ServiceClient) (*resources.Resource, error)
CreateGenericResource will create a Gnocchi resource with a generic type. An error will be returned if the resource could not be created.
func CreateMeasures ¶
func CreateMeasures(t *testing.T, client *gophercloud.ServiceClient, metricID string) error
CreateMeasures will create measures inside a single Gnocchi metric. An error will be returned if the measures could not be created.
func CreateMetric ¶
func CreateMetric(t *testing.T, client *gophercloud.ServiceClient) (*metrics.Metric, error)
CreateMetric will create Gnocchi metric. An error will be returned if the metric could not be created.
func CreateResourceType ¶
func CreateResourceType(t *testing.T, client *gophercloud.ServiceClient) (*resourcetypes.ResourceType, error)
CreateResourceType creates Gnocchi resource type. An error will be returned if the resource type could not be created.
func CreateResourcesToBatchMeasures ¶
func CreateResourcesToBatchMeasures(t *testing.T, client *gophercloud.ServiceClient) (map[string][]string, error)
CreateResourcesToBatchMeasures will create Gnocchi resources with metrics to test batch measures requests and return a map with references of resource IDs and metric names. An error will be returned if resources or metrics could not be created.
func DeleteArchivePolicy ¶
func DeleteArchivePolicy(t *testing.T, client *gophercloud.ServiceClient, archivePolicyName string)
DeleteArchivePolicy will delete a Gnocchi archive policy. A fatal error will occur if the delete was not successful.
func DeleteMetric ¶
func DeleteMetric(t *testing.T, client *gophercloud.ServiceClient, metricID string)
DeleteMetric will delete a Gnocchi metric with a specified ID. A fatal error will occur if the delete was not successful.
func DeleteResource ¶
func DeleteResource(t *testing.T, client *gophercloud.ServiceClient, resourceType, resourceID string)
DeleteResource will delete a Gnocchi resource with specified type and ID. A fatal error will occur if the delete was not successful.
func DeleteResourceType ¶
func DeleteResourceType(t *testing.T, client *gophercloud.ServiceClient, resourceTypeName string)
DeleteResourceType deletes a Gnocchi resource type with the specified name. A fatal error will occur if the delete was not successful.
func MeasuresBatchCreateMetrics ¶
func MeasuresBatchCreateMetrics(t *testing.T, client *gophercloud.ServiceClient, metricIDs ...string) error
MeasuresBatchCreateMetrics will create measures inside different metrics via batch request. An error will be returned if measures could not be created.
func MeasuresBatchCreateResourcesMetrics ¶
func MeasuresBatchCreateResourcesMetrics(t *testing.T, client *gophercloud.ServiceClient, batchResourcesMetrics map[string][]string) error
MeasuresBatchCreateResourcesMetrics will create measures inside different metrics via batch request to resource IDs. The batchResourcesMetrics arguments is a mapping between resource IDs and corresponding metric names. An error will be returned if measures could not be created.
Types ¶
This section is empty.