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

**Full name**: projects.locations.instances.ontologyRecords.statistics

Returns high-level statistics about ontology records in the instance. Use this method to monitor the number of event types, products, and default family assignments.

### HTTP request

`GET https://{endpoint}/v1alpha/{parent}/ontologyRecords:statistics`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The instance into which OntologyRecords should be imported. Format: projects/{project}/locations/{location}/instances/{instance}/ontologyRecords |

### Request body

The request body must be empty.

### Response body

Response message for ontologyRecords.statistics.

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

| JSON representation |
|---|
| ``` { "eventTypes": integer, "productTypes": integer, "eventsAssignedToDefaultFamilies": integer } ``` |

| Fields ||
|---|---|
| `eventTypes` | `integer` Output only. The number of event types. |
| `productTypes` | `integer` Output only. The number of product types. |
| `eventsAssignedToDefaultFamilies` | `integer` Output only. The number of events assigned to default families. |

### 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 `parent` resource:

- `chronicle.ontologyRecords.get`

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