{"id":18620500,"url":"https://github.com/simonsobs/nextline-alert","last_synced_at":"2025-10-09T07:08:32.718Z","repository":{"id":220349450,"uuid":"751431001","full_name":"simonsobs/nextline-alert","owner":"simonsobs","description":"A plugin of nextline-graphql. Emit alerts to Campana","archived":false,"fork":false,"pushed_at":"2025-04-03T13:25:37.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-03T14:28:20.559Z","etag":null,"topics":["nextline"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonsobs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-01T15:46:40.000Z","updated_at":"2025-04-03T13:25:35.000Z","dependencies_parsed_at":"2024-02-08T16:46:40.117Z","dependency_job_id":"33030d07-1c27-4bd9-a41e-ebe8f2d6f20f","html_url":"https://github.com/simonsobs/nextline-alert","commit_stats":null,"previous_names":["simonsobs/nextline-alert"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fnextline-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fnextline-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fnextline-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fnextline-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonsobs","download_url":"https://codeload.github.com/simonsobs/nextline-alert/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248329547,"owners_count":21085557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextline"],"created_at":"2024-11-07T04:06:36.683Z","updated_at":"2025-10-09T07:08:32.713Z","avatar_url":"https://github.com/simonsobs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nextline-alert\n\n[![PyPI - Version](https://img.shields.io/pypi/v/nextline-alert.svg)](https://pypi.org/project/nextline-alert)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/nextline-alert.svg)](https://pypi.org/project/nextline-alert)\n\n[![Test Status](https://github.com/simonsobs/nextline-alert/actions/workflows/unit-test.yml/badge.svg)](https://github.com/simonsobs/nextline-alert/actions/workflows/unit-test.yml)\n[![Test Status](https://github.com/simonsobs/nextline-alert/actions/workflows/type-check.yml/badge.svg)](https://github.com/simonsobs/nextline-alert/actions/workflows/type-check.yml)\n[![codecov](https://codecov.io/gh/simonsobs/nextline-alert/branch/main/graph/badge.svg)](https://codecov.io/gh/simonsobs/nextline-alert)\n\nA plugin for [nextline-graphql](https://github.com/simonsobs/nextline-graphql).\nEmit alerts to [Campana](https://github.com/simonsobs/campana)\n\n## Installation\n\n```console\npip install nextline-alert\n```\n\n## Alert types\n\n- **Run failed:** The script execution by `nextline` ended with an uncaught\n  exception except for `KeyboardInterrupt`.\n- **Idle:** The time specified by `NEXTLINE_ALERT__IDLE_TIMEOUT_MINUTES`\n  minutes has passed without the script execution since the last run ended or\n  the backend started.\n\n## Configuration\n\n| Environment variable                   | Default value             | Description                 |\n| -------------------------------------- | ------------------------- | --------------------------- |\n| `NEXTLINE_ALERT__CAMPANA_URL`          | `http://httpbin.org/post` | The CAMPANA endpoint        |\n| `NEXTLINE_ALERT__PLATFORM`             | `localhost`               | The platform name           |\n| `NEXTLINE_ALERT__IDLE_TIMEOUT_MINUTES` | 20.0                      | The idle timeout in minutes |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsobs%2Fnextline-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonsobs%2Fnextline-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsobs%2Fnextline-alert/lists"}