pub struct PackFetcherLog {
pub base_url: Option<String>,
pub cache_hit: Option<bool>,
pub context: PackLogContext,
pub duration: Option<f64>,
pub method: Option<PackFetcherLogMethod>,
pub request_size_bytes: Option<f64>,
pub response_code: Option<f64>,
pub response_size_bytes: Option<f64>,
pub type_: PackFetcherLogType,
}
Expand description
System logs of Pack calls to context.fetcher.
JSON schema
{
"description": "System logs of Pack calls to context.fetcher.",
"type": "object",
"required": [
"context",
"type"
],
"properties": {
"baseUrl": {
"description": "base URL of the fetcher request, with all query
parameters stripped off.",
"examples": [
"https://coda.io/api"
],
"type": "string"
},
"cacheHit": {
"description": "true if the fetcher request hits catche instead of
actually requesting the remote service.",
"type": "boolean"
},
"context": {
"$ref": "#/components/schemas/PackLogContext"
},
"duration": {
"description": "Duration of the fetcher request in miliseconds.",
"type": "number"
},
"method": {
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH",
"HEAD"
]
},
"requestSizeBytes": {
"description": "The number of bytes in the HTTP request sent",
"type": "number"
},
"responseCode": {
"type": "number"
},
"responseSizeBytes": {
"description": "The number of bytes in the HTTP response received",
"type": "number"
},
"type": {
"type": "string",
"enum": [
"fetcher"
],
"x-tsType": "PackLogType.Fetcher"
}
},
"additionalProperties": false,
"x-schema-name": "PackFetcherLog"
}
Fields§
§base_url: Option<String>
base URL of the fetcher request, with all query parameters stripped off.
cache_hit: Option<bool>
true if the fetcher request hits catche instead of actually requesting the remote service.
context: PackLogContext
§duration: Option<f64>
§method: Option<PackFetcherLogMethod>
§request_size_bytes: Option<f64>
§response_code: Option<f64>
§response_size_bytes: Option<f64>
§type_: PackFetcherLogType
Trait Implementations§
Source§impl Clone for PackFetcherLog
impl Clone for PackFetcherLog
Source§fn clone(&self) -> PackFetcherLog
fn clone(&self) -> PackFetcherLog
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackFetcherLog
impl Debug for PackFetcherLog
Source§impl<'de> Deserialize<'de> for PackFetcherLog
impl<'de> Deserialize<'de> for PackFetcherLog
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PackFetcherLog> for PackFetcherLog
impl From<&PackFetcherLog> for PackFetcherLog
Source§fn from(value: &PackFetcherLog) -> Self
fn from(value: &PackFetcherLog) -> Self
Converts to this type from the input type.
Source§impl From<PackFetcherLog> for PackLog
impl From<PackFetcherLog> for PackLog
Source§fn from(value: PackFetcherLog) -> Self
fn from(value: PackFetcherLog) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackFetcherLog
impl RefUnwindSafe for PackFetcherLog
impl Send for PackFetcherLog
impl Sync for PackFetcherLog
impl Unpin for PackFetcherLog
impl UnwindSafe for PackFetcherLog
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more