mistralM

Docs

Beta Observability Logs

API Observability (bêta) - logs.

POST /v1/observability/logs/search

Rechercher dans les logs

Rechercher dans les logs

Parameters

from
date-time | nullquery
to
date-time | nullquery
page_size
integerquery
cursor
string | nullquery

Exemple de requête

{}

Corps de la requête

order
"asc" | "desc"

Valeur par défaut : "desc"

search_expression
string | null

Responses

Réponse réussie

logs
FeedResultGetLog* obligatoire
FeedResultGetLog
cursor
string | null
next
string | null
results
array<GetLog>
GetLog
body
string* obligatoire
customer_id
string* obligatoire
event_name
string* obligatoire
log_attributes
map<string>* obligatoire
organization_id
string* obligatoire
resource_attributes
map<string>* obligatoire
resource_schema_url
string* obligatoire
scope_attributes
map<string>* obligatoire
scope_name
string* obligatoire
scope_schema_url
string* obligatoire
scope_version
string* obligatoire
service_account_id
string

Valeur par défaut : ""

service_name
string* obligatoire
severity_number
integer* obligatoire
severity_text
string* obligatoire
span_id
string* obligatoire
timestamp
date-time* obligatoire
trace_flags
integer* obligatoire
trace_id
string* obligatoire
user_id
string* obligatoire
workspace_id
string* obligatoire

GET /v1/observability/logs/fields

Obtenir les définitions des champs de logs

Obtenir les définitions des champs de logs

Responses

Réponse réussie

field_definitions
array<OtelFieldDefinition>* obligatoire
OtelFieldDefinition
group
string | null
label
string* obligatoire
name
string* obligatoire
source_attribute_key
string | null

Clé d’attribut OpenTelemetry brute dont ce champ est issu, qu’il s’agisse d’un attribut de span (par ex. gen_ai.request.model pour request_model) ou d’un attribut de ressource (par ex. service.name pour service_name). None lorsque le champ est un champ OTLP natif (comme span_name ou trace_id) ou une map d’attributs imbriquée (comme span_attributes).

supported_aggregations
array<"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99">* obligatoire
supported_operators
array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "like" | "ilike" | "not_like" | "not_ilike" | "between" | "not_between" | "in" | "not_in" | "exists" | "not_exists" | "regexp" | "not_regexp" | "contains" | "not_contains" | "has" | "hasAny" | "hasAll" | "hasToken">* obligatoire
type
"ENUM" | "TEXT" | "INT" | "FLOAT" | "BOOL" | "TIMESTAMP" | "ARRAY" | "MAP"* obligatoire

GET /v1/observability/logs/fields/{field_name}/options

Obtenir les options d’un champ de log

Obtenir les options d’un champ de log

Parameters

field_name
stringpath* obligatoire
from
date-time | nullquery
to
date-time | nullquery

Responses

Réponse réussie

options
array<string> | null* obligatoire