|
29 | 29 | import org.apache.cloudstack.api.command.admin.host.ListHostsCmd; |
30 | 30 | import org.apache.cloudstack.api.command.admin.host.UpdateHostPasswordCmd; |
31 | 31 | import org.apache.cloudstack.api.command.admin.pod.ListPodsByCmd; |
| 32 | +import org.apache.cloudstack.api.command.admin.resource.ArchiveAlertsCmd; |
| 33 | +import org.apache.cloudstack.api.command.admin.resource.DeleteAlertsCmd; |
32 | 34 | import org.apache.cloudstack.api.command.admin.resource.ListAlertsCmd; |
33 | 35 | import org.apache.cloudstack.api.command.admin.resource.ListCapacityCmd; |
34 | 36 | import org.apache.cloudstack.api.command.admin.resource.UploadCustomCertificateCmd; |
|
40 | 42 | import org.apache.cloudstack.api.command.admin.vlan.ListVlanIpRangesCmd; |
41 | 43 | import org.apache.cloudstack.api.command.user.address.ListPublicIpAddressesCmd; |
42 | 44 | import org.apache.cloudstack.api.command.user.config.ListCapabilitiesCmd; |
| 45 | +import org.apache.cloudstack.api.command.user.event.ArchiveEventsCmd; |
| 46 | +import org.apache.cloudstack.api.command.user.event.DeleteEventsCmd; |
43 | 47 | import org.apache.cloudstack.api.command.user.guest.ListGuestOsCategoriesCmd; |
44 | 48 | import org.apache.cloudstack.api.command.user.guest.ListGuestOsCmd; |
45 | 49 | import org.apache.cloudstack.api.command.user.iso.ListIsosCmd; |
46 | 50 | import org.apache.cloudstack.api.command.user.iso.UpdateIsoCmd; |
47 | | -import org.apache.cloudstack.api.command.user.offering.ListDiskOfferingsCmd; |
48 | | -import org.apache.cloudstack.api.command.user.offering.ListServiceOfferingsCmd; |
49 | 51 | import org.apache.cloudstack.api.command.user.ssh.CreateSSHKeyPairCmd; |
50 | 52 | import org.apache.cloudstack.api.command.user.ssh.DeleteSSHKeyPairCmd; |
51 | 53 | import org.apache.cloudstack.api.command.user.ssh.ListSSHKeyPairsCmd; |
|
55 | 57 | import org.apache.cloudstack.api.command.user.vm.GetVMPasswordCmd; |
56 | 58 | import org.apache.cloudstack.api.command.user.vmgroup.UpdateVMGroupCmd; |
57 | 59 | import org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd; |
58 | | -import org.apache.cloudstack.api.command.user.zone.ListZonesByCmd; |
59 | 60 |
|
60 | 61 | import com.cloud.alert.Alert; |
61 | 62 | import com.cloud.capacity.Capacity; |
62 | 63 | import com.cloud.configuration.Configuration; |
63 | | -import com.cloud.dc.DataCenter; |
64 | 64 | import com.cloud.dc.Pod; |
65 | 65 | import com.cloud.dc.Vlan; |
66 | 66 | import com.cloud.domain.Domain; |
|
72 | 72 | import com.cloud.hypervisor.Hypervisor.HypervisorType; |
73 | 73 | import com.cloud.hypervisor.HypervisorCapabilities; |
74 | 74 | import com.cloud.network.IpAddress; |
75 | | -import com.cloud.offering.DiskOffering; |
76 | | -import com.cloud.offering.ServiceOffering; |
77 | 75 | import com.cloud.org.Cluster; |
78 | 76 | import com.cloud.storage.GuestOS; |
79 | 77 | import com.cloud.storage.GuestOsCategory; |
@@ -194,6 +192,34 @@ public interface ManagementService { |
194 | 192 | */ |
195 | 193 | Pair<List<? extends Alert>, Integer> searchForAlerts(ListAlertsCmd cmd); |
196 | 194 |
|
| 195 | + /** |
| 196 | + * Archive alerts |
| 197 | + * @param cmd |
| 198 | + * @return True on success. False otherwise. |
| 199 | + */ |
| 200 | + boolean archiveAlerts(ArchiveAlertsCmd cmd); |
| 201 | + |
| 202 | + /** |
| 203 | + * Delete alerts |
| 204 | + * @param cmd |
| 205 | + * @return True on success. False otherwise. |
| 206 | + */ |
| 207 | + boolean deleteAlerts(DeleteAlertsCmd cmd); |
| 208 | + |
| 209 | + /** |
| 210 | + * Archive events |
| 211 | + * @param cmd |
| 212 | + * @return True on success. False otherwise. |
| 213 | + */ |
| 214 | + boolean archiveEvents(ArchiveEventsCmd cmd); |
| 215 | + |
| 216 | + /** |
| 217 | + * Delete events |
| 218 | + * @param cmd |
| 219 | + * @return True on success. False otherwise. |
| 220 | + */ |
| 221 | + boolean deleteEvents(DeleteEventsCmd cmd); |
| 222 | + |
197 | 223 | /** |
198 | 224 | * list all the capacity rows in capacity operations table |
199 | 225 | * |
|
0 commit comments