# ValidateEventThreatDetectionCustomModuleResponse

- [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#SCHEMA_REPRESENTATION)
- [CustomModuleValidationError](https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#CustomModuleValidationError)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#CustomModuleValidationError.SCHEMA_REPRESENTATION)
- [Position](https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#Position)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#Position.SCHEMA_REPRESENTATION)

Response message for `https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/projects.locations.eventThreatDetectionCustomModules/validate#google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ValidateEventThreatDetectionCustomModule`.

| JSON representation |
|---|
| ``` { "errors": [ { object (`https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#CustomModuleValidationError`) } ] } ``` |

| Fields ||
|---|---|
| `errors[]` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#CustomModuleValidationError`)`` A list of errors returned by the validator. If the list is empty, there were no errors. |

## CustomModuleValidationError

An error encountered while validating the uploaded configuration of an Event Threat Detection custom module.

| JSON representation |
|---|
| ``` { "description": string, "fieldPath": string, "start": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#Position`) }, "end": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#Position`) } } ``` |

| Fields ||
|---|---|
| `description` | `string` A human-readable description of the error. |
| `fieldPath` | `string` The path, in [RFC 6901: JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901) format, to the field that failed validation. Omitted if no specific field is affected. |
| `start` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#Position`)`` The initial position of the error in the uploaded text version of the module. Omitted if no specific position applies, or if the position could not be computed. |
| `end` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/ValidateEventThreatDetectionCustomModuleResponse#Position`)`` The end position of the error in the uploaded text version of the module. Omitted if no specific position applies, or if the position could not be computed. |

## Position

A position in the uploaded text version of a module.

| JSON representation |
|---|
| ``` { "lineNumber": integer, "columnNumber": integer } ``` |

| Fields ||
|---|---|
| `lineNumber` | `integer` The line position in the text. |
| `columnNumber` | `integer` The column position in the line. |