pub struct DocAnalyticsMetrics {Show 14 fields
pub ai_credits: i64,
pub ai_credits_assistant: i64,
pub ai_credits_block: i64,
pub ai_credits_chat: i64,
pub ai_credits_column: i64,
pub ai_credits_reviewer: i64,
pub copies: i64,
pub date: NaiveDate,
pub likes: i64,
pub sessions_desktop: i64,
pub sessions_mobile: i64,
pub sessions_other: i64,
pub total_sessions: i64,
pub views: i64,
}
Expand description
Analytics metrics for a Coda Doc.
JSON schema
{
"description": "Analytics metrics for a Coda Doc.",
"type": "object",
"required": [
"aiCredits",
"aiCreditsAssistant",
"aiCreditsBlock",
"aiCreditsChat",
"aiCreditsColumn",
"aiCreditsReviewer",
"copies",
"date",
"likes",
"sessionsDesktop",
"sessionsMobile",
"sessionsOther",
"totalSessions",
"views"
],
"properties": {
"aiCredits": {
"description": "Total number of AI credits used.",
"examples": [
50
],
"type": "integer"
},
"aiCreditsAssistant": {
"description": "Number of credits used for AI assistant.",
"examples": [
10
],
"type": "integer"
},
"aiCreditsBlock": {
"description": "Number of credits used for AI block.",
"examples": [
10
],
"type": "integer"
},
"aiCreditsChat": {
"description": "Number of credits used for AI chat.",
"examples": [
10
],
"type": "integer"
},
"aiCreditsColumn": {
"description": "Number of credits used for AI column.",
"examples": [
10
],
"type": "integer"
},
"aiCreditsReviewer": {
"description": "Number of credits used for AI reviewer.",
"examples": [
10
],
"type": "integer"
},
"copies": {
"description": "Number of times the doc was copied.",
"examples": [
24
],
"type": "integer"
},
"date": {
"description": "Date of the analytics data.",
"examples": [
"2020-09-02"
],
"type": "string",
"format": "date"
},
"likes": {
"description": "Number of times the doc was liked.",
"examples": [
342
],
"type": "integer"
},
"sessionsDesktop": {
"description": "Number of unique visitors to this doc from a
desktop device.",
"examples": [
212
],
"type": "integer"
},
"sessionsMobile": {
"description": "Number of unique visitors to this doc from a mobile
device.",
"examples": [
530
],
"type": "integer"
},
"sessionsOther": {
"description": "Number of unique visitors to this doc from an
unknown device type.",
"examples": [
10
],
"type": "integer"
},
"totalSessions": {
"description": "Sum of the total sessions from any device.",
"examples": [
1000
],
"type": "integer"
},
"views": {
"description": "Number of times the doc was viewed.",
"examples": [
980
],
"type": "integer"
}
},
"additionalProperties": false,
"x-schema-name": "DocAnalyticsMetrics"
}
Fields§
§ai_credits: i64
Total number of AI credits used.
ai_credits_assistant: i64
Number of credits used for AI assistant.
ai_credits_block: i64
Number of credits used for AI block.
ai_credits_chat: i64
Number of credits used for AI chat.
ai_credits_column: i64
Number of credits used for AI column.
ai_credits_reviewer: i64
Number of credits used for AI reviewer.
copies: i64
Number of times the doc was copied.
date: NaiveDate
Date of the analytics data.
likes: i64
Number of times the doc was liked.
sessions_desktop: i64
Number of unique visitors to this doc from a desktop device.
sessions_mobile: i64
Number of unique visitors to this doc from a mobile device.
sessions_other: i64
Number of unique visitors to this doc from an unknown device type.
total_sessions: i64
Sum of the total sessions from any device.
views: i64
Number of times the doc was viewed.
Trait Implementations§
Source§impl Clone for DocAnalyticsMetrics
impl Clone for DocAnalyticsMetrics
Source§fn clone(&self) -> DocAnalyticsMetrics
fn clone(&self) -> DocAnalyticsMetrics
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 DocAnalyticsMetrics
impl Debug for DocAnalyticsMetrics
Source§impl<'de> Deserialize<'de> for DocAnalyticsMetrics
impl<'de> Deserialize<'de> for DocAnalyticsMetrics
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<&DocAnalyticsMetrics> for DocAnalyticsMetrics
impl From<&DocAnalyticsMetrics> for DocAnalyticsMetrics
Source§fn from(value: &DocAnalyticsMetrics) -> Self
fn from(value: &DocAnalyticsMetrics) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DocAnalyticsMetrics
impl RefUnwindSafe for DocAnalyticsMetrics
impl Send for DocAnalyticsMetrics
impl Sync for DocAnalyticsMetrics
impl Unpin for DocAnalyticsMetrics
impl UnwindSafe for DocAnalyticsMetrics
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