{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/procfs/issues/117","repository_url":"https://api.github.com/repos/prometheus/procfs","labels_url":"https://api.github.com/repos/prometheus/procfs/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/procfs/issues/117/comments","events_url":"https://api.github.com/repos/prometheus/procfs/issues/117/events","html_url":"https://github.com/prometheus/procfs/pull/117","id":372231948,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NDg3NjAz","number":117,"title":"Add Support for /sys/class/power_supply","user":{"login":"shaardie","id":5557272,"node_id":"MDQ6VXNlcjU1NTcyNzI=","avatar_url":"https://avatars2.githubusercontent.com/u/5557272?v=4","gravatar_id":"","url":"https://api.github.com/users/shaardie","html_url":"https://github.com/shaardie","followers_url":"https://api.github.com/users/shaardie/followers","following_url":"https://api.github.com/users/shaardie/following{/other_user}","gists_url":"https://api.github.com/users/shaardie/gists{/gist_id}","starred_url":"https://api.github.com/users/shaardie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaardie/subscriptions","organizations_url":"https://api.github.com/users/shaardie/orgs","repos_url":"https://api.github.com/users/shaardie/repos","events_url":"https://api.github.com/users/shaardie/events{/privacy}","received_events_url":"https://api.github.com/users/shaardie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"grobie","id":3432,"node_id":"MDQ6VXNlcjM0MzI=","avatar_url":"https://avatars3.githubusercontent.com/u/3432?v=4","gravatar_id":"","url":"https://api.github.com/users/grobie","html_url":"https://github.com/grobie","followers_url":"https://api.github.com/users/grobie/followers","following_url":"https://api.github.com/users/grobie/following{/other_user}","gists_url":"https://api.github.com/users/grobie/gists{/gist_id}","starred_url":"https://api.github.com/users/grobie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grobie/subscriptions","organizations_url":"https://api.github.com/users/grobie/orgs","repos_url":"https://api.github.com/users/grobie/repos","events_url":"https://api.github.com/users/grobie/events{/privacy}","received_events_url":"https://api.github.com/users/grobie/received_events","type":"User","site_admin":false},"assignees":[{"login":"grobie","id":3432,"node_id":"MDQ6VXNlcjM0MzI=","avatar_url":"https://avatars3.githubusercontent.com/u/3432?v=4","gravatar_id":"","url":"https://api.github.com/users/grobie","html_url":"https://github.com/grobie","followers_url":"https://api.github.com/users/grobie/followers","following_url":"https://api.github.com/users/grobie/following{/other_user}","gists_url":"https://api.github.com/users/grobie/gists{/gist_id}","starred_url":"https://api.github.com/users/grobie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grobie/subscriptions","organizations_url":"https://api.github.com/users/grobie/orgs","repos_url":"https://api.github.com/users/grobie/repos","events_url":"https://api.github.com/users/grobie/events{/privacy}","received_events_url":"https://api.github.com/users/grobie/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-10-20T17:03:53Z","updated_at":"2018-10-27T10:53:33Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/prometheus/procfs/pulls/117","html_url":"https://github.com/prometheus/procfs/pull/117","diff_url":"https://github.com/prometheus/procfs/pull/117.diff","patch_url":"https://github.com/prometheus/procfs/pull/117.patch"},"body":"This corresponds to [ACPI Support Issue](https://github.com/prometheus/node_exporter/issues/676) in Node exporter.\r\n\r\nThe implementation uses [netclass.go](https://github.com/prometheus/procfs/blob/master/sysfs/net_class.go) as a model."},"comment":{"url":"https://api.github.com/repos/prometheus/procfs/issues/comments/433610532","html_url":"https://github.com/prometheus/procfs/pull/117#issuecomment-433610532","issue_url":"https://api.github.com/repos/prometheus/procfs/issues/117","id":433610532,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzYxMDUzMg==","user":{"login":"shaardie","id":5557272,"node_id":"MDQ6VXNlcjU1NTcyNzI=","avatar_url":"https://avatars2.githubusercontent.com/u/5557272?v=4","gravatar_id":"","url":"https://api.github.com/users/shaardie","html_url":"https://github.com/shaardie","followers_url":"https://api.github.com/users/shaardie/followers","following_url":"https://api.github.com/users/shaardie/following{/other_user}","gists_url":"https://api.github.com/users/shaardie/gists{/gist_id}","starred_url":"https://api.github.com/users/shaardie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaardie/subscriptions","organizations_url":"https://api.github.com/users/shaardie/orgs","repos_url":"https://api.github.com/users/shaardie/repos","events_url":"https://api.github.com/users/shaardie/events{/privacy}","received_events_url":"https://api.github.com/users/shaardie/received_events","type":"User","site_admin":false},"created_at":"2018-10-27T10:53:33Z","updated_at":"2018-10-27T10:53:33Z","author_association":"NONE","body":"@shachaf Yes, all those attributes are also present via the `uevent` interface in `/sys/class/power_supply/*/uevent`, but \r\n\r\n* I thought this project was about parsing the `sysfs` and `procfs` interfaces, so it appears canonical to me to read those interfaces.\r\n* I do not really see why parsing the `uevent` file is more straightforward. Yes it is only one file, but you actually have to parse it. Using the other files is only reading the file and using the correct type."}}
{"actor":{"display_login":"shaardie"}}