Platform API ClientClient group4 methodsTelemetryMethods
Telemetry
Report hybrid deployment usage windows, submit attestation digests, and review telemetry report/challenge state.
Usage report ingestionAttestation verificationChallenge feed
Telemetry
telemetry.reportUsage()
Generated exampleHTTP endpoint wrapperPOST /api/v1/telemetry/usagePOST /api/v1/telemetry/usage
Signature
reportUsage(input: {
idempotencyKey?: string;
windowStart: string | Date;
windowEnd: string | Date;
operationCounts: {
audit_event: number;
compliance_proof: number;
risk_decision: number;
replay_verification: number;
};
source?: {
deploymentId?: string;
region?: string;
provider?: "aws" | "gcp" | "azure" | "other";
};
}): Promise<{
reportId: string;
accepted: boolean;
totalQuantity?: number;
operationCounts?: unknown;
attestation?: {
required: boolean;
challengeId?: string | null;
expiresAt?: string | Date | null;
};
}>Parameters
| Name | Type | Flags |
|---|---|---|
| input | { idempotencyKey?: string; windowStart: string | Date; windowEnd: string | Date; operationCounts: { audit_event: number; compliance_proof: number; risk_decision: number; replay_verification: number; }; source?: { deploymentId?: string; region?: string; provider?: "aws" | "gcp" | "azure" | "other"; }; } | required |
Python SDKpython
from arelis import create_arelis_platform
import os
platform = create_arelis_platform({
"baseUrl": "https://api.arelis.digital",
"apiKey": os.environ["ARELIS_API_KEY"],
})
input = {} # {
idempotencyKey?: string;
windowStart: string | Date;
windowEnd: string | Date;
operationCounts: {
audit_event: number;
compliance_proof: number;
risk_decision: number;
replay_verification: number;
};
source?: {
deploymentId?: string;
region?: string;
provider?: "aws" | "gcp" | "azure" | "other";
};
}
response = platform.telemetry.reportUsage(input)
print(response)Response
// Response type
Promise<{
reportId: string;
accepted: boolean;
totalQuantity?: number;
operationCounts?: unknown;
attestation?: {
required: boolean;
challengeId?: string | null;
expiresAt?: string | Date | null;
};
}>
// Inspect concrete fields from your runtime payload:
// console.log(JSON.stringify(response, null, 2));telemetry.submitAttestation()
Generated exampleHTTP endpoint wrapperPOST /api/v1/telemetry/attestations/{challengeId}POST /api/v1/telemetry/attestations/{challengeId}
Signature
submitAttestation(challengeId: string, input: {
usageDigest: string;
totalOperations: number;
attestationDigest: string;
merkleRoot?: string;
evidenceHash?: string;
}): Promise<{
challengeId: string;
reportId: string;
verified: boolean;
status: string;
}>Parameters
| Name | Type | Flags |
|---|---|---|
| challengeId | string | required |
| input | { usageDigest: string; totalOperations: number; attestationDigest: string; merkleRoot?: string; evidenceHash?: string; } | required |
Python SDKpython
from arelis import create_arelis_platform
import os
platform = create_arelis_platform({
"baseUrl": "https://api.arelis.digital",
"apiKey": os.environ["ARELIS_API_KEY"],
})
challengeId = "<challengeId>"
input = {} # {
usageDigest: string;
totalOperations: number;
attestationDigest: string;
merkleRoot?: string;
evidenceHash?: string;
}
response = platform.telemetry.submitAttestation(challengeId, input)
print(response)Response
// Response type
Promise<{
challengeId: string;
reportId: string;
verified: boolean;
status: string;
}>
// Inspect concrete fields from your runtime payload:
// console.log(JSON.stringify(response, null, 2));telemetry.listReports()
Generated exampleHTTP endpoint wrapperGET /api/v1/telemetry/reportsGET /api/v1/telemetry/reports
Signature
listReports(params?: {
status?: "accepted" | "pending" | "verified" | "failed" | "expired" | "not_requested";
startTime?: string;
endTime?: string;
cursor?: string;
limit?: number;
}): Promise<TelemetryReportListResponse>Parameters
| Name | Type | Flags |
|---|---|---|
| params | { status?: "accepted" | "pending" | "verified" | "failed" | "expired" | "not_requested"; startTime?: string; endTime?: string; cursor?: string; limit?: number; } | optional |
Python SDKpython
from arelis import create_arelis_platform
import os
platform = create_arelis_platform({
"baseUrl": "https://api.arelis.digital",
"apiKey": os.environ["ARELIS_API_KEY"],
})
params = {} # {
status?: "accepted" | "pending" | "verified" | "failed" | "expired" | "not_requested";
startTime?: string;
endTime?: string;
cursor?: string;
limit?: number;
}
response = platform.telemetry.listReports(params)
print(response)Response
// Response type
Promise<TelemetryReportListResponse>
// Inspect concrete fields from your runtime payload:
// console.log(JSON.stringify(response, null, 2));telemetry.listChallenges()
Generated exampleHTTP endpoint wrapperGET /api/v1/telemetry/challengesGET /api/v1/telemetry/challenges
Signature
listChallenges(params?: {
status?: "accepted" | "pending" | "verified" | "failed" | "expired" | "not_requested";
startTime?: string;
endTime?: string;
cursor?: string;
limit?: number;
}): Promise<TelemetryChallengeListResponse>Parameters
| Name | Type | Flags |
|---|---|---|
| params | { status?: "accepted" | "pending" | "verified" | "failed" | "expired" | "not_requested"; startTime?: string; endTime?: string; cursor?: string; limit?: number; } | optional |
Python SDKpython
from arelis import create_arelis_platform
import os
platform = create_arelis_platform({
"baseUrl": "https://api.arelis.digital",
"apiKey": os.environ["ARELIS_API_KEY"],
})
params = {} # {
status?: "accepted" | "pending" | "verified" | "failed" | "expired" | "not_requested";
startTime?: string;
endTime?: string;
cursor?: string;
limit?: number;
}
response = platform.telemetry.listChallenges(params)
print(response)Response
// Response type
Promise<TelemetryChallengeListResponse>
// Inspect concrete fields from your runtime payload:
// console.log(JSON.stringify(response, null, 2));