Identifying details of a running or completed operation - its type, source and item ID - used both while an operation is running (see CurrentOp) and as a lightweight key for the server's per-operation processing time statistics. Serialised as an "OperationInfo" element.
Group: Server Monitoring
Properties
| Property | Returns | Description |
|---|---|---|
| asyncJob | boolean | Whether this operation is an asynchronous background job. |
| data | Map<String,Serializable> | Miscellaneous performance data recorded against this operation. Creates and returns an empty map on first access if none has been set. |
| http | boolean | Whether this operation is an HTTP request. |
| item | String | For an HTTP request, the request's operation ID. For an async job, the job ID. |
| source | String | For an HTTP request, the request path. For an async job, the task name. |
| startedAt | Date | When this operation started. |
| type | String | The operation's type - either TYPE_HTTP ("http") or TYPE_ASYNC_JOB ("asyncjob"), or one of the other TYPE_ constants. |
Methods
getItem()
Returns: String
For an HTTP request, the request's operation ID. For an async job, the job ID.
getType()
Returns: String
The operation's type - either TYPE_HTTP ("http") or TYPE_ASYNC_JOB ("asyncjob"), or one of the other TYPE_ constants.
getSource()
Returns: String
For an HTTP request, the request path. For an async job, the task name.
getStartedAt()
Returns: Date
When this operation started.
getData()
Returns: Map<String,Serializable>
Miscellaneous performance data recorded against this operation. Creates and returns an empty map on first access if none has been set.
isAsyncJob()
Returns: boolean
Whether this operation is an asynchronous background job.
isHttp()
Returns: boolean
Whether this operation is an HTTP request.