2017-04-11 21:52:47 -04:00
|
|
|
//lcawley Verified example output 2017-04-11
|
2017-04-04 18:26:39 -04:00
|
|
|
[[ml-jobcounts]]
|
|
|
|
==== Job Counts
|
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
The get job statistics API provides information about the operational
|
|
|
|
progress of a job.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
NOTE: Job count values are cumulative for the lifetime of a job. If a model snapshot is reverted
|
|
|
|
or old results are deleted, the job counts are not reset.
|
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`data_counts`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(object) An object that describes the number of records processed and any related error counts.
|
2017-04-11 21:52:47 -04:00
|
|
|
See <<ml-datacounts,data counts objects>>.
|
|
|
|
|
|
|
|
`job_id`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) A numerical character string that uniquely identifies the job.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`model_size_stats`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(object) An object that provides information about the size and contents of the model.
|
2017-04-11 21:52:47 -04:00
|
|
|
See <<ml-modelsizestats,model size stats objects>>
|
|
|
|
|
|
|
|
`state`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) The status of the job, which can be one of the following values:
|
2017-04-11 21:52:47 -04:00
|
|
|
`closed`::: The job finished successfully with its model state persisted.
|
2017-04-18 18:13:21 -04:00
|
|
|
The job is still available to accept further data. +
|
|
|
|
+
|
|
|
|
--
|
2017-04-11 21:52:47 -04:00
|
|
|
NOTE: If you send data in a periodic cycle and close the job at the end of
|
|
|
|
each transaction, the job is marked as closed in the intervals between
|
|
|
|
when data is sent. For example, if data is sent every minute and it takes
|
|
|
|
1 second to process, the job has a closed state for 59 seconds.
|
|
|
|
|
2017-04-18 18:13:21 -04:00
|
|
|
--
|
|
|
|
`closing`::: TBD. The job is in the process of closing?
|
|
|
|
`failed`::: The job did not finish successfully due to an error.
|
|
|
|
This situation can occur due to invalid input data. In this case,
|
|
|
|
sending corrected data to a failed job re-opens the job and
|
|
|
|
resets it to an open state.
|
|
|
|
`open`::: The job is actively receiving and processing data.
|
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
[float]
|
2017-04-04 18:26:39 -04:00
|
|
|
[[ml-datacounts]]
|
|
|
|
===== Data Counts Objects
|
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
The `data_counts` object describes the number of records processed
|
|
|
|
and any related error counts. It has the following properties:
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`bucket_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The number of bucket results produced by the job.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`earliest_record_timestamp`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) The timestamp of the earliest chronologically ordered record.
|
2017-04-11 21:52:47 -04:00
|
|
|
The datetime string is in ISO 8601 format.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`empty_bucket_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
`input_bytes`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The number of raw bytes read by the job.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
`input_field_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The total number of record fields read by the job. This count includes
|
2017-04-04 18:26:39 -04:00
|
|
|
fields that are not used in the analysis.
|
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`input_record_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The number of data records read by the job.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
2017-04-04 18:26:39 -04:00
|
|
|
`invalid_date_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The number of records with either a missing date field or a date that could not be parsed.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`job_id`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) A numerical character string that uniquely identifies the job.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`last_data_time`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`latest_record_timestamp`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) The timestamp of the last chronologically ordered record.
|
2017-04-11 21:52:47 -04:00
|
|
|
If the records are not in strict chronological order, this value might not be
|
|
|
|
the same as the timestamp of the last record.
|
|
|
|
The datetime string is in ISO 8601 format.
|
|
|
|
|
|
|
|
`latest_sparse_bucket_timestamp`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD
|
2017-04-11 21:52:47 -04:00
|
|
|
|
2017-04-04 18:26:39 -04:00
|
|
|
`missing_field_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The number of records that are missing a field that the job is configured to analyze.
|
2017-04-04 18:26:39 -04:00
|
|
|
Records with missing fields are still processed because it is possible that not all fields are missing.
|
2017-04-18 14:30:30 -04:00
|
|
|
The value of `processed_record_count` includes this count. +
|
|
|
|
+
|
|
|
|
--
|
|
|
|
NOTE: If you are using data feeds or posting data to the job in JSON format, a
|
|
|
|
high `missing_field_count` is often not an indication of data issues. It is not
|
|
|
|
necessarily a cause for concern.
|
|
|
|
|
|
|
|
--
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
`out_of_order_timestamp_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The number of records that are out of time sequence and outside of the latency window.
|
2017-04-04 18:26:39 -04:00
|
|
|
These records are discarded, since jobs require time series data to be in ascending chronological order.
|
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`processed_field_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The total number of fields in all the records that have been processed by the job.
|
2017-04-11 21:52:47 -04:00
|
|
|
Only fields that are specified in the detector configuration object contribute to this count.
|
|
|
|
The time stamp is not included in this count.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`processed_record_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The number of records that have been processed by the job.
|
2017-04-11 21:52:47 -04:00
|
|
|
This value includes records with missing fields, since they are nonetheless analyzed.
|
|
|
|
+
|
|
|
|
The following records are not processed:
|
|
|
|
* Records not in chronological order and outside the latency window
|
|
|
|
* Records with invalid timestamp
|
|
|
|
* Records filtered by an exclude transform
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`sparse_bucket_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
[float]
|
2017-04-04 18:26:39 -04:00
|
|
|
[[ml-modelsizestats]]
|
|
|
|
===== Model Size Stats Objects
|
|
|
|
|
|
|
|
The `model_size_stats` object has the following properties:
|
|
|
|
|
2017-04-11 22:26:18 -04:00
|
|
|
`bucket_allocation_failures_count`::
|
|
|
|
() TBD
|
|
|
|
|
2017-04-04 18:26:39 -04:00
|
|
|
`job_id`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) A numerical character string that uniquely identifies the job.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-11 22:26:18 -04:00
|
|
|
`log_time`::
|
|
|
|
() TBD
|
|
|
|
|
|
|
|
`memory_status`::
|
|
|
|
(string) The status of the mathematical models. This property can have one of the following values:
|
|
|
|
`ok`::: The models stayed below the configured value.
|
|
|
|
`soft_limit`::: The models used more than 60% of the configured memory limit and older unused models will be pruned to free up space.
|
|
|
|
`hard_limit`::: The models used more space than the configured memory limit. As a result, not all incoming data was processed.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
`model_bytes`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The number of bytes of memory used by the models. This is the maximum value since the
|
2017-04-04 18:26:39 -04:00
|
|
|
last time the model was persisted. If the job is closed, this value indicates the latest size.
|
|
|
|
|
2017-04-11 22:26:18 -04:00
|
|
|
`result_type`::
|
|
|
|
TBD
|
|
|
|
|
2017-04-04 18:26:39 -04:00
|
|
|
`total_by_field_count`::
|
2017-04-18 18:13:21 -04:00
|
|
|
(long) The number of `by` field values that were analyzed by the models. +
|
|
|
|
+
|
|
|
|
--
|
2017-04-04 18:26:39 -04:00
|
|
|
NOTE: The `by` field values are counted separately for each detector and partition.
|
|
|
|
|
2017-04-18 18:13:21 -04:00
|
|
|
--
|
2017-04-04 18:26:39 -04:00
|
|
|
`total_over_field_count`::
|
2017-04-18 18:13:21 -04:00
|
|
|
(long) The number of `over` field values that were analyzed by the models. +
|
|
|
|
+
|
|
|
|
--
|
2017-04-04 18:26:39 -04:00
|
|
|
NOTE: The `over` field values are counted separately for each detector and partition.
|
|
|
|
|
2017-04-18 18:13:21 -04:00
|
|
|
--
|
2017-04-04 18:26:39 -04:00
|
|
|
`total_partition_field_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(long) The number of `partition` field values that were analyzed by the models.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
`timestamp`::
|
|
|
|
TBD
|