# DetectionCountBucket

- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/DetectionCountBucket#SCHEMA_REPRESENTATION)
- [ScannedStatus](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/DetectionCountBucket#ScannedStatus)

The number of detections within a time range bucket.

| JSON representation |
|---|
| ``` { "timeRange": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`) }, "detectionCount": integer, "scannedStatus": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/DetectionCountBucket#ScannedStatus`) } ``` |

| Fields ||
|---|---|
| `timeRange` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`)`` The time range associated with the bucket, repeated in the response for convenience. |
| `detectionCount` | `integer` The number of matched events within this time range bucket. |
| `scannedStatus` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/DetectionCountBucket#ScannedStatus`)`` Whether the detectionCount for this time range represents a complete count of detections. If a result limit was encountered, or the rule was run over only part of this time range, this should be set to "PARTIAL" |

## ScannedStatus

ScannedStatus indicates whether the detectionCount for this time range represents a complete count of detections.

| Enums ||
|---|---|
| `SCANNED_STATUS_UNSPECIFIED` |   |
| `NONE` | None of the time range was scanned. |
| `PARTIAL` | Part of the time range was scanned. |
| `COMPLETE` | The complete time range was scanned. |