Class Alerts


  • public class Alerts
    extends com.ibm.cloud.sdk.core.service.BaseService
    CIS Alert Policies. API Version: 1.0.0
    • Constructor Detail

      • Alerts

        public Alerts​(String crn,
                      String serviceName,
                      com.ibm.cloud.sdk.core.security.Authenticator authenticator)
        Constructs an instance of the `Alerts` client. The specified service name and authenticator are used to configure the client instance.
        Parameters:
        crn - Full url-encoded CRN of the service instance.
        serviceName - the service name to be used when configuring the client instance
        authenticator - the Authenticator instance to be configured for this client
    • Method Detail

      • newInstance

        public static Alerts newInstance​(String crn)
        Class method which constructs an instance of the `Alerts` client. The default service name is used to configure the client instance.
        Parameters:
        crn - Full url-encoded CRN of the service instance.
        Returns:
        an instance of the `Alerts` client using external configuration
      • newInstance

        public static Alerts newInstance​(String crn,
                                         String serviceName)
        Class method which constructs an instance of the `Alerts` client. The specified service name is used to configure the client instance.
        Parameters:
        crn - Full url-encoded CRN of the service instance.
        serviceName - the service name to be used when configuring the client instance
        Returns:
        an instance of the `Alerts` client using external configuration
      • getCrn

        public String getCrn()
        Gets the crn. Full url-encoded CRN of the service instance.
        Returns:
        the crn
      • setCrn

        public void setCrn​(String crn)
        Sets the crn.
        Parameters:
        crn - the new crn
      • getAlertPolicies

        public com.ibm.cloud.sdk.core.http.ServiceCall<ListAlertPoliciesResp> getAlertPolicies()
        List alert policies. List configured alert policies for the CIS instance.
        Returns:
        a ServiceCall with a result of type ListAlertPoliciesResp
      • createAlertPolicy

        public com.ibm.cloud.sdk.core.http.ServiceCall<AlertSuccessResp> createAlertPolicy()
        Create an alert policy. Create a new alert policy for the CIS instance.
        Returns:
        a ServiceCall with a result of type AlertSuccessResp
      • updateAlertPolicy

        public com.ibm.cloud.sdk.core.http.ServiceCall<AlertSuccessResp> updateAlertPolicy​(UpdateAlertPolicyOptions updateAlertPolicyOptions)
        Update an alert policy. Update an existing alert policy for the CIS instance.
        Parameters:
        updateAlertPolicyOptions - the UpdateAlertPolicyOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type AlertSuccessResp