2014-05-27 15:26:52 -04:00
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class Cloudstack
|
|
|
|
|
|
|
|
class Real
|
|
|
|
# Creates a condition
|
|
|
|
#
|
|
|
|
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/createCondition.html]
|
2014-08-26 11:04:07 -04:00
|
|
|
def create_condition(relationaloperator, threshold, counterid, options={})
|
2014-05-27 15:26:52 -04:00
|
|
|
options.merge!(
|
|
|
|
'command' => 'createCondition',
|
2014-08-26 03:55:39 -04:00
|
|
|
'relationaloperator' => relationaloperator,
|
2014-08-26 11:04:07 -04:00
|
|
|
'threshold' => threshold,
|
2014-06-06 14:50:08 -04:00
|
|
|
'counterid' => counterid
|
2014-05-27 15:26:52 -04:00
|
|
|
)
|
|
|
|
request(options)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|