mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
573 B
Ruby
21 lines
573 B
Ruby
![]() |
Shindo.tests("Fog::Joyent[:analytics] | metrics", %w{joyent}) do
|
||
|
@analytics = Fog::Joyent[:analytics]
|
||
|
@metrics = @analytics.metrics
|
||
|
|
||
|
tests('#all').succeeds do
|
||
|
@metrics.all
|
||
|
end
|
||
|
|
||
|
tests('#new').succeeds do
|
||
|
@metrics.new({
|
||
|
"module" => "cpu",
|
||
|
"stat" => "thread_executions",
|
||
|
"label" => "thread executions",
|
||
|
"interval" => "interval",
|
||
|
"fields" => ["hostname", "zonename", "runtime"],
|
||
|
"unit" => "operations"
|
||
|
})
|
||
|
end
|
||
|
|
||
|
end
|