健康巡检历史
curl --request GET \
--url https://api-datahub.bazhuayu.com/v1/publisher/probesimport requests
url = "https://api-datahub.bazhuayu.com/v1/publisher/probes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-datahub.bazhuayu.com/v1/publisher/probes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET'};
fetch('https://api-datahub.bazhuayu.com/v1/publisher/probes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-datahub.bazhuayu.com/v1/publisher/probes"
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-datahub.bazhuayu.com/v1/publisher/probes")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-datahub.bazhuayu.com/v1/publisher/probes",
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;
}require 'uri'
require 'net/http'
url = URI("https://api-datahub.bazhuayu.com/v1/publisher/probes")
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_bodyusing RestSharp;
var options = new RestClientOptions("https://api-datahub.bazhuayu.com/v1/publisher/probes");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
val client = OkHttpClient()
val request = Request.Builder()
.url("https://api-datahub.bazhuayu.com/v1/publisher/probes")
.get()
.build()
val response = client.newCall(request).execute()false{
"items": [
{
"namespace": "<string>",
"app_name": "<string>",
"app_version": "<string>",
"example_id": "<string>",
"verdict": "<string>",
"skip_reason": "<string>",
"records": 123,
"duration_ms": 123,
"error": {
"code": "<string>",
"category": "<string>",
"message": "<string>",
"retryable": true
},
"kind": "<string>",
"created_at": "<string>",
"finished_at": "<string>"
}
]
}发布与运营
健康巡检历史
平台每日健康巡检在我的 App 上的逐次结果。
GET
/
v1
/
publisher
/
probes
健康巡检历史
curl --request GET \
--url https://api-datahub.bazhuayu.com/v1/publisher/probesimport requests
url = "https://api-datahub.bazhuayu.com/v1/publisher/probes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-datahub.bazhuayu.com/v1/publisher/probes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET'};
fetch('https://api-datahub.bazhuayu.com/v1/publisher/probes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-datahub.bazhuayu.com/v1/publisher/probes"
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-datahub.bazhuayu.com/v1/publisher/probes")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-datahub.bazhuayu.com/v1/publisher/probes",
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;
}require 'uri'
require 'net/http'
url = URI("https://api-datahub.bazhuayu.com/v1/publisher/probes")
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_bodyusing RestSharp;
var options = new RestClientOptions("https://api-datahub.bazhuayu.com/v1/publisher/probes");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
val client = OkHttpClient()
val request = Request.Builder()
.url("https://api-datahub.bazhuayu.com/v1/publisher/probes")
.get()
.build()
val response = client.newCall(request).execute()false{
"items": [
{
"namespace": "<string>",
"app_name": "<string>",
"app_version": "<string>",
"example_id": "<string>",
"verdict": "<string>",
"skip_reason": "<string>",
"records": 123,
"duration_ms": 123,
"error": {
"code": "<string>",
"category": "<string>",
"message": "<string>",
"retryable": true
},
"kind": "<string>",
"created_at": "<string>",
"finished_at": "<string>"
}
]
}端点
GET https://api-datahub.bazhuayu.com/v1/publisher/probes
Authorization: Bearer <API Key>)。
平台每日健康巡检在我发布的 App 上发现了什么,最新在前:对每个被巡检的示例,是仍能连通并产出记录(PASS)、没有产出(NO_DATA)、失败(FAIL,附错误)、超出巡检预算(TIMEOUT),还是根本没跑(SKIPPED,skip_reason 为 no-example / paused / not-eligible)。只巡检已发布的公开或分享 App,私有 App 从不巡检。巡检运行不计入用量与账单,也不出现在发布者运行列表。
请求
查询参数
string[]
只看这些 App,可重复传。
integer
默认值:"30"
回看天数,默认 30。范围 1 到 365。
integer
默认值:"100"
最多返回条数。范围 1 到 500。
示例请求
curl \
-H "Authorization: Bearer $BAZHUAYU_API_KEY" \
"https://api-datahub.bazhuayu.com/v1/publisher/probes?days=30&limit=100"
响应
200 成功
{
"data": {
"items": []
}
}
data 字段中,其内容如下。
object[]
错误
| HTTP | code | category | 说明 |
|---|---|---|---|
| 401 | unauthorized | forbidden | 缺少或无效的 API Key。 |
| 404 | app-not-found | not_found | App 不存在、已改名,或对当前凭证不可见(私有 / 分享范围之外)。 |
{"error": {code, category, message, retryable}},见错误。
