Skip to content

Commit f84be50

Browse files
author
kishan
committed
bug 6428: Send alert when usage job fails
status 6428: resolved fixed
1 parent c40f053 commit f84be50

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

‎core/src/com/cloud/alert/AlertManager.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public interface AlertManager extends Manager {
4040
public static final short ALERT_TYPE_CONSOLE_PROXY_MIGRATE = 15;
4141
public static final short ALERT_TYPE_USERVM_MIGRATE = 16;
4242
public static final short ALERT_TYPE_VLAN = 17;
43-
public static final short ALERT_TYPE_SSVM = 18;
43+
public static final short ALERT_TYPE_SSVM = 18;
44+
public static final short ALERT_TYPE_USAGE_SERVER_RESULT = 19; // Usage job result
4445

4546
void clearAlert(short alertType, long dataCenterId, long podId);
4647
void sendAlert(short alertType, long dataCenterId, Long podId, String subject, String body);
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/**
2+
* Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
3+
*
4+
* This software is licensed under the GNU General Public License v3 or later.
5+
*
6+
* It is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or any later version.
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*
17+
*/
18+
package com.cloud.exception;
19+
20+
public class UsageServerException extends Exception {
21+
22+
public UsageServerException() {
23+
24+
}
25+
26+
public UsageServerException(String message) {
27+
super(message);
28+
}
29+
30+
31+
32+
33+
}

0 commit comments

Comments
 (0)