pub struct Log {Show 24 fields
pub time: String,
pub org_id: String,
pub type: Type,
pub webhook_type: Option<String>,
pub resource: Option<Resource>,
pub request_duration_seconds: Option<f64>,
pub request_started_at: Option<String>,
pub request_finished_at: Option<String>,
pub request_body: Option<Value>,
pub request_http_method: Option<RequestHttpMethod>,
pub request_url: Option<String>,
pub request_path: Option<String>,
pub request_query: Option<String>,
pub response_http_code: Option<f64>,
pub request_ip_address: Option<String>,
pub request_origin: Option<String>,
pub response_body: Option<Value>,
pub request_headers: Option<Value>,
pub error: Option<Box<Error>>,
pub assistant_id: Option<String>,
pub phone_number_id: Option<String>,
pub customer_id: Option<String>,
pub squad_id: Option<String>,
pub call_id: Option<String>,
}Fields§
§time: StringThis is the timestamp at which the log was written.
org_id: StringThis is the unique identifier for the org that this log belongs to.
type: TypeThis is the type of the log.
webhook_type: Option<String>This is the type of the webhook, given the log is from a webhook.
resource: Option<Resource>This is the specific resource, relevant only to API logs.
request_duration_seconds: Option<f64>’This is how long the request took.
request_started_at: Option<String>This is the timestamp at which the request began.
request_finished_at: Option<String>This is the timestamp at which the request finished.
request_body: Option<Value>This is the body of the request.
request_http_method: Option<RequestHttpMethod>This is the request method.
request_url: Option<String>This is the request URL.
request_path: Option<String>This is the request path.
request_query: Option<String>This is the request query.
response_http_code: Option<f64>This the HTTP status code of the response.
request_ip_address: Option<String>This is the request IP address.
request_origin: Option<String>This is the origin of the request
response_body: Option<Value>This is the body of the response.
request_headers: Option<Value>These are the headers of the request.
error: Option<Box<Error>>This is the error, if one occurred.
assistant_id: Option<String>This is the ID of the assistant.
phone_number_id: Option<String>This is the ID of the phone number.
customer_id: Option<String>This is the ID of the customer.
squad_id: Option<String>This is the ID of the squad.
call_id: Option<String>This is the ID of the call.