- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacyGetCuratedRulesTrends#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacyGetCuratedRulesTrends#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacyGetCuratedRulesTrends#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacyGetCuratedRulesTrends#body.request_body)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacyGetCuratedRulesTrends#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacyGetCuratedRulesTrends#body.LegacyGetCuratedRuleTrendsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacyGetCuratedRulesTrends#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacyGetCuratedRulesTrends#body.aspect_1)

**Full name**: projects.locations.instances.legacy.legacyGetCuratedRulesTrends

Legacy RPC for listing detection counts and last detection timestamp for a list of Curated Rule ids.

### HTTP request

`GET https://{endpoint}/v1alpha/{instance}/legacy:legacyGetCuratedRulesTrends`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `instance` | `string` Required. The instance the resource belongs to. Format: projects/{project}/locations/{location}/instances/{instance} |

### Query parameters

| Parameters ||
|---|---|
| `ruleId[]` | `string` Required. List of curated rule IDs to return results for. |
| `bucketTimeRange` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`)`` Required. The time range to return bucketed counts for. Note that this will not affect the lastDetectionTime, which indicates the time of the latest detection for the rule regardless of this time range. |
| `bucketSize` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/BucketSize`)`` Required. The bucket size. |

### Request body

The request body must be empty.

### Response body

A legacy rpc response for summary of detection counts and last detection timestamp for a list of curated rule ids.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "ruleTrends": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/LegacyRuleTrends`) } ] } ``` |

| Fields ||
|---|---|
| `ruleTrends[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/LegacyRuleTrends`)`` A summary for each curated rule. It is not guaranteed that the ruleTrends and the request's ruleIds have the same order. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `
  https://www.googleapis.com/auth/chronicle`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `instance` resource:

- `chronicle.legacies.legacyGetCuratedRulesTrends`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).