TestsNotificationRule Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. NotificationRule - com.
azure. developer. loadtesting. models. TestsNotificationRule
- com.
- com.
public final class TestsNotificationRule
extends NotificationRule
Tests Notification rule model.
Constructor Summary
| Constructor | Description |
|---|---|
| TestsNotificationRule() |
Creates an instance of Tests |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Tests |
fromJson(JsonReader jsonReader)
Reads an instance of Tests |
|
Map<String,Tests |
getEventFilters()
Get the event |
|
Notification |
getScope()
Get the scope property: The scope of the notification rule. |
| List<String> |
getTestIds()
Get the test |
|
Tests |
setActionGroupIds(List<String> actionGroupIds)
Set the action |
|
Tests |
setDisplayName(String displayName)
Set the display |
|
Tests |
setEventFilters(Map<String,TestsNotificationEventFilter> eventFilters)
Set the event |
|
Tests |
setTestIds(List<String> testIds)
Set the test |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from NotificationRule
Methods inherited from java.lang.Object
Constructor Details
TestsNotificationRule
public TestsNotificationRule()
Creates an instance of TestsNotificationRule class.
Method Details
fromJson
public static TestsNotificationRule fromJson(JsonReader jsonReader)
Reads an instance of TestsNotificationRule from the JsonReader.
Parameters:
Returns:
Throws:
getEventFilters
public Map<String,TestsNotificationEventFilter> getEventFilters()
Get the eventFilters property: The event to receive notifications for along with filtering conditions. Key is a user-assigned identifier for the event filter.
Returns:
getScope
public NotificationScopeType getScope()
Get the scope property: The scope of the notification rule.
Overrides:
TestsNotificationRule.getScope()Returns:
getTestIds
public List<String> getTestIds()
Get the testIds property: The test ids to include. If not provided, notification will be sent for all testIds.
Returns:
setActionGroupIds
public TestsNotificationRule setActionGroupIds(List<String> actionGroupIds)
Set the actionGroupIds property: The action groups to notify.
Required when create the resource.
Overrides:
TestsNotificationRule.setActionGroupIds(List<String> actionGroupIds)Parameters:
setDisplayName
public TestsNotificationRule setDisplayName(String displayName)
Set the displayName property: The name of the notification rule.
Required when create the resource.
Overrides:
TestsNotificationRule.setDisplayName(String displayName)Parameters:
setEventFilters
public TestsNotificationRule setEventFilters(Map<String,TestsNotificationEventFilter> eventFilters)
Set the eventFilters property: The event to receive notifications for along with filtering conditions. Key is a user-assigned identifier for the event filter.
Required when create the resource.
Parameters:
Returns:
setTestIds
public TestsNotificationRule setTestIds(List<String> testIds)
Set the testIds property: The test ids to include. If not provided, notification will be sent for all testIds.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
TestsNotificationRule.toJson(JsonWriter jsonWriter)Parameters:
Throws: