Skip to main content

5. Systems & Diagnostics

The following methods are available via the AgriBackup SDK for this integration stage.

Retrieve job status and metrics

Returns current progress metrics, validation results, and Hedera Merkle proofs for a specific job.

import { AgriBackupClient } from 'agribackup';

const client = new AgriBackupClient('sk_live_...');
const response = await client.jobs.getJobStatus(/* args */);
console.log(response.data);

Halt asynchronous ingestion processing

Immediately signals the ingestion engine to stop processing pending items and transition the job state to CANCELLED.

import { AgriBackupClient } from 'agribackup';

const client = new AgriBackupClient('sk_live_...');
const response = await client.jobs.cancelJob(/* args */);
console.log(response.data);

Check infrastructure and service dependency health

Returns the real-time operational status, network latency, and synchronization metadata for upstream dependencies (Hedera, Copernicus CDSE, and HashiCorp Vault).

import { AgriBackupClient } from 'agribackup';

const client = new AgriBackupClient('sk_live_...');
const response = await client.api.checkHealth(/* args */);
console.log(response.data);