MonitoredSubscription Class
- java.
lang. Object - com.
azure. resourcemanager. datadog. models. MonitoredSubscription
- com.
Implements
public final class MonitoredSubscription
implements JsonSerializable<MonitoredSubscription>
The list of subscriptions and it's monitoring status by current Datadog monitor.
Constructor Summary
| Constructor | Description |
|---|---|
| MonitoredSubscription() |
Creates an instance of Monitored |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
error()
Get the error property: The reason of not monitoring the subscription. |
|
static
Monitored |
fromJson(JsonReader jsonReader)
Reads an instance of Monitored |
| Status |
status()
Get the status property: The state of monitoring. |
| String |
subscriptionId()
Get the subscription |
|
Monitoring |
tagRules()
Get the tag |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Monitored |
withError(String error)
Set the error property: The reason of not monitoring the subscription. |
|
Monitored |
withStatus(Status status)
Set the status property: The state of monitoring. |
|
Monitored |
withSubscriptionId(String subscriptionId)
Set the subscription |
|
Monitored |
withTagRules(MonitoringTagRulesProperties tagRules)
Set the tag |
Methods inherited from java.lang.Object
Constructor Details
MonitoredSubscription
public MonitoredSubscription()
Creates an instance of MonitoredSubscription class.
Method Details
error
public String error()
Get the error property: The reason of not monitoring the subscription.
Returns:
fromJson
public static MonitoredSubscription fromJson(JsonReader jsonReader)
Reads an instance of MonitoredSubscription from the JsonReader.
Parameters:
Returns:
Throws:
status
public Status status()
Get the status property: The state of monitoring.
Returns:
subscriptionId
public String subscriptionId()
Get the subscriptionId property: The subscriptionId to be monitored.
Returns:
tagRules
public MonitoringTagRulesProperties tagRules()
Get the tagRules property: Definition of the properties for a TagRules resource.
Returns:
toJson
validate
public void validate()
Validates the instance.
withError
public MonitoredSubscription withError(String error)
Set the error property: The reason of not monitoring the subscription.
Parameters:
Returns:
withStatus
public MonitoredSubscription withStatus(Status status)
Set the status property: The state of monitoring.
Parameters:
Returns:
withSubscriptionId
public MonitoredSubscription withSubscriptionId(String subscriptionId)
Set the subscriptionId property: The subscriptionId to be monitored.
Parameters:
Returns:
withTagRules
public MonitoredSubscription withTagRules(MonitoringTagRulesProperties tagRules)
Set the tagRules property: Definition of the properties for a TagRules resource.
Parameters:
Returns: