java.lang.Object
org.elasticsearch.script.TimeSeries
- All Implemented Interfaces:
- Writeable,- ToXContent,- ToXContentFragment
A response class representing a snapshot of a 
TimeSeriesCounter at a point in time.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal longfinal longfinal longfinal longFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionTimeSeries(long total) TimeSeries(long fiveMinutes, long fifteenMinutes, long twentyFourHours, long total) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleaninthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
fiveMinutespublic final long fiveMinutes
- 
fifteenMinutespublic final long fifteenMinutes
- 
twentyFourHourspublic final long twentyFourHours
- 
totalpublic final long total
 
- 
- 
Constructor Details- 
TimeSeriespublic TimeSeries(long total) 
- 
TimeSeriespublic TimeSeries(long fiveMinutes, long fifteenMinutes, long twentyFourHours, long total) 
- 
TimeSeries- Throws:
- IOException
 
 
- 
- 
Method Details- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
areTimingsEmptypublic boolean areTimingsEmpty()
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-