|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.Resource com.splunk.Entity com.splunk.DataModel
public class DataModel
DataModel represents a data model on the server. Data models contain data model objects, which specify structured views on Splunk data.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class com.splunk.Entity |
---|
content, toUpdate |
Fields inherited from class com.splunk.Resource |
---|
actions, path, refreshArgs, service, title |
Method Summary | |
---|---|
boolean |
containsObject(java.lang.String name)
Returns whether there is an object of the given name in this data model. |
java.lang.String |
getAccelerationCronSchedule()
Return the cron schedule on which the cached data for acceleration should be updated. |
java.lang.String |
getAccelerationNamespace()
Returns the tsidx namespace which holds global acceleration events for this data model. |
java.lang.String |
getDescription()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getEarliestAcceleratedTime()
Return the earliest time of the window over which the data model is accelerated. |
DataModelObject |
getObject(java.lang.String name)
Retrieve an object by name from this data model. |
java.util.Collection<DataModelObject> |
getObjects()
|
java.lang.String |
getRawJson()
|
boolean |
isAccelerated()
|
void |
setAcceleration(boolean enabled)
Enable or disable global acceleration on this data model. |
void |
setAccelerationCronSchedule(java.lang.String accelerationCronSchedule)
Set the cron schedule on which the cached data for the acceleration should be updated. |
void |
setEarliestAcceleratedTime(java.lang.String earliestAcceleratedTime)
Set the size of the window (from the specified earliest time to now) over which the data model should be accelerated. |
void |
update()
Updates the entity with the accumulated arguments, established by the individual setter methods for each specific entity class. |
Methods inherited from class com.splunk.Entity |
---|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, update, validate, values |
Methods inherited from class com.splunk.Resource |
---|
getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public boolean containsObject(java.lang.String name)
name
- Name of the object to check for.
public DataModelObject getObject(java.lang.String name)
name
- Name of the object to retrieve.
public java.util.Collection<DataModelObject> getObjects()
public java.lang.String getAccelerationNamespace()
public boolean isAccelerated()
public java.lang.String getDescription()
public java.lang.String getRawJson()
public java.lang.String getDisplayName()
public void setAcceleration(boolean enabled)
enabled
- true enabled, false disables.public java.lang.String getEarliestAcceleratedTime()
public void setEarliestAcceleratedTime(java.lang.String earliestAcceleratedTime)
earliestAcceleratedTime
- a string specifying a time.public java.lang.String getAccelerationCronSchedule()
public void setAccelerationCronSchedule(java.lang.String accelerationCronSchedule)
accelerationCronSchedule
- a crontab style schedule to use.public void update()
Entity
update
in class Entity
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |