@Internal public void alert(byte level, int objHash, String objType, String title, String message) { AlertPack p = new AlertPack(); p.time = System.currentTimeMillis(); p.level = level; p.objHash = objHash; p.objType = objType; p.title = title; p.message = message; AlertCore.add(p); }
public static void sendAlert(byte level, String title, String message, MapValue tags) { AlertPack p = new AlertPack(); p.objType = conf.obj_type; p.objHash = conf.getObjHash(); p.level = level; p.title = title; p.message = message; if (tags != null) { p.tags = tags; } sendDirect(p); }
public static void sendAlert(byte level, String title, String message, MapValue tags) { AlertPack p = new AlertPack(); p.objType = conf.obj_type; p.objHash = conf.getObjHash(); p.level = level; p.title = title; p.message = message; if (tags != null) { p.tags = tags; } sendDirect(p); } private static IntLinkedSet errText = new IntLinkedSet().setMax(10000);
public static void sendAlert(byte level, String title, String message, MapValue tags) { AlertPack p = new AlertPack(); p.objType = conf.obj_type; p.objHash = conf.getObjHash(); p.level = level; p.title = title; p.message = message; if (tags != null) { p.tags = tags; } sendDirect(p); } private static IntLinkedSet errText = new IntLinkedSet().setMax(10000);
public static void alert(byte level, RealCounter c, String title, String message) { long now = System.currentTimeMillis(); if (c.silentTime() > 0) { if (now < c.lastAlertTime(level) + c.silentTime() * 1000) return; } AlertPack p = new AlertPack(); p.time = now; p.level = level; p.objHash = c.objHash(); p.objType = c.objType(); p.title = title; p.message = message; c.setAlertTime(level, now); AlertCore.add(p); }
public static Pack createNonExt(byte packType) { switch (packType) { case MAP: return new MapPack(); case PERF_COUNTER: return new PerfCounterPack(); case PERF_STATUS: return new StatusPack(); case XLOG_PROFILE: return new XLogProfilePack(); case XLOG: return new XLogPack(); case TEXT: return new TextPack(); case ALERT: return new AlertPack(); case OBJECT: return new ObjectPack(); case STACK: return new StackPack(); case SUMMARY: return new SummaryPack(); case BATCH: return new BatchPack(); case PERF_INTERACTION_COUNTER: return new InteractionPerfCounterPack(); default: return null; } }
return new TextPack(); case ALERT: return new AlertPack(); case OBJECT: return new ObjectPack();
return new TextPack(); case ALERT: return new AlertPack(); case OBJECT: return new ObjectPack();
return new TextPack(); case ALERT: return new AlertPack(); case OBJECT: return new ObjectPack();
return new TextPack(); case ALERT: return new AlertPack(); case OBJECT: return new ObjectPack();
@Internal public void alert(byte level, int objHash, String objType, String title, String message) { AlertPack p = new AlertPack(); p.time = System.currentTimeMillis(); p.level = level; p.objHash = objHash; p.objType = objType; p.title = title; p.message = message; AlertCore.add(p); }
public static void sendAlert(byte level, String title, String message, MapValue tags) { AlertPack p = new AlertPack(); p.objType = conf.obj_type; p.objHash = conf.getObjHash(); p.level = level; p.title = title; p.message = message; if (tags != null) { p.tags = tags; } sendDirect(p); } private static IntLinkedSet errText = new IntLinkedSet().setMax(10000);
public static void alert(byte level, RealCounter c, String title, String message) { long now = System.currentTimeMillis(); if (c.silentTime() > 0) { if (now < c.lastAlertTime(level) + c.silentTime() * 1000) return; } AlertPack p = new AlertPack(); p.time = now; p.level = level; p.objHash = c.objHash(); p.objType = c.objType(); p.title = title; p.message = message; c.setAlertTime(level, now); AlertCore.add(p); }
return new TextPack(); case ALERT: return new AlertPack(); case OBJECT: return new ObjectPack();
return new TextPack(); case ALERT: return new AlertPack(); case OBJECT: return new ObjectPack();
return new TextPack(); case ALERT: return new AlertPack(); case OBJECT: return new ObjectPack();