Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Stats fields with the latest MessageTraffic types #698

Merged
merged 3 commits into from
Aug 27, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/src/main/java/io/ably/lib/types/Stats.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ public static class ProcessedMessages {
public Map<String, ProcessedCount> delta;
}

public static class PushedMessages {
public int messages;
public Map<String, Integer> notifications;
public int directPublishes;
}

public enum Granularity {
minute,
hour,
Expand Down Expand Up @@ -117,6 +123,8 @@ public static long fromIntervalId(String intervalId) {

public String intervalId;
public String unit;
public int count;
public String inProgress;
public MessageTypes all;
public MessageTraffic inbound;
public MessageTraffic outbound;
Expand All @@ -125,5 +133,5 @@ public static long fromIntervalId(String intervalId) {
public ResourceCount channels;
public RequestCount apiRequests;
public RequestCount tokenRequests;
public ProcessedMessages processed;
QuintinWillison marked this conversation as resolved.
Show resolved Hide resolved
public PushedMessages push;
}