mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
added metric for pubsub
This commit is contained in:
@@ -57,6 +57,15 @@ public class MetricsBean {
|
||||
thisMinute.statusesInserted += statusesCount;
|
||||
}
|
||||
|
||||
public void pushReceived(int feedCount) {
|
||||
|
||||
thisHour.pushNotificationsReceived++;
|
||||
thisMinute.pushNotificationsReceived++;
|
||||
|
||||
thisHour.pushFeedsQueued += feedCount;
|
||||
thisMinute.pushFeedsQueued += feedCount;
|
||||
}
|
||||
|
||||
public void threadWaited() {
|
||||
thisHour.threadWaited++;
|
||||
thisMinute.threadWaited++;
|
||||
@@ -83,6 +92,8 @@ public class MetricsBean {
|
||||
private int entriesInserted;
|
||||
private int statusesInserted;
|
||||
private int threadWaited;
|
||||
private int pushNotificationsReceived;
|
||||
private int pushFeedsQueued;
|
||||
|
||||
public int getFeedsRefreshed() {
|
||||
return feedsRefreshed;
|
||||
@@ -124,5 +135,21 @@ public class MetricsBean {
|
||||
this.threadWaited = threadWaited;
|
||||
}
|
||||
|
||||
public int getPushNotificationsReceived() {
|
||||
return pushNotificationsReceived;
|
||||
}
|
||||
|
||||
public void setPushNotificationsReceived(int pushNotificationsReceived) {
|
||||
this.pushNotificationsReceived = pushNotificationsReceived;
|
||||
}
|
||||
|
||||
public int getPushFeedsQueued() {
|
||||
return pushFeedsQueued;
|
||||
}
|
||||
|
||||
public void setPushFeedsQueued(int pushFeedsQueued) {
|
||||
this.pushFeedsQueued = pushFeedsQueued;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user