Class: AnalyticsOps::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/analytics_ops/rails/railtie.rb

Overview

Optional Rails hooks. Defining this class performs no Google API calls.

Constant Summary collapse

OPERATOR_TASKS =
{
  doctor: "Validate Analytics Ops configuration, credentials, and API access",
  audit: "Audit configured Google Analytics state without changing it",
  plan: "Write a deterministic Analytics Ops plan",
  verify: "Verify that managed Google Analytics state converges",
  overview: "Show the selected property's Analytics overview",
  portfolio: "Show totals across every configured Analytics property",
  health: "Check traffic, data quality, quota, and configuration drift",
  governance: "Audit broader GA4 governance settings without changing them",
  access: "Read the aggregate GA4 access report"
}.freeze
NAMED_TASKS =
{
  report: "Run a built-in report",
  raw: "Run an optional BigQuery recipe",
  funnel: "Run a configured funnel"
}.freeze