{"id":27301296,"url":"https://github.com/wileespaghetti/go-uptimerobot-v2","last_synced_at":"2025-04-12T01:45:31.250Z","repository":{"id":149120810,"uuid":"108928769","full_name":"WileESpaghetti/go-uptimerobot-v2","owner":"WileESpaghetti","description":"Uptime Robot APIv2 client","archived":false,"fork":false,"pushed_at":"2024-11-06T03:42:11.000Z","size":167,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-11-06T04:29:19.233Z","etag":null,"topics":["uptime-robot","uptimerobot","uptimerobot-api","uptimerobotapi"],"latest_commit_sha":null,"homepage":"","language":"Go","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/WileESpaghetti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-31T01:29:11.000Z","updated_at":"2024-11-06T03:42:14.000Z","dependencies_parsed_at":"2024-06-21T19:32:26.441Z","dependency_job_id":"19eecdda-0807-4f19-8a32-74b391717429","html_url":"https://github.com/WileESpaghetti/go-uptimerobot-v2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WileESpaghetti%2Fgo-uptimerobot-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WileESpaghetti%2Fgo-uptimerobot-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WileESpaghetti%2Fgo-uptimerobot-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WileESpaghetti%2Fgo-uptimerobot-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WileESpaghetti","download_url":"https://codeload.github.com/WileESpaghetti/go-uptimerobot-v2/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505939,"owners_count":21115354,"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":["uptime-robot","uptimerobot","uptimerobot-api","uptimerobotapi"],"created_at":"2025-04-12T01:45:30.648Z","updated_at":"2025-04-12T01:45:31.216Z","avatar_url":"https://github.com/WileESpaghetti.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-uptimerobot-v2\n\n![example workflow](https://github.com/WileESpaghetti/go-uptimerobot-v2/actions/workflows/go.yml/badge.svg)\n\nUptime Robot APIv2 command-line client and library\n\n[UptimeRobot API Documentation](https://uptimerobot.com/api)\n\n\n## Build\n```shell\ngo build -o uptimerobot cmd/uptimerobot/main.go\n```\n\n## Command Usage\n\n```shell\n./uptimerobot GROUP [COMMAND] --api-key=$KEY\n```\n\n## Library Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/WileESpaghetti/go-uptimerobot-v2/uptime_robot\"\n)\n\nfunc main() {\n\t// initialize the API client\n\tapiKey := \"your-api-key\"\n\tur := uptime_robot.NewClient(apiKey)\n\n\t// get all monitors\n\tmonitors, err := ur.GetMonitors()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\t\n    for _, m := range monitors {\n\t\tfmt.Printf(\"%d: %s: %s\\n\", m.ID, m.Url, m.Status)\n    }\n\t\n    // get specific monitors\n    \n\t\n    \n}\n```\n\n### Implemented groups\n* account - displays account information\n* monitor\n* contact\n* psp\n* help\n* other cobra built-ins\n\n### API Support\n\n#### `getAccountDetails`\n- [X] api_key\n\n#### `getMonitors`\n- [X] api_key\n- [X] monitors\n- [X] types\n- [X] statuses\n- [X] custom_uptime_ratios\n  - does not accept hyphen as a separator yet\n- [ ] custom_down_durations\n- [ ] custom_uptime_ranges\n- [X] all_time_uptime_ratio\n- [X] all_time_uptime_durations\n- [X] logs\n  - [ ] logs_start_date [Requires Pro Plan]\n  - [ ] logs_end_date [Requires Pro Plan]\n  - [X] log_types\n  - [X] logs_limit\n- [X] response_times\n  - [X] response_times_limit\n  - [X] response_times_average\n  - [X] response_times_start_date\n  - [X] response_times_end_date\n- [X] alert_contacts\n- [ ] mwindows\n- [ ] ssl\n- [ ] custom_http_headers\n- [X] custom_http_statuses\n- [ ] http_request_details\n- [X] auth_type\n- [ ] timezone\n  - not really a property of a monitor and is returned as a property of the main response object\n- [ ] offset\n- [ ] limit\n- [ ] search\n\n#### `getAlertContacts`\n- [X] api_key\n- [X] alert_contacts\n- [ ] offset\n- [ ] limit\n \n#### `getPSPs`\n- [X] api_key\n- [X] psps\n- [ ] offset\n- [ ] limit\n\n#### `getMWindows`\n- [ ] api_key\n- [ ] mwindows\n- [ ] offset\n- [ ] limit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwileespaghetti%2Fgo-uptimerobot-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwileespaghetti%2Fgo-uptimerobot-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwileespaghetti%2Fgo-uptimerobot-v2/lists"}