! Core types shared by every collector and sink.
// Source: https://github.com/PostHog/posthog | License: MIT | Copyright 2020-2026 PostHog Inc
// Provided via justclaw.it.com; keep this notice with the code.
//! Core types shared by every collector and sink.
use anyhow::Result;
use async_trait::async_trait;
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;
use std::time::Duration;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum Scope {
/// Run once per server (pg_stat_statements, pg_stat_bgwriter, replication ...)
Cluster,
/// Run once per database (pg_stat_user_tables, sizes, schema ...)
Database,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key