Tabnine Logo
ManagementService.archiveAlerts
Code IndexAdd Tabnine to your IDE (free)

How to use
archiveAlerts
method
in
com.cloud.server.ManagementService

Best Java code snippets using com.cloud.server.ManagementService.archiveAlerts (Showing top 2 results out of 315)

origin: apache/cloudstack

  @Override
  public void execute() {
    if (ids == null && type == null && endDate == null) {
      throw new InvalidParameterValueException("either ids, type, startdate or enddate must be specified");
    } else if (startDate != null && endDate == null) {
      throw new InvalidParameterValueException("enddate must be specified with startdate parameter");
    }
    boolean result = _mgr.archiveAlerts(this);
    if (result) {
      SuccessResponse response = new SuccessResponse(getCommandName());
      this.setResponseObject(response);
    } else {
      throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Unable to archive Alerts, one or more parameters has invalid values");
    }
  }
}
origin: MissionCriticalCloud/cosmic

@Override
public void execute() {
  if (ids == null && type == null && endDate == null) {
    throw new InvalidParameterValueException("either ids, type, startdate or enddate must be specified");
  } else if (startDate != null && endDate == null) {
    throw new InvalidParameterValueException("enddate must be specified with startdate parameter");
  }
  final boolean result = _mgr.archiveAlerts(this);
  if (result) {
    final SuccessResponse response = new SuccessResponse(getCommandName());
    this.setResponseObject(response);
  } else {
    throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Unable to archive Alerts, one or more parameters has invalid values");
  }
}
com.cloud.serverManagementServicearchiveAlerts

Javadoc

Archive alerts

Popular methods of ManagementService

  • searchForClusters
    Searches for Clusters by the specified search criteria
  • searchForConfigurations
    returns the a map of the names/values in the configuraton table
  • updateHostPassword
  • generateRandomPassword
    Generates a random password that will be used (initially) by newly created and started virtual machi
  • listDeploymentPlanners
  • searchForVlans
    Searches for vlan by the specified search criteria Can search by: "id", "vlan", "name", "zoneID"
  • addGuestOs
    Adds a new guest OS
  • addGuestOsMapping
    Adds a new guest OS mapping
  • archiveEvents
    Archive events
  • cleanupVMReservations
  • createSSHKeyPair
    Creates a new
  • deleteAlerts
    Delete alerts
  • createSSHKeyPair,
  • deleteAlerts,
  • deleteEvents,
  • deleteSSHKeyPair,
  • destroySystemVM,
  • findSystemVMTypeById,
  • getAddedGuestOs,
  • getAddedGuestOsMapping,
  • getCloudIdentifierResponse

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now