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.
- Node.js
- Python
- Java
- C#
import { AgriBackupClient } from 'agribackup';
const client = new AgriBackupClient('sk_live_...');
const response = await client.jobs.getJobStatus('jobId');
console.log(response.data);
from agribackup import AgriBackupClient
client = AgriBackupClient('sk_live_...')
response = client.jobs.get_job_status('jobId')
print(response)
import com.agribackup.AgriBackupClient;
AgriBackupClient client = new AgriBackupClient("sk_live_...");
var response = client.jobs.getJobStatus("jobId");
System.out.println(response);
using AgriBackup;
var client = new AgriBackupClient("sk_live_...");
var response = await client.Jobs.GetJobStatusAsync("jobId");
Console.WriteLine(response);
Halt asynchronous ingestion processing
Immediately signals the ingestion engine to stop processing pending items and transition the job state to CANCELLED.
- Node.js
- Python
- Java
- C#
import { AgriBackupClient } from 'agribackup';
const client = new AgriBackupClient('sk_live_...');
const response = await client.jobs.cancelJob('jobId');
console.log(response.data);
from agribackup import AgriBackupClient
client = AgriBackupClient('sk_live_...')
response = client.jobs.cancel_job('jobId')
print(response)
import com.agribackup.AgriBackupClient;
AgriBackupClient client = new AgriBackupClient("sk_live_...");
var response = client.jobs.cancelJob("jobId");
System.out.println(response);
using AgriBackup;
var client = new AgriBackupClient("sk_live_...");
var response = await client.Jobs.CancelJobAsync("jobId");
Console.WriteLine(response);
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).
- Node.js
- Python
- Java
- C#
import { AgriBackupClient } from 'agribackup';
const client = new AgriBackupClient('sk_live_...');
const response = await client.api.checkHealth('Authorization');
console.log(response.data);
from agribackup import AgriBackupClient
client = AgriBackupClient('sk_live_...')
response = client.api.check_health('Authorization')
print(response)
import com.agribackup.AgriBackupClient;
AgriBackupClient client = new AgriBackupClient("sk_live_...");
var response = client.api.checkHealth("Authorization");
System.out.println(response);
using AgriBackup;
var client = new AgriBackupClient("sk_live_...");
var response = await client.Api.CheckHealthAsync("Authorization");
Console.WriteLine(response);