hanzo_client/models/web_overview.rs
1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct WebOverview {
16 /// Available is false when the product-event table could not be read — the lens is reported missing rather than as zeros that look like real traffic.
17 #[serde(rename = "available", skip_serializing_if = "Option::is_none")]
18 pub available: Option<bool>,
19 /// Pageviews is how many $pageview events landed in the window.
20 #[serde(rename = "pageviews", skip_serializing_if = "Option::is_none")]
21 pub pageviews: Option<i32>,
22 /// Reason says why the lens is unavailable. Omitted when it is available.
23 #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
24 pub reason: Option<String>,
25 /// Sessions is how many distinct visits they span.
26 #[serde(rename = "sessions", skip_serializing_if = "Option::is_none")]
27 pub sessions: Option<i32>,
28 /// Source is the warehouse table the lens read.
29 #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
30 pub source: Option<String>,
31 /// Visitors is how many distinct people those pageviews came from.
32 #[serde(rename = "visitors", skip_serializing_if = "Option::is_none")]
33 pub visitors: Option<i32>,
34}
35
36impl WebOverview {
37 pub fn new() -> WebOverview {
38 WebOverview {
39 available: None,
40 pageviews: None,
41 reason: None,
42 sessions: None,
43 source: None,
44 visitors: None,
45 }
46 }
47}
48