Skip to content

Commit 4480ca9

Browse files
committed
Added metric gnocchi service
1 parent 06de123 commit 4480ca9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/OpenStack.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,18 @@ public function imagesV2(array $options = []): \OpenStack\Images\v2\Service
182182
$defaults = ['catalogName' => 'glance', 'catalogType' => 'image'];
183183
return $this->builder->createService('Images\\v2', array_merge($defaults, $options));
184184
}
185+
186+
/**
187+
* Creates a new Gnocchi Metric service v1
188+
*
189+
* @param array $options
190+
*
191+
* @return \OpenStack\Metric\v1\Gnocchi\Service
192+
*/
193+
public function metricGnocchiV1(array $options = []): \OpenStack\Metric\v1\Gnocchi\Service
194+
{
195+
$defaults = ['catalogName' => 'gnocchi', 'catalogType' => 'metric'];
196+
197+
return $this->builder->createService('Metric\\v1\\Gnocchi', array_merge($defaults, $options));
198+
}
185199
}

0 commit comments

Comments
 (0)