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(/* args */);
console.log(response.data);
from agribackup import AgriBackupClient
client = AgriBackupClient('sk_live_...')
response = client.jobs.get_job_status(# args)
print(response)
import com.agribackup.AgriBackupClient;
AgriBackupClient client = new AgriBackupClient("sk_live_...");
var response = client.jobs.getJobStatus(/* args */);
System.out.println(response);
using AgriBackup;
var client = new AgriBackupClient("sk_live_...");
var response = await client.Jobs.GetJobStatusAsync(/* args */);
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(/* args */);
console.log(response.data);
from agribackup import AgriBackupClient
client = AgriBackupClient('sk_live_...')
response = client.jobs.cancel_job(# args)
print(response)
import com.agribackup.AgriBackupClient;
AgriBackupClient client = new AgriBackupClient("sk_live_...");
var response = client.jobs.cancelJob(/* args */);
System.out.println(response);
using AgriBackup;
var client = new AgriBackupClient("sk_live_...");
var response = await client.Jobs.CancelJobAsync(/* args */);
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(/* args */);
console.log(response.data);
from agribackup import AgriBackupClient
client = AgriBackupClient('sk_live_...')
response = client.api.check_health(# args)
print(response)
import com.agribackup.AgriBackupClient;
AgriBackupClient client = new AgriBackupClient("sk_live_...");
var response = client.api.checkHealth(/* args */);
System.out.println(response);
using AgriBackup;
var client = new AgriBackupClient("sk_live_...");
var response = await client.Api.CheckHealthAsync(/* args */);
Console.WriteLine(response);