Taxa de falso positivo agregada
curl --request GET \
--url https://api.pictor.cloud/api/analytics/review-stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pictor.cloud/api/analytics/review-stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pictor.cloud/api/analytics/review-stats', 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.pictor.cloud/api/analytics/review-stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.pictor.cloud/api/analytics/review-stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.pictor.cloud/api/analytics/review-stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pictor.cloud/api/analytics/review-stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"days": 123,
"since": "2023-11-07T05:31:56Z",
"by_camera": [
{
"device_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"camera_name": "<string>",
"false_positive": 0,
"false_positive_rate": 123,
"reviewed": 0,
"total": 0,
"true_positive": 0,
"unreviewed": 0,
"worst_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"by_day": [
{
"day": "<string>",
"false_positive": 0,
"false_positive_rate": 123,
"reviewed": 0,
"total": 0,
"true_positive": 0,
"unreviewed": 0
}
],
"false_positive": 0,
"false_positive_rate": 123,
"reviewed": 0,
"total": 0,
"true_positive": 0,
"unreviewed": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Analytics
Taxa de falso positivo agregada
Quanto do que a análise apontou era mesmo o que ela disse — a taxa de falso positivo agregada, no total, por câmera e por dia.
Serve para duas conversas. A interna: qual câmera está gerando ruído e precisa de ajuste de enquadramento ou de sensibilidade. A externa: mostrar ao cliente que o que chega até ele foi filtrado.
O número só existe onde o operador deu veredito. Câmera sem revisão não aparece com taxa zero — ela não aparece, e a diferença importa.
GET
/
api
/
analytics
/
review-stats
Taxa de falso positivo agregada
curl --request GET \
--url https://api.pictor.cloud/api/analytics/review-stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pictor.cloud/api/analytics/review-stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pictor.cloud/api/analytics/review-stats', 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.pictor.cloud/api/analytics/review-stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.pictor.cloud/api/analytics/review-stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.pictor.cloud/api/analytics/review-stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pictor.cloud/api/analytics/review-stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"days": 123,
"since": "2023-11-07T05:31:56Z",
"by_camera": [
{
"device_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"camera_name": "<string>",
"false_positive": 0,
"false_positive_rate": 123,
"reviewed": 0,
"total": 0,
"true_positive": 0,
"unreviewed": 0,
"worst_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"by_day": [
{
"day": "<string>",
"false_positive": 0,
"false_positive_rate": 123,
"reviewed": 0,
"total": 0,
"true_positive": 0,
"unreviewed": 0
}
],
"false_positive": 0,
"false_positive_rate": 123,
"reviewed": 0,
"total": 0,
"true_positive": 0,
"unreviewed": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Chave de API da conta, no formato pct_<prefixo>_<segredo>.
Response
Successful Response
GET /api/analytics/review-stats — a camada 3 do ADR-PICTOR-011.
Show child attributes
Show child attributes
Show child attributes
Show child attributes