Seguimiento: métodos de lectura
Lea proyectos, informes, gráficos, filas de cambios y detalles de página. La referencia describe los parámetros de cinco métodos de seguimiento Diff.
En esta página
- GET /public-api/v1/diff-projects
- GET /public-api/v1/diff-projects/{id}/reports
- GET /public-api/v1/diff-projects/{id}/report-graph
- GET /public-api/v1/diff-projects/{id}/reports/{report_id}/rows
- GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}
Elija un método en el índice. Revise el método HTTP, la ruta, los permisos, los parámetros obligatorios y el cuerpo. Los bloques JSON con schema, properties y $ref describen el contrato; no se envían como cuerpo de una solicitud. Los ejemplos de solicitudes y los esquemas de respuesta están identificados por separado.
GET /public-api/v1/diff-projects
Parámetros
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffProjectListResponse · ErrorResponse
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1000
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Respuestas
200
Proyectos Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffProjectListResponse"
}
}
}
}
default
Sin una clave válida, las cabeceras de límites corresponden a intentos fallidos por IP. Tras la autenticación, corresponden a la clave o cuenta. Pueden faltar por un bloqueo previo o un contador no disponible. X-RateLimit-Reset es una marca de tiempo Unix en segundos; Retry-After en 429 es una espera en segundos.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports
Parámetros
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportListResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1000
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
status (query)
{
"schema": {
"type": "string",
"enum": [
"progress",
"done",
"failed"
]
}
}
created_from (query)
{
"schema": {
"type": "string",
"format": "date-time"
}
}
created_to (query)
{
"schema": {
"type": "string",
"format": "date-time"
}
}
Respuestas
200
Informes Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffReportListResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/report-graph
Parámetros
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportGraphResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1000
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Respuestas
200
Gráfico del informe Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffReportGraphResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/{report_id}/rows
Parámetros
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportRowsResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
report_id (path)
Xid del informe o el literal last. El literal last solo se admite en este parámetro de ruta.
{
"required": true,
"schema": {
"type": "string",
"minLength": 4,
"maxLength": 64,
"pattern": "^([A-Za-z0-9_-]+|last)$"
}
}
include_state (query)
{
"schema": {
"type": "boolean",
"default": false
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1000
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
search (query)
{
"schema": {
"type": "string",
"maxLength": 300
}
}
url_md5 (query)
{
"schema": {
"type": "string",
"pattern": "^[a-fA-F0-9]{32}$"
}
}
has_alert (query)
{
"schema": {
"type": "boolean"
}
}
rule_id (query)
{
"schema": {
"type": "string"
}
}
http_status (query)
{
"schema": {
"type": "integer",
"minimum": 100,
"maximum": 599
}
}
changed_field (query)
{
"schema": {
"type": "string"
}
}
alert_trigger_code (query)
{
"schema": {
"type": "string"
}
}
alert_trigger_group (query)
{
"schema": {
"type": "string"
}
}
Respuestas
200
Filas del informe Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffReportRowsResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}
Parámetros
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffPageDetailResponse · ErrorResponse · URLMD5 · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
report_id (path)
Xid del informe o el literal last. El literal last solo se admite en este parámetro de ruta.
{
"required": true,
"schema": {
"type": "string",
"minLength": 4,
"maxLength": 64,
"pattern": "^([A-Za-z0-9_-]+|last)$"
}
}
url_md5 (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/URLMD5"
}
}
Respuestas
200
Detalles de la página Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffPageDetailResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
