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
Modifier and TypeFieldDescriptionstatic String
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
int
hashCode()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(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, wait
Methods 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
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.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-