{"nodes": [{"id": "mnt_usb_hdd2_projects_activitywatch_russian_grafana_1c_sql_exporter_collectors_aw_activitywatch_py", "label": "aw_activitywatch.py", "file_type": "code", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L1"}, {"id": "aw_activitywatch_activitywatchexporter", "label": "ActivityWatchExporter", "file_type": "code", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L31"}, {"id": "aw_activitywatch_activitywatchexporter_init", "label": ".__init__()", "file_type": "code", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L32"}, {"id": "aw_activitywatch_activitywatchexporter_get_buckets", "label": ".get_buckets()", "file_type": "code", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L38"}, {"id": "aw_activitywatch_activitywatchexporter_get_bucket_events", "label": ".get_bucket_events()", "file_type": "code", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L48"}, {"id": "aw_activitywatch_activitywatchexporter_get_bucket_info", "label": ".get_bucket_info()", "file_type": "code", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L62"}, {"id": "aw_activitywatch_activitywatchexporter_collect_metrics", "label": ".collect_metrics()", "file_type": "code", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L72"}, {"id": "aw_activitywatch_main", "label": "main()", "file_type": "code", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L125"}, {"id": "aw_activitywatch_rationale_39", "label": "Get all buckets from ActivityWatch API.", "file_type": "rationale", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L39"}, {"id": "aw_activitywatch_rationale_49", "label": "Get events from a specific bucket.", "file_type": "rationale", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L49"}, {"id": "aw_activitywatch_rationale_63", "label": "Get detailed info about a bucket.", "file_type": "rationale", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L63"}, {"id": "aw_activitywatch_rationale_73", "label": "Collect metrics from ActivityWatch.", "file_type": "rationale", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L73"}], "edges": [{"source": "mnt_usb_hdd2_projects_activitywatch_russian_grafana_1c_sql_exporter_collectors_aw_activitywatch_py", "target": "time", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L7", "weight": 1.0}, {"source": "mnt_usb_hdd2_projects_activitywatch_russian_grafana_1c_sql_exporter_collectors_aw_activitywatch_py", "target": "logging", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L8", "weight": 1.0}, {"source": "mnt_usb_hdd2_projects_activitywatch_russian_grafana_1c_sql_exporter_collectors_aw_activitywatch_py", "target": "requests", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L9", "weight": 1.0}, {"source": "mnt_usb_hdd2_projects_activitywatch_russian_grafana_1c_sql_exporter_collectors_aw_activitywatch_py", "target": "prometheus_client", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L10", "weight": 1.0}, {"source": "mnt_usb_hdd2_projects_activitywatch_russian_grafana_1c_sql_exporter_collectors_aw_activitywatch_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L11", "weight": 1.0}, {"source": "mnt_usb_hdd2_projects_activitywatch_russian_grafana_1c_sql_exporter_collectors_aw_activitywatch_py", "target": "aw_activitywatch_activitywatchexporter", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L31", "weight": 1.0}, {"source": "aw_activitywatch_activitywatchexporter", "target": "aw_activitywatch_activitywatchexporter_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L32", "weight": 1.0}, {"source": "aw_activitywatch_activitywatchexporter", "target": "aw_activitywatch_activitywatchexporter_get_buckets", "relation": "method", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L38", "weight": 1.0}, {"source": "aw_activitywatch_activitywatchexporter", "target": "aw_activitywatch_activitywatchexporter_get_bucket_events", "relation": "method", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L48", "weight": 1.0}, {"source": "aw_activitywatch_activitywatchexporter", "target": "aw_activitywatch_activitywatchexporter_get_bucket_info", "relation": "method", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L62", "weight": 1.0}, {"source": "aw_activitywatch_activitywatchexporter", "target": "aw_activitywatch_activitywatchexporter_collect_metrics", "relation": "method", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L72", "weight": 1.0}, {"source": "mnt_usb_hdd2_projects_activitywatch_russian_grafana_1c_sql_exporter_collectors_aw_activitywatch_py", "target": "aw_activitywatch_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L125", "weight": 1.0}, {"source": "aw_activitywatch_activitywatchexporter_collect_metrics", "target": "aw_activitywatch_activitywatchexporter_get_buckets", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L74", "weight": 1.0}, {"source": "aw_activitywatch_activitywatchexporter_collect_metrics", "target": "aw_activitywatch_activitywatchexporter_get_bucket_events", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L95", "weight": 1.0}, {"source": "aw_activitywatch_main", "target": "aw_activitywatch_activitywatchexporter", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L126", "weight": 1.0}, {"source": "aw_activitywatch_main", "target": "aw_activitywatch_activitywatchexporter_collect_metrics", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L129", "weight": 1.0}, {"source": "aw_activitywatch_rationale_39", "target": "aw_activitywatch_activitywatchexporter_get_buckets", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L39", "weight": 1.0}, {"source": "aw_activitywatch_rationale_49", "target": "aw_activitywatch_activitywatchexporter_get_bucket_events", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L49", "weight": 1.0}, {"source": "aw_activitywatch_rationale_63", "target": "aw_activitywatch_activitywatchexporter_get_bucket_info", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L63", "weight": 1.0}, {"source": "aw_activitywatch_rationale_73", "target": "aw_activitywatch_activitywatchexporter_collect_metrics", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L73", "weight": 1.0}], "raw_calls": [{"caller_nid": "aw_activitywatch_activitywatchexporter_init", "callee": "Session", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L34"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_init", "callee": "update", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L35"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_buckets", "callee": "get", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L41"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_buckets", "callee": "raise_for_status", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L42"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_buckets", "callee": "json", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L43"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_buckets", "callee": "error", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L45"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_bucket_events", "callee": "get", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L51"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_bucket_events", "callee": "raise_for_status", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L56"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_bucket_events", "callee": "json", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L57"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_bucket_events", "callee": "error", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L59"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_bucket_info", "callee": "get", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L65"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_bucket_info", "callee": "raise_for_status", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L66"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_bucket_info", "callee": "json", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L67"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_get_bucket_info", "callee": "error", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L69"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "set", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L77"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "len", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L77"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "info", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L80"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "items", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L89"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "get", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L90"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "get", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L91"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "get", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L92"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "len", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L96"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "set", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L97"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "labels", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L97"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "get", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L102"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "isinstance", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L105"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "fromisoformat", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L106"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "replace", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L106"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "timestamp", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L107"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "set", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L110"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "labels", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L110"}, {"caller_nid": "aw_activitywatch_activitywatchexporter_collect_metrics", "callee": "info", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L123"}, {"caller_nid": "aw_activitywatch_main", "callee": "start_http_server", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L132"}, {"caller_nid": "aw_activitywatch_main", "callee": "info", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L133"}, {"caller_nid": "aw_activitywatch_main", "callee": "info", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L134"}, {"caller_nid": "aw_activitywatch_main", "callee": "sleep", "source_file": "/mnt/usb_hdd2/Projects/ActivityWatch-Russian/grafana-1c/sql-exporter/collectors/aw_activitywatch.py", "source_location": "L138"}]}