com.evernote.edam.notestore
Class ClientUsageMetrics

java.lang.Object
  extended by com.evernote.edam.notestore.ClientUsageMetrics
All Implemented Interfaces:
com.evernote.thrift.TBase<ClientUsageMetrics>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<ClientUsageMetrics>

public class ClientUsageMetrics
extends java.lang.Object
implements com.evernote.thrift.TBase<ClientUsageMetrics>, java.io.Serializable, java.lang.Cloneable

This structure is passed from clients to the Evernote service when they wish to relay coarse-grained usage metrics to the service to help improve products.

sessions
This field contains a count of the number of usage "sessions" that have occurred with this client which have not previously been reported to the service. A "session" is defined as one of the 96 fifteen-minute intervals of the day when someone used Evernote's interface at least once. So if a user interacts with an Evernote client at 12:18, 12:24, and 12:36, and then the client synchronizes at 12:39, it would report that there were two previously-unreported sessions (one session for the 12:15-12:30 time period, and one for the 12:30-12:45 period). If the user used Evernote again at 12:41 and synchronized at 12:43, it would not report any new sessions, because the 12:30-12:45 session had already been reported.

See Also:
Serialized Form

Constructor Summary
ClientUsageMetrics()
           
ClientUsageMetrics(ClientUsageMetrics other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(ClientUsageMetrics other)
           
 ClientUsageMetrics deepCopy()
          Creates a deep copy of the object.
 boolean equals(ClientUsageMetrics that)
           
 boolean equals(java.lang.Object that)
           
 int getSessions()
           
 int hashCode()
           
 boolean isSetSessions()
          Returns true if field sessions is set (has been asigned a value) and false otherwise
 void read(com.evernote.thrift.protocol.TProtocol iprot)
          Reads an instance of the object from the given protocol.
 void setSessions(int sessions)
           
 void setSessionsIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetSessions()
           
 void validate()
           
 void write(com.evernote.thrift.protocol.TProtocol oprot)
          Writes the object to the given protocol.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientUsageMetrics

public ClientUsageMetrics()

ClientUsageMetrics

public ClientUsageMetrics(ClientUsageMetrics other)
Performs a deep copy on other.

Method Detail

deepCopy

public ClientUsageMetrics deepCopy()
Description copied from interface: com.evernote.thrift.TBase
Creates a deep copy of the object.

Specified by:
deepCopy in interface com.evernote.thrift.TBase<ClientUsageMetrics>

clear

public void clear()
Description copied from interface: com.evernote.thrift.TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface com.evernote.thrift.TBase<ClientUsageMetrics>

getSessions

public int getSessions()

setSessions

public void setSessions(int sessions)

unsetSessions

public void unsetSessions()

isSetSessions

public boolean isSetSessions()
Returns true if field sessions is set (has been asigned a value) and false otherwise


setSessionsIsSet

public void setSessionsIsSet(boolean value)

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(ClientUsageMetrics that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(ClientUsageMetrics other)
Specified by:
compareTo in interface java.lang.Comparable<ClientUsageMetrics>

read

public void read(com.evernote.thrift.protocol.TProtocol iprot)
          throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Reads an instance of the object from the given protocol.

Specified by:
read in interface com.evernote.thrift.TBase<ClientUsageMetrics>
Parameters:
iprot - Input protocol
Throws:
com.evernote.thrift.TException

write

public void write(com.evernote.thrift.protocol.TProtocol oprot)
           throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Writes the object to the given protocol.

Specified by:
write in interface com.evernote.thrift.TBase<ClientUsageMetrics>
Parameters:
oprot - Output protocol
Throws:
com.evernote.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws com.evernote.thrift.TException
Throws:
com.evernote.thrift.TException