# REST Resource: projects.locations.observationJobs

- [Resource: ObservationJob](https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs#ObservationJob)
  - [JSON representation](https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs#ObservationJob.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs#State)
- [Methods](https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs#METHODS_SUMMARY)

## Resource: ObservationJob

Message describing ObservationJob object

| JSON representation |
|---|
| ``` { "name": string, "state": enum (`https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs#State`), "sources": [ string ], "createTime": string, "updateTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. name of resource Format: projects/{project}/locations/{location}/observationJobs/{observationJob} |
| `state` | ``enum (`https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs#State`)`` Output only. The observation job state |
| `sources[]` | `string` Optional. These should be of the same kind of source. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. \[Output only\] Create time stamp A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. \[Output only\] Update time stamp A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |

## State

Observation job state

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Unspecified state |
| `CREATING` | Job is in the creating state |
| `ENABLING` | Job is in the enabling state |
| `ENABLED` | Job is enabled |
| `DISABLING` | Job is in the disabling state |
| `DISABLED` | Job is disabled |
| `DELETING` | Job is being deleted |
| `ERROR` | Job is in an error state |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs/create` | CreateObservationJob creates a new ObservationJob but does not have any effecton its own. |
| ### `https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs/delete` | DeleteObservationJob deletes an ObservationJob. |
| ### `https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs/disable` | Disables the given ObservationJob. |
| ### `https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs/enable` | Enables the given ObservationJob. |
| ### `https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs/get` | GetObservationJob retrieves a single ObservationJob by name. |
| ### `https://docs.cloud.google.com/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.observationJobs/list` | ListObservationJobs gets all ObservationJobs for a given project and location. |