job_counts
Creates, updates, deletes, gets or lists a job_counts resource.
Overview​
| Name | job_counts |
| Type | Resource |
| Id | sumologic.archive.job_counts |
Fields​
The following fields are returned by SELECT queries:
- list
A list of Archive Sources with ingestion jobs.
| Name | Datatype | Description |
|---|---|---|
source_id | string | Identifier for the archive source. (example: 000000000606C009) (wire: sourceId) |
failed | integer (int64) | The total number of archive jobs with failed status for the archive source. |
ingesting | integer (int64) | The total number of archive jobs with ingesting status for the archive source. |
pending | integer (int64) | The total number of archive jobs with pending status for the archive source. |
scanning | integer (int64) | The total number of archive jobs with scanning status for the archive source. |
succeeded | integer (int64) | The total number of archive jobs with succeeded status for the archive source. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | region | Get a list of all Archive Sources with the count and status of ingestion jobs. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | Sumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT) |
SELECT examples​
- list
Get a list of all Archive Sources with the count and status of ingestion jobs.
SELECT
source_id,
failed,
ingesting,
pending,
scanning,
succeeded
FROM sumologic.archive.job_counts
WHERE region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
;