İçeriğe geç

Loglar ve ölçümler

İstek, çalışma ve derleme logları, trafik ve çalışma ölçümleri.

Bu sayfada

Kavramlar: Loglar ve analitik

Uç özetleri OpenAPI belgesinden gelir ve İngilizcedir.

GET/v1/projects/{project}/logs

Access, runtime and build logs, newest first; pass after=<cursor> to follow new lines (oldest first). Older than the plan's retention is cut (truncated: true)

İşlem (MCP aracı)
listProjectLogs
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
streamİsteğe bağlısorgustringComma-separated: access, runtime, build
levelİsteğe bağlısorgu"info" | "warn" | "error"This level and above
qİsteğe bağlısorgustringCase-insensitive text in the messagemax length 200
versionİsteğe bağlısorgustring`ver_…` or `v7`
sinceİsteğe bağlısorgustringformat: date-time
untilİsteğe bağlısorgustringformat: date-time
limitİsteğe bağlısorguintegermin 1, max 500, default 100
beforeİsteğe bağlısorgustringCursor: older page
afterİsteğe bağlısorgustringCursor: newer lines (follow)

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKLogPage
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/projects/{project}/metrics

Traffic (requests, page views, visitors, bandwidth, status codes, top paths) and runtime metrics (invocations, duration, CPU, memory). Unmeasured values are null; runsCode false means the project runs no code

İşlem (MCP aracı)
getProjectMetrics
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
rangeİsteğe bağlısorgu"1h" | "24h" | "7d" | "30d"default "24h"

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKProjectMetrics
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/metrics/projects

The team's projects ranked by requests in the range, with errors, bandwidth, visitors, invocations and build seconds

İşlem (MCP aracı)
listProjectMetrics
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
rangeİsteğe bağlısorgu"1h" | "24h" | "7d" | "30d"default "24h"

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKProjectRanking
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.