Groovy Documentation

com.ace.mws.reports
[Groovy] Class Sample

java.lang.Object
  com.ace.mws.reports.Sample

class Sample

A single snapshot of system state. It can contain all the same information as Datapoint#data#data in the sample's data field.

Authors:
bsaville


Field Summary
private String agent

A unique identifier for the agent that recorded this sample.

private Map data

(Map of String => String) Arbitrary data that was recorded for this sample.

private Long id

private static long serialVersionUID

private Date timestamp

The date and time at which this sample was recorded.

 
Constructor Summary
Sample()

 
Method Summary
String getAgent()

A unique identifier for the agent that recorded this sample.

Map getData()

(Map of String => String) Arbitrary data that was recorded for this sample.

Long getId()

Date getTimestamp()

The date and time at which this sample was recorded.

void setAgent(String agent)

A unique identifier for the agent that recorded this sample.

void setData(Map data)

(Map of String => String) Arbitrary data that was recorded for this sample.

void setId(Long id)

void setTimestamp(Date timestamp)

The date and time at which this sample was recorded.

String toString()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

agent

private String agent
A unique identifier for the agent that recorded this sample.


data

private Map data
(Map of String => String) Arbitrary data that was recorded for this sample. Defaults to an empty object if none is supplied.
See Also:
Map


id

private Long id


serialVersionUID

private static final long serialVersionUID


timestamp

private Date timestamp
The date and time at which this sample was recorded. Defaults to the current date if none is supplied.


 
Constructor Detail

Sample

Sample()


 
Method Detail

getAgent

String getAgent()
A unique identifier for the agent that recorded this sample.


getData

Map getData()
(Map of String => String) Arbitrary data that was recorded for this sample. Defaults to an empty object if none is supplied.
See Also:
Map


getId

Long getId()


getTimestamp

Date getTimestamp()
The date and time at which this sample was recorded. Defaults to the current date if none is supplied.


setAgent

void setAgent(String agent)
A unique identifier for the agent that recorded this sample.


setData

void setData(Map data)
(Map of String => String) Arbitrary data that was recorded for this sample. Defaults to an empty object if none is supplied.
See Also:
Map


setId

void setId(Long id)


setTimestamp

void setTimestamp(Date timestamp)
The date and time at which this sample was recorded. Defaults to the current date if none is supplied.


toString

String toString()


 

Groovy Documentation