NewAlarmConfiguration Constructor |
This API is preliminary and subject to change.
Namespace: net.openstack.Providers.Rackspace.Objects.MonitoringAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax public NewAlarmConfiguration(
CheckId checkId,
NotificationPlanId notificationPlanId,
string criteria = null,
Nullable<bool> enabled = null,
string label = null,
IDictionary<string, string> metadata = null
)
Public Sub New (
checkId As CheckId,
notificationPlanId As NotificationPlanId,
Optional criteria As String = Nothing,
Optional enabled As Nullable(Of Boolean) = Nothing,
Optional label As String = Nothing,
Optional metadata As IDictionary(Of String, String) = Nothing
)
public:
NewAlarmConfiguration(
CheckId^ checkId,
NotificationPlanId^ notificationPlanId,
String^ criteria = nullptr,
Nullable<bool> enabled = nullptr,
String^ label = nullptr,
IDictionary<String^, String^>^ metadata = nullptr
)
new :
checkId : CheckId *
notificationPlanId : NotificationPlanId *
?criteria : string *
?enabled : Nullable<bool> *
?label : string *
?metadata : IDictionary<string, string>
(* Defaults:
let _criteria = defaultArg criteria null
let _enabled = defaultArg enabled null
let _label = defaultArg label null
let _metadata = defaultArg metadata null
*)
-> NewAlarmConfiguration
Parameters
- checkId
- Type: net.openstack.Providers.Rackspace.Objects.MonitoringCheckId
The ID of the check to alert on. This is obtained from Check.Id. - notificationPlanId
- Type: net.openstack.Providers.Rackspace.Objects.MonitoringNotificationPlanId
The ID of the notification plan to execute when the state changes. This is obtained from NotificationPlan.Id. - criteria (Optional)
- Type: SystemString
The alarm DSL for describing alerting conditions and their output states. - enabled (Optional)
- Type: SystemNullableBoolean
to enable processing and alerts on this alarm; otherwise, . If this value is , . - label (Optional)
- Type: SystemString
A friendly label for the alarm. - metadata (Optional)
- Type: System.Collections.GenericIDictionaryString, String
A collection of metadata to associate with the alarm.
Exceptions Version Information .NET Framework
Supported in: 4.5
openstack.net
Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also