{"id":20345201,"url":"https://github.com/hartfordfive/ruby-grafana-api","last_synced_at":"2025-05-08T03:33:42.811Z","repository":{"id":56875090,"uuid":"46124349","full_name":"hartfordfive/ruby-grafana-api","owner":"hartfordfive","description":"A simple Ruby wrapper for the Grafana HTTP API","archived":true,"fork":false,"pushed_at":"2018-11-02T14:17:50.000Z","size":34,"stargazers_count":25,"open_issues_count":11,"forks_count":24,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T23:01:57.548Z","etag":null,"topics":["grafana","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/hartfordfive.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-13T13:45:54.000Z","updated_at":"2025-03-12T18:57:23.000Z","dependencies_parsed_at":"2022-08-20T10:11:14.907Z","dependency_job_id":null,"html_url":"https://github.com/hartfordfive/ruby-grafana-api","commit_stats":null,"previous_names":["lightspeedretail/ruby-grafana-api"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartfordfive%2Fruby-grafana-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartfordfive%2Fruby-grafana-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartfordfive%2Fruby-grafana-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartfordfive%2Fruby-grafana-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hartfordfive","download_url":"https://codeload.github.com/hartfordfive/ruby-grafana-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252995022,"owners_count":21837561,"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":["grafana","ruby"],"created_at":"2024-11-14T22:07:15.708Z","updated_at":"2025-05-08T03:33:42.549Z","avatar_url":"https://github.com/hartfordfive.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby-grafana-api\n\n[![Gem Version](https://badge.fury.io/rb/grafana-api.svg)](https://badge.fury.io/rb/grafana-api)\n\n## Description\n\nA simple Ruby wrapper for the [Grafana](http://docs.grafana.org/reference/http_api/)  HTTP API.  To include in your project, simply require the grafana library:\n\n```ruby\nrequire 'grafana'\n```\n\n## Comments/Notes\n\nIf you come across a bug or if you have a request for a new feature, please open an issue.\n\n\n## Methods \u0026 Usage Examples\n\n#### Creating an instance of the grafana api client: \n```ruby\noptions = {\n  \"debug\" =\u003e false,\n  \"timeout\" =\u003e 3,\n  \"ssl\" =\u003e false\n}\ng = Grafana::Client.new('[GRAFANA_HOST]', [GRAFANA_PORT], '[GRAFANA_USER]', '[GRAFANA_PASS]', options)\n```\n\n#### Connecting to Grafana using an API key:\n```ruby\noptions = {\n  \"debug\" =\u003e false,\n  \"timeout\" =\u003e 3,\n  \"ssl\" =\u003e false,\n  \"headers\" =\u003e {\n    \"Authorization\" =\u003e \"Bearer eiJrIjoidTBsQWpicGR0SzFXD29aclExTjk1cVliMWREUVp0alAiLCJuIjoiR8JhZGFzaG3yFiwiawQIOjE2\"\n  }\n}\ng = Grafana::Client.new('[GRAFANA_HOST]', [GRAFANA_PORT], nil, nil, options)\n```\n*user and pass attributes are ignored when specifying Authorization header*\n\n#### Individual Module Documentation\n\n* [Admin](docs/ADMIN.md) \n* [Dashboard](docs/DASHBOARD.md) \n* [Datasource](docs/DATASOURCE.md) \n* [Frontend](docs/FRONTEND.md) \n* [Login](docs/LOGIN.md) \n* [Organization](docs/ORGANIZATION.md) \n* [Organizations](docs/ORGANIZATIONS.md) \n* [Snapshot](docs/SNAPSHOT.md) \n* [User](docs/USER.md) \n* [Users](docs/USERS.md) \n\n\n## License\n\nCovered by the MIT [license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartfordfive%2Fruby-grafana-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhartfordfive%2Fruby-grafana-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartfordfive%2Fruby-grafana-api/lists"}