Skip to main content

job_counts

Creates, updates, deletes, gets or lists a job_counts resource.

Overview​

Namejob_counts
TypeResource
Idsumologic.archive.job_counts

Fields​

The following fields are returned by SELECT queries:

A list of Archive Sources with ingestion jobs.

NameDatatypeDescription
source_idstringIdentifier for the archive source. (example: 000000000606C009) (wire: sourceId)
failedinteger (int64)The total number of archive jobs with failed status for the archive source.
ingestinginteger (int64)The total number of archive jobs with ingesting status for the archive source.
pendinginteger (int64)The total number of archive jobs with pending status for the archive source.
scanninginteger (int64)The total number of archive jobs with scanning status for the archive source.
succeededinteger (int64)The total number of archive jobs with succeeded status for the archive source.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectregionGet 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.

NameDatatypeDescription
regionstringSumo 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​

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
;