Class Calendar
- java.lang.Object
-
- org.elasticsearch.client.ml.calendars.Calendar
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class Calendar extends Object implements ToXContentObject
A simple calendar object for scheduled (special) events. The calendar consists of a name an a list of job Ids or job groups the events are stored separately and reference the calendar.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static StringCALENDAR_TYPEstatic ParseFieldDESCRIPTIONstatic ParseFieldIDstatic ParseFieldJOB_IDSstatic ConstructingObjectParser<Calendar,Void>PARSER-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDescription()StringgetId()List<String>getJobIds()inthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
CALENDAR_TYPE
public static final String CALENDAR_TYPE
- See Also:
- Constant Field Values
-
JOB_IDS
public static final ParseField JOB_IDS
-
ID
public static final ParseField ID
-
DESCRIPTION
public static final ParseField DESCRIPTION
-
PARSER
public static final ConstructingObjectParser<Calendar,Void> PARSER
-
-
Method Detail
-
getId
public String getId()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-