Class Calendar
java.lang.Object
org.elasticsearch.client.ml.calendars.Calendar
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.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.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
int
hashCode()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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.xcontent.ToXContentObject
isFragment
-
Field Details
-
CALENDAR_TYPE
- See Also:
-
JOB_IDS
public static final org.elasticsearch.xcontent.ParseField JOB_IDS -
ID
public static final org.elasticsearch.xcontent.ParseField ID -
DESCRIPTION
public static final org.elasticsearch.xcontent.ParseField DESCRIPTION -
PARSER
-
-
Constructor Details
-
Calendar
jobIds
can 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.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-