Class Calendar
java.lang.Object
org.elasticsearch.client.ml.calendars.Calendar
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.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
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()inthashCode()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
CALENDAR_TYPE
- See Also:
- Constant Field Values
-
JOB_IDS
public static final org.elasticsearch.common.xcontent.ParseField JOB_IDS -
ID
public static final org.elasticsearch.common.xcontent.ParseField ID -
DESCRIPTION
public static final org.elasticsearch.common.xcontent.ParseField DESCRIPTION -
PARSER
-
-
Constructor Details
-
Calendar
jobIdscan be a mix of job groups and job Ids- Parameters:
id- The calendar IdjobIds- List of job Ids or job groupsdescription- An optional description
-
-
Method Details
-
getId
-
getJobIds
-
getDescription
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-