Ce e enviat
| En-testa | Valor |
|---|---|
| Autorizazion | Bearer <jwt> — la sessione, mai la chiave |
| X-IaGenify-Version | e SDK versiòn |
| X-IaGenify-Id-machine | un hash de hostname, plataforma, architecture e runtime |
| X-IaGenify-Ressources | detectat CPU, memoria, GPU, disco — omitido quando nulla era detectat |
| Tipo di contenuto | aplicazion/json, a meno che il corpo non sia FormData |
L'intestu di recursos
Recalculato a lo più ogni 30 secondi e condivisat tra le chiamali, percio una explosione di richieste non sonda il disco centeniu. Ogni sonda è envuelta: un campo che non si lee non se olde, e quando nulla si lee il captest non si envia.
Por qua é enviado a ním
È ciò che permette la macchina che esegue il SDK aparecere in tuo conto come un storage, con il suo disco e le proprie capacità, in loc di essere un telefonante anonimo. It's lo stesso record un agent opera contro quando lee o scrie files in quella macchina.
const machines = await api.storage.list();
// a computer appears with its hostname and the disk it reported
const pc = await api.storage.get();
pc.hostname; // from the exchange
pc.machineId; // the same value as the headermachines = api.storage.list()
# a computer appears with the machine id it reported
pc = api.storage.get()
pc.machine_id # the same value as the X-IaGenify-Machine-Id headerL'identificat machine è un hash de factus machine. Contiene nulla digitat, ningun chiu, e ningun identificator de cont.