|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.DataModelObject
public class DataModelObject
DataModelObject represents one of the structured views in a data model.
Constructor Summary | |
---|---|
protected |
DataModelObject(DataModel model)
|
Method Summary | |
---|---|
boolean |
containsField(java.lang.String fieldName)
Checks whether there is a field with the given name in this data model object. |
Job |
createLocalAccelerationJob()
Local acceleration is tsidx acceleration of a data model object that is handled manually by a user. |
Job |
createLocalAccelerationJob(java.lang.String earliestTime)
Local acceleration is tsidx acceleration of a data model object that is handled manually by a user. |
PivotSpecification |
createPivotSpecification()
Create a PivotSpecification on this data model object. |
java.util.Collection<DataModelField> |
getAutoExtractedFields()
Get a collection of objects specifying all the fields that were automatically extracted from events (as opposed to generated by calculations in a data model). |
DataModelCalculation |
getCalculation(java.lang.String calculationId)
Fetch a calculation by its unique ID. |
java.util.Map<java.lang.String,DataModelCalculation> |
getCalculations()
Return the calculations done by this data model object to produce fields. |
java.util.Collection<DataModelConstraint> |
getConstraints()
|
DataModel |
getDataModel()
Fetch the data model on which this object is defined. |
java.lang.String |
getDisplayName()
|
DataModelField |
getField(java.lang.String fieldName)
Fetch a single field of a given name from this data model object. |
java.util.Collection<DataModelField> |
getFields()
Return all the fields, whether input or created by calculations. |
java.lang.String[] |
getLineage()
Data model objects can inherit from other data model objects in the same data model (or from a couple of global base objects such as BaseEvent and BaseTransaction). |
java.lang.String |
getName()
|
DataModelObject |
getParent()
|
java.lang.String |
getParentName()
Returns the name of the parent of this object. |
java.lang.String |
getQuery()
|
Job |
runQuery()
Start a job that fetches all the events of this data model object. |
Job |
runQuery(JobArgs args)
Start a job that fetches all the events of this data model object. |
Job |
runQuery(java.lang.String querySuffix)
Start a job that applies querySuffix to all the events in this data model object. |
Job |
runQuery(java.lang.String querySuffix,
JobArgs args)
Start a job that applies querySuffix to all the events in this data model object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DataModelObject(DataModel model)
Method Detail |
---|
public boolean containsField(java.lang.String fieldName)
fieldName
- name of the field to check for.
public Job createLocalAccelerationJob()
public Job createLocalAccelerationJob(java.lang.String earliestTime)
earliestTime
- A time modifier (e.g., "-2w") setting the earliest time to index.
public java.util.Map<java.lang.String,DataModelCalculation> getCalculations()
public DataModelCalculation getCalculation(java.lang.String calculationId)
calculationId
- a splunkd assigned unique ID for this calculation.
public java.util.Collection<DataModelConstraint> getConstraints()
public DataModel getDataModel()
public java.lang.String getDisplayName()
public DataModelField getField(java.lang.String fieldName)
fieldName
- Name of the field to fetch.
public java.util.Collection<DataModelField> getAutoExtractedFields()
public java.util.Collection<DataModelField> getFields()
public java.lang.String getQuery()
public java.lang.String getName()
public java.lang.String[] getLineage()
public java.lang.String getParentName()
public DataModelObject getParent()
public PivotSpecification createPivotSpecification()
public Job runQuery()
public Job runQuery(JobArgs args)
args
- arguments specifying behavior of the job.
public Job runQuery(java.lang.String querySuffix)
querySuffix
- a search query, starting with a '|' that will be appended to the command to fetch
the contents of this data model object (e.g., "| head 3").
public Job runQuery(java.lang.String querySuffix, JobArgs args)
querySuffix
- a search query, starting with a '|' that will be appended to the command to fetch
the contents of this data model object (e.g., "| head 3").args
- arguments to control the job.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |