Class NotificationResponse


  • public final class NotificationResponse
    extends java.lang.Object
    • Method Detail

      • contactEmails

        public java.util.List<java.lang.String> contactEmails()
        Returns:
        Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. Supported for CategoryType(s): Cost, ReservationUtilization.
      • contactGroups

        public java.util.List<java.lang.String> contactGroups()
        Returns:
        Subscription or Resource Group scopes only. Action groups to send the notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Supported for CategoryType(s): Cost.
      • contactRoles

        public java.util.List<java.lang.String> contactRoles()
        Returns:
        Subscription or Resource Group scopes only. Contact roles to send the notification to when the threshold is breached. Supported for CategoryType(s): Cost.
      • enabled

        public java.lang.Boolean enabled()
        Returns:
        The notification is enabled or not. Supported for CategoryType(s): Cost, ReservationUtilization.
      • frequency

        public java.util.Optional<java.lang.String> frequency()
        Returns:
        Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days). Supported for CategoryType(s): ReservationUtilization.
      • locale

        public java.util.Optional<java.lang.String> locale()
        Returns:
        Language in which the recipient will receive the notification, Supported for CategoryType(s): Cost, ReservationUtilization.
      • operator

        public java.lang.String operator()
        Returns:
        The comparison operator. Supported for CategoryType(s): Cost, ReservationUtilization. Supported operators for **CategoryType: Cost** - GreaterThan - GreaterThanOrEqualTo Supported operators for **CategoryType: ReservationUtilization** - LessThan
      • threshold

        public java.lang.Double threshold()
        Returns:
        Threshold value associated with a notification. It is always percent with a maximum of 2 decimal places. Supported for CategoryType(s): Cost, ReservationUtilization. **CategoryType: Cost** - Must be between 0 and 1000. Notification is sent when the cost exceeded the threshold. **CategoryType: ReservationUtilization** - Must be between 0 and 100. Notification is sent when a reservation has a utilization percentage below the threshold.
      • thresholdType

        public java.util.Optional<java.lang.String> thresholdType()
        Returns:
        The type of threshold. Supported for CategoryType(s): Cost.