# Timeline

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

Timeline of alerts organized into buckets.

| JSON representation |
|---|
| ``` { "buckets": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/Timeline#TimelineBucket`) } ], "bucketSize": string } ``` |

| Fields ||
|---|---|
| `buckets[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/Timeline#TimelineBucket`)`` Buckets in the timeline with alerts. |
| `bucketSize` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Time unit for each bucket (in seconds and nanoseconds). A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## TimelineBucket

Data about a single timeline bucket.

| JSON representation |
|---|
| ``` { "alertCount": integer } ``` |

| Fields ||
|---|---|
| `alertCount` | `integer` Number of alerts in the timeline bucket. |