Vérification du système
curl --request GET \
--url https://api.training.wandb.ai/v1/system-checkimport requests
url = "https://api.training.wandb.ai/v1/system-check"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.training.wandb.ai/v1/system-check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.training.wandb.ai/v1/system-check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.training.wandb.ai/v1/system-check"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.training.wandb.ai/v1/system-check")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.training.wandb.ai/v1/system-check")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyVérification du système
Vérifie l’état de santé de tous les composants du système.
Retourne : Un JSON avec le statut de :
- api : Toujours true (si l’endpoint est accessible)
- database : Si la connexion à la base de données fonctionne
- cpu_queue : Succès, durée et éventuelles erreurs
- gpu_queue : Succès, durée et éventuelles erreurs
Renvoie HTTP 503 si l’une des vérifications échoue.
GET
/
v1
/
system-check
Vérification du système
curl --request GET \
--url https://api.training.wandb.ai/v1/system-checkimport requests
url = "https://api.training.wandb.ai/v1/system-check"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.training.wandb.ai/v1/system-check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.training.wandb.ai/v1/system-check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.training.wandb.ai/v1/system-check"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.training.wandb.ai/v1/system-check")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.training.wandb.ai/v1/system-check")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyRéponse
200 - application/json
Réponse réussie
Cette page vous a-t-elle été utile ?
⌘I