Skip to content

Gizmo Raport Notify Slack

Automatyczny system notyfikacji Slack dla raportów z platformy Gizmo.

Opis

Aplikacja generuje raporty z systemu Gizmo i wysyła je jako notyfikacje na określone kanały Slack. Umożliwia automatyzację raportowania kluczowych metryk i wydarzeń bez konieczności manualnego przygotowywania komunikatów (unverified — confirm with team: dokładny zakres raportowania, źródła danych, częstotliwość).

Tech Stack

(unverified — confirm with team: poniższe założono na podstawie naming conventions — zweryfikuj rzeczywisty stack)

  • Język: Python 3.8+ / Node.js 16+ (TBD)
  • Slack API: slack-sdk / @slack/web-api (TBD)
  • Scheduler: cron / scheduled tasks (TBD)
  • Config: environment variables / YAML (TBD)

Wymagania

(unverified — confirm with team)

  • Slack Bot Token z uprawnieniami:
    • chat:write
    • channels:read (potential)
  • Dostęp do API/bazy danych Gizmo (TBD: endpoint, credentials)
  • Environment variables:
    • SLACK_BOT_TOKEN — Slack bot token
    • GIZMO_API_URL — endpoint API Gizmo (potential)
    • GIZMO_API_KEY — klucz dostępu (potential)
    • SLACK_CHANNEL_ID — ID kanału docelowego (potential)

Instalacja

(unverified — confirm with team: zakładając Python-based project)

bash
# Clone repository
git clone https://github.com/Wellysa/gizmo_raport_notify_slack.git
cd gizmo_raport_notify_slack

# Install dependencies
# Opcja A (Python):
pip install -r requirements.txt

# Opcja B (Node.js):
npm install

# Setup environment variables
cp .env.example .env
# Edytuj .env i uzupełnij tokeny/klucze

Uruchomienie

(unverified — confirm with team)

bash
# Manual run (Python):
python main.py

# Manual run (Node.js):
node index.js

# Scheduled run (przykład cron):
0 9 * * * cd /path/to/gizmo_raport_notify_slack && python main.py

Konfiguracja

(unverified — confirm with team: zakładana struktura config)

Przykładowy config file (config.yaml / config.json):

yaml
slack:
  token: ${SLACK_BOT_TOKEN}
  channel: ${SLACK_CHANNEL_ID}
  
gizmo:
  api_url: ${GIZMO_API_URL}
  api_key: ${GIZMO_API_KEY}
  
report:
  enabled: true
  schedule: "0 9 * * *"  # 9:00 AM daily
  metrics:
    - bookings_count
    - revenue_daily
    - active_users

Funkcjonalność

(unverified — confirm with team: założenia na podstawie nazwy)

  1. Automatyczne raporty: Cykliczne wysyłanie raportów zgodnie z harmonogramem
  2. Notyfikacje Slack: Formatowane wiadomości na kanały Slack
  3. Metryki Gizmo: Pobieranie danych z API/bazy Gizmo (TBD: jakie konkretnie metryki)
  4. Error handling: Logowanie błędów i retry mechanism (potential)

Struktura projektu

(unverified — confirm with team: assumed structure)

gizmo_raport_notify_slack/
├── main.py / index.js          # Entry point
├── config.yaml                  # Configuration
├── requirements.txt / package.json
├── .env.example                 # Environment template
├── src/
│   ├── gizmo_client.py         # Gizmo API client *(potential)*
│   ├── slack_notifier.py       # Slack integration *(potential)*
│   └── report_generator.py     # Report logic *(potential)*
└── README.md

Status

(unverified — confirm with team)

  • ✅ Podstawowa integracja Slack (assumed)
  • ✅ Pobieranie danych z Gizmo (assumed)
  • ⚠️ Format raportów — wymaga weryfikacji
  • ⚠️ Harmonogram wysyłki — wymaga konfiguracji
  • 🚧 Error recovery & monitoring — TBD

Rozwój

(unverified — confirm with team)

Planowane funkcjonalności:

  • [ ] Dashboard z historią raportów
  • [ ] Custom report templates
  • [ ] Multi-channel support
  • [ ] Alert thresholds dla metryk

Kontakt

Wellysa Team — [email protected]


⚠️ UWAGA: Ten README został wygenerowany automatycznie na podstawie naming conventions. Większość sekcji wymaga weryfikacji z rzeczywistym kodem. Proszę zaktualizować następujące elementy:

  • Tech stack i dependencies (package.json/requirements.txt)
  • Environment variables i konfiguracja
  • Struktura projektu i entry points
  • Rzeczywiste metryki i funkcjonalność
  • Setup instructions

Wellysa Consigliere — internal use only.