public Alarm createAlarm ( ManagedEntity me , AlarmSpec as ) throws InvalidName , DuplicateName , RuntimeFault , RemoteException { if ( me == null ) { throw new IllegalArgumentException ( "entity must not be null." ) ; } ManagedObjectReference mor = getVimService ( ) . createAlarm ( getMOR ( ) , me . getMOR ( ) , as ) ; return new Alarm ( getServerConnection ( ) , mor ) ; }
Create an alarm against the given managed entity using the alarm specification