{"action":"created","comment":{"url":"https://api.github.com/repos/simelo/rextporter/pulls/comments/234073660","pull_request_review_id":175636417,"id":234073660,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDA3MzY2MA==","diff_hunk":"@@ -0,0 +1,398 @@\n+package config\n+\n+import (\n+\t\"errors\"\n+\t\"fmt\"\n+\t\"os\"\n+\t\"path/filepath\"\n+\t\"strings\"\n+\t\"text/template\"\n+\n+\t\"github.com/shibukawa/configdir\"\n+\t\"github.com/simelo/rextporter/src/common\"\n+\t\"github.com/spf13/viper\"\n+)\n+\n+type templateData struct {\n+\tServiceConfigPath string\n+\tMetricsConfigPath string\n+}\n+\n+type mainConfigData struct {\n+\tmainConfigPath string\n+\ttmplData       templateData\n+}\n+\n+func (confData mainConfigData) ServiceConfigPath() string {\n+\treturn confData.tmplData.ServiceConfigPath\n+}\n+\n+func (confData mainConfigData) MetricsConfigPath() string {\n+\treturn confData.tmplData.MetricsConfigPath\n+}\n+\n+func (confData mainConfigData) MainConfigPath() string {\n+\treturn confData.mainConfigPath\n+}\n+\n+const mainConfigFileContentTemplate = `\n+serviceConfigTransport = \"file\" # \"file\" | \"consulCatalog\"\n+# render a template with a portable path\n+serviceConfigPath = \"{{.ServiceConfigPath}}\"\n+metricsConfigPath = \"{{.MetricsConfigPath}}\"\n+`\n+\n+const serviceConfigFileContentTemplate = `\n+# Service configuration.\n+name = \"wallet\"\n+scheme = \"http\"\n+port = 8000\n+basePath = \"\"\n+authType = \"CSRF\"\n+tokenHeaderKey = \"X-CSRF-Token\"\n+genTokenEndpoint = \"/api/v1/csrf.json\"\n+tokenKeyFromEndpoint = \"csrf_token\"\n+\n+[location]\n+  location = \"localhost\"\n+`\n+const metricsConfigFileContentTemplate = `\n+# All metrics to be measured.\n+[[metrics]]\n+  name = \"seq\"\n+  url = \"/api/v1/health.json\"\n+  httpMethod = \"GET\"\n+  path = \"/blockchain/head/seq\"\n+\n+  [metrics.options]\n+    type = \"Counter\"\n+    description = \"I am running since\"\n+\n+# [[metrics]]\n+#   name = \"openConnections\"\n+#   url = \"/api/v1/network/connections\"\n+#   httpMethod = \"GET\"\n+#   path = \"/\"\n+\n+#   [metrics.options]\n+#     type = \"Histogram\"\n+#     description = \"Connections ammount\"\n+\n+#   [metrics.histogramOptions]\n+#     buckets = [\n+#       1,\n+#       2, \n+#       3\n+#     ]\n+\n+\n+\n+\n+# TODO(denisacostaq@gmail.com):\n+# if you refer(under \"metrics_for_host\") to a not previously defined host or metric it will be raise an error and the process will not start\n+# if in all your definition you not use some host or metric the process will raise a warning and the process will start normally.\n+`\n+\n+var (\n+\tsystemVendorName      = \"simelo\"\n+\tsystemProgramName     = \"rextporter\"\n+\tmainConfigFileName    = \"main.toml\"\n+\tserviceConfigFileName = \"service.toml\"\n+\tmetricsConfigFileName = \"metrics.toml\"\n+)\n+\n+func createFullPath(path string) error {\n+\treturn os.MkdirAll(path, 0750)\n+}\n+\n+func creteFullPathForFile(filePath string) (err error) {\n+\tdir, _ := filepath.Split(filePath)\n+\treturn createFullPath(dir)\n+}\n+\n+// isADirectoryPath get info about the path string not about a phisical resource in the filesystem.\n+// return true if the path is a directory path\n+func isADirectoryPath(path string) bool {\n+\tdir, file := filepath.Split(path)\n+\treturn (strings.Compare(dir, \"\") != 0 && strings.Compare(file, \"\") == 0)\n+}\n+\n+func existFile(path string) bool {\n+\t_, err := os.Stat(path)\n+\treturn !os.IsNotExist(err)\n+}\n+\n+func (confData mainConfigData) existServiceConfigFile() bool {\n+\treturn existFile(confData.ServiceConfigPath())\n+}\n+\n+// createServiceConfigFile creates the service file or return an error if any,\n+// if the file already exist does no thin.\n+func (confData mainConfigData) createServiceConfigFile() (err error) {\n+\tgeneralScopeErr := \"error creating service config file\"\n+\tif confData.existServiceConfigFile() {\n+\t\treturn nil\n+\t}\n+\ttmpl := template.New(\"serviceConfig\")\n+\tvar templateEngine *template.Template\n+\tif templateEngine, err = tmpl.Parse(serviceConfigFileContentTemplate); err != nil {\n+\t\terrCause := \"error parsing service config: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\tif err = creteFullPathForFile(confData.ServiceConfigPath()); err != nil {\n+\t\terrCause := \"error creating directory for service file: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\tvar serviceConfigFile *os.File\n+\tif serviceConfigFile, err = os.Create(confData.ServiceConfigPath()); err != nil {\n+\t\terrCause := \"error creating service config file: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\tif err = templateEngine.Execute(serviceConfigFile, nil); err != nil {\n+\t\terrCause := \"error writing main config file: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\treturn err\n+}\n+\n+func (confData mainConfigData) existMetricsConfigFile() bool {\n+\treturn existFile(confData.tmplData.MetricsConfigPath)\n+}\n+\n+// createMetricsConfigFile creates the metrics file or return an error if any,\n+// if the file already exist does no thin.\n+func (confData mainConfigData) createMetricsConfigFile() (err error) {\n+\tgeneralScopeErr := \"error creating metrics config file\"\n+\tif confData.existMetricsConfigFile() {\n+\t\treturn nil\n+\t}\n+\ttmpl := template.New(\"metricsConfig\")\n+\tvar templateEngine *template.Template\n+\tif templateEngine, err = tmpl.Parse(metricsConfigFileContentTemplate); err != nil {\n+\t\terrCause := \"error parsing metrics config: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\tif err = creteFullPathForFile(confData.MetricsConfigPath()); err != nil {\n+\t\terrCause := \"error creating directory for metrics file: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\tvar metricsConfigFile *os.File\n+\tif metricsConfigFile, err = os.Create(confData.MetricsConfigPath()); err != nil {\n+\t\terrCause := \"error creating metrics config file: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\tif err = templateEngine.Execute(metricsConfigFile, nil); err != nil {\n+\t\terrCause := \"error writing metrics config file: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\treturn err\n+}\n+\n+func (confData mainConfigData) existMainConfigFile() bool {\n+\treturn existFile(confData.MetricsConfigPath())\n+}\n+\n+// createMainConfigFile creates the main file or return an error if any,\n+// if the file already exist does no thin.\n+func (confData mainConfigData) createMainConfigFile() (err error) {\n+\tgeneralScopeErr := \"error creating main config file\"\n+\tif confData.existMainConfigFile() {\n+\t\treturn nil\n+\t}\n+\ttmpl := template.New(\"mainConfig\")\n+\tvar templateEngine *template.Template\n+\tif templateEngine, err = tmpl.Parse(mainConfigFileContentTemplate); err != nil {\n+\t\terrCause := \"error parsing main config: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\tif err = creteFullPathForFile(confData.MainConfigPath()); err != nil {\n+\t\terrCause := \"error creating directory for main file: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\tvar mainConfigFile *os.File\n+\tif mainConfigFile, err = os.Create(confData.MainConfigPath()); err != nil {\n+\t\terrCause := \"error creating main config file: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\tif err = templateEngine.Execute(mainConfigFile, confData.tmplData); err != nil {\n+\t\terrCause := \"error writing main config file: \" + err.Error()\n+\t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+\t}\n+\treturn err\n+}\n+\n+func homeConfigFolder() (*configdir.Config, error) {\n+\tconfigDirs := configdir.New(systemVendorName, systemProgramName)\n+\tfolders := configDirs.QueryFolders(configdir.Global)\n+\tif len(folders) <= 0 {\n+\t\treturn nil, errors.New(\"some strange error was happen, can not determine the home config folder\")\n+\t}\n+\treturn folders[0], nil\n+}\n+\n+// func (mainConf mainConfigData) createFullStructure() (err error) {\n+// \tgeneralScopeErr := \"create full config structure\"\n+// \tvar homeConfig *configdir.Config\n+// \tif homeConfig, err = homeConfigFolder(); err != nil {\n+// \t\terrCause := \"error getting home config dir: \" + err.Error()\n+// \t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+// \t}\n+// \tif err := homeConfig.MkdirAll(); err != nil {\n+// \t\terrCause := \"error creating full path: \" + err.Error()\n+// \t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+// \t}\n+// \tif err = mainConf.createMainConfigFile(homeConfig); err != nil {\n+// \t\terrCause := \"error creating main config file: \" + err.Error()\n+// \t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+// \t}\n+// \tif err = mainConf.createServiceConfigFile(); err != nil {\n+// \t\terrCause := \"error creating service config file: \" + err.Error()\n+// \t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+// \t}\n+// \tif err = mainConf.createMetricsConfigFile(); err != nil {\n+// \t\terrCause := \"error creating metrics config file: \" + err.Error()\n+// \t\treturn common.ErrorFromThisScope(errCause, generalScopeErr)\n+// \t}\n+// \treturn err\n+// }\n+\n+func fileDefaultConfigPath(fileName string, homeConf *configdir.Config) (path string) {\n+\treturn filepath.Join(homeConf.Path, fileName)\n+}\n+\n+func metricsDefaultConfigPath(conf *configdir.Config) (path string) {\n+\treturn fileDefaultConfigPath(metricsConfigFileName, conf)\n+}\n+\n+func serviceDefaultConfigPath(conf *configdir.Config) (path string) {\n+\treturn fileDefaultConfigPath(serviceConfigFileName, conf)\n+}\n+\n+func mainDefaultConfigPath(conf *configdir.Config) (path string) {\n+\treturn fileDefaultConfigPath(mainConfigFileName, conf)\n+}\n+\n+func defaultTmplData(conf *configdir.Config) (tmplData templateData) {\n+\ttmplData = templateData{\n+\t\tServiceConfigPath: serviceDefaultConfigPath(conf),\n+\t\tMetricsConfigPath: metricsDefaultConfigPath(conf),\n+\t}\n+\treturn tmplData\n+}\n+\n+// func createDefaultMainConfigFile(conf *configdir.Config) (path string, tmplData templateData, err error) {","path":"src/config/config_render.go","position":null,"original_position":283,"commit_id":"32b8bc45f4c22b8b846043bc35b24f734189c0cf","original_commit_id":"02796f0de96cd82fd31193adaef3c2585ff50c24","user":{"login":"olemis","id":538253,"node_id":"MDQ6VXNlcjUzODI1Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/538253?v=4","gravatar_id":"","url":"https://api.github.com/users/olemis","html_url":"https://github.com/olemis","followers_url":"https://api.github.com/users/olemis/followers","following_url":"https://api.github.com/users/olemis/following{/other_user}","gists_url":"https://api.github.com/users/olemis/gists{/gist_id}","starred_url":"https://api.github.com/users/olemis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olemis/subscriptions","organizations_url":"https://api.github.com/users/olemis/orgs","repos_url":"https://api.github.com/users/olemis/repos","events_url":"https://api.github.com/users/olemis/events{/privacy}","received_events_url":"https://api.github.com/users/olemis/received_events","type":"User","site_admin":false},"body":"remove","created_at":"2018-11-16T02:25:41Z","updated_at":"2018-11-16T02:37:09Z","html_url":"https://github.com/simelo/rextporter/pull/17#discussion_r234073660","pull_request_url":"https://api.github.com/repos/simelo/rextporter/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/simelo/rextporter/pulls/comments/234073660"},"html":{"href":"https://github.com/simelo/rextporter/pull/17#discussion_r234073660"},"pull_request":{"href":"https://api.github.com/repos/simelo/rextporter/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/simelo/rextporter/pulls/17","id":229136448,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MTM2NDQ4","html_url":"https://github.com/simelo/rextporter/pull/17","diff_url":"https://github.com/simelo/rextporter/pull/17.diff","patch_url":"https://github.com/simelo/rextporter/pull/17.patch","issue_url":"https://api.github.com/repos/simelo/rextporter/issues/17","number":17,"state":"open","locked":false,"title":"fixes #14 - global service configuration","user":{"login":"stdevAlDen","id":34870496,"node_id":"MDQ6VXNlcjM0ODcwNDk2","avatar_url":"https://avatars0.githubusercontent.com/u/34870496?v=4","gravatar_id":"","url":"https://api.github.com/users/stdevAlDen","html_url":"https://github.com/stdevAlDen","followers_url":"https://api.github.com/users/stdevAlDen/followers","following_url":"https://api.github.com/users/stdevAlDen/following{/other_user}","gists_url":"https://api.github.com/users/stdevAlDen/gists{/gist_id}","starred_url":"https://api.github.com/users/stdevAlDen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stdevAlDen/subscriptions","organizations_url":"https://api.github.com/users/stdevAlDen/orgs","repos_url":"https://api.github.com/users/stdevAlDen/repos","events_url":"https://api.github.com/users/stdevAlDen/events{/privacy}","received_events_url":"https://api.github.com/users/stdevAlDen/received_events","type":"User","site_admin":false},"body":"closes #14\r\n\r\nUses a default config path if none specified for the system, the default path is in simelo/rexporter under your system config folder. If this directoy is empty, some default files will be created to be used as examples or start point.\r\n\r\n","created_at":"2018-11-07T19:08:00Z","updated_at":"2018-11-16T02:37:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b4176de62446443c8438322aa77c900d81d8fa5","assignee":{"login":"stdevAlDen","id":34870496,"node_id":"MDQ6VXNlcjM0ODcwNDk2","avatar_url":"https://avatars0.githubusercontent.com/u/34870496?v=4","gravatar_id":"","url":"https://api.github.com/users/stdevAlDen","html_url":"https://github.com/stdevAlDen","followers_url":"https://api.github.com/users/stdevAlDen/followers","following_url":"https://api.github.com/users/stdevAlDen/following{/other_user}","gists_url":"https://api.github.com/users/stdevAlDen/gists{/gist_id}","starred_url":"https://api.github.com/users/stdevAlDen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stdevAlDen/subscriptions","organizations_url":"https://api.github.com/users/stdevAlDen/orgs","repos_url":"https://api.github.com/users/stdevAlDen/repos","events_url":"https://api.github.com/users/stdevAlDen/events{/privacy}","received_events_url":"https://api.github.com/users/stdevAlDen/received_events","type":"User","site_admin":false},"assignees":[{"login":"stdevAlDen","id":34870496,"node_id":"MDQ6VXNlcjM0ODcwNDk2","avatar_url":"https://avatars0.githubusercontent.com/u/34870496?v=4","gravatar_id":"","url":"https://api.github.com/users/stdevAlDen","html_url":"https://github.com/stdevAlDen","followers_url":"https://api.github.com/users/stdevAlDen/followers","following_url":"https://api.github.com/users/stdevAlDen/following{/other_user}","gists_url":"https://api.github.com/users/stdevAlDen/gists{/gist_id}","starred_url":"https://api.github.com/users/stdevAlDen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stdevAlDen/subscriptions","organizations_url":"https://api.github.com/users/stdevAlDen/orgs","repos_url":"https://api.github.com/users/stdevAlDen/repos","events_url":"https://api.github.com/users/stdevAlDen/events{/privacy}","received_events_url":"https://api.github.com/users/stdevAlDen/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1100487569,"node_id":"MDU6TGFiZWwxMTAwNDg3NTY5","url":"https://api.github.com/repos/simelo/rextporter/labels/stdev","name":"stdev","color":"f9d0c4","default":false},{"id":1100487733,"node_id":"MDU6TGFiZWwxMTAwNDg3NzMz","url":"https://api.github.com/repos/simelo/rextporter/labels/wip","name":"wip","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/simelo/rextporter/pulls/17/commits","review_comments_url":"https://api.github.com/repos/simelo/rextporter/pulls/17/comments","review_comment_url":"https://api.github.com/repos/simelo/rextporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simelo/rextporter/issues/17/comments","statuses_url":"https://api.github.com/repos/simelo/rextporter/statuses/32b8bc45f4c22b8b846043bc35b24f734189c0cf","head":{"label":"denisacostaq:denisacostaq_t14_global_service_configuration","ref":"denisacostaq_t14_global_service_configuration","sha":"32b8bc45f4c22b8b846043bc35b24f734189c0cf","user":{"login":"denisacostaq","id":4337415,"node_id":"MDQ6VXNlcjQzMzc0MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/4337415?v=4","gravatar_id":"","url":"https://api.github.com/users/denisacostaq","html_url":"https://github.com/denisacostaq","followers_url":"https://api.github.com/users/denisacostaq/followers","following_url":"https://api.github.com/users/denisacostaq/following{/other_user}","gists_url":"https://api.github.com/users/denisacostaq/gists{/gist_id}","starred_url":"https://api.github.com/users/denisacostaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denisacostaq/subscriptions","organizations_url":"https://api.github.com/users/denisacostaq/orgs","repos_url":"https://api.github.com/users/denisacostaq/repos","events_url":"https://api.github.com/users/denisacostaq/events{/privacy}","received_events_url":"https://api.github.com/users/denisacostaq/received_events","type":"User","site_admin":false},"repo":{"id":154171124,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxNzExMjQ=","name":"rextporter","full_name":"denisacostaq/rextporter","private":false,"owner":{"login":"denisacostaq","id":4337415,"node_id":"MDQ6VXNlcjQzMzc0MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/4337415?v=4","gravatar_id":"","url":"https://api.github.com/users/denisacostaq","html_url":"https://github.com/denisacostaq","followers_url":"https://api.github.com/users/denisacostaq/followers","following_url":"https://api.github.com/users/denisacostaq/following{/other_user}","gists_url":"https://api.github.com/users/denisacostaq/gists{/gist_id}","starred_url":"https://api.github.com/users/denisacostaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denisacostaq/subscriptions","organizations_url":"https://api.github.com/users/denisacostaq/orgs","repos_url":"https://api.github.com/users/denisacostaq/repos","events_url":"https://api.github.com/users/denisacostaq/events{/privacy}","received_events_url":"https://api.github.com/users/denisacostaq/received_events","type":"User","site_admin":false},"html_url":"https://github.com/denisacostaq/rextporter","description":"Export in Prometheus format data consumed from REST APIs","fork":true,"url":"https://api.github.com/repos/denisacostaq/rextporter","forks_url":"https://api.github.com/repos/denisacostaq/rextporter/forks","keys_url":"https://api.github.com/repos/denisacostaq/rextporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denisacostaq/rextporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denisacostaq/rextporter/teams","hooks_url":"https://api.github.com/repos/denisacostaq/rextporter/hooks","issue_events_url":"https://api.github.com/repos/denisacostaq/rextporter/issues/events{/number}","events_url":"https://api.github.com/repos/denisacostaq/rextporter/events","assignees_url":"https://api.github.com/repos/denisacostaq/rextporter/assignees{/user}","branches_url":"https://api.github.com/repos/denisacostaq/rextporter/branches{/branch}","tags_url":"https://api.github.com/repos/denisacostaq/rextporter/tags","blobs_url":"https://api.github.com/repos/denisacostaq/rextporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denisacostaq/rextporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denisacostaq/rextporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/denisacostaq/rextporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denisacostaq/rextporter/statuses/{sha}","languages_url":"https://api.github.com/repos/denisacostaq/rextporter/languages","stargazers_url":"https://api.github.com/repos/denisacostaq/rextporter/stargazers","contributors_url":"https://api.github.com/repos/denisacostaq/rextporter/contributors","subscribers_url":"https://api.github.com/repos/denisacostaq/rextporter/subscribers","subscription_url":"https://api.github.com/repos/denisacostaq/rextporter/subscription","commits_url":"https://api.github.com/repos/denisacostaq/rextporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/denisacostaq/rextporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/denisacostaq/rextporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/denisacostaq/rextporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/denisacostaq/rextporter/contents/{+path}","compare_url":"https://api.github.com/repos/denisacostaq/rextporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denisacostaq/rextporter/merges","archive_url":"https://api.github.com/repos/denisacostaq/rextporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denisacostaq/rextporter/downloads","issues_url":"https://api.github.com/repos/denisacostaq/rextporter/issues{/number}","pulls_url":"https://api.github.com/repos/denisacostaq/rextporter/pulls{/number}","milestones_url":"https://api.github.com/repos/denisacostaq/rextporter/milestones{/number}","notifications_url":"https://api.github.com/repos/denisacostaq/rextporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denisacostaq/rextporter/labels{/name}","releases_url":"https://api.github.com/repos/denisacostaq/rextporter/releases{/id}","deployments_url":"https://api.github.com/repos/denisacostaq/rextporter/deployments","created_at":"2018-10-22T15:46:42Z","updated_at":"2018-10-22T15:46:44Z","pushed_at":"2018-11-16T02:24:31Z","git_url":"git://github.com/denisacostaq/rextporter.git","ssh_url":"git@github.com:denisacostaq/rextporter.git","clone_url":"https://github.com/denisacostaq/rextporter.git","svn_url":"https://github.com/denisacostaq/rextporter","homepage":null,"size":2012,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"simelo:develop","ref":"develop","sha":"d4324e1e0488c2af16b390dd5dfd67606dc0cf13","user":{"login":"simelo","id":34870783,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0ODcwNzgz","avatar_url":"https://avatars0.githubusercontent.com/u/34870783?v=4","gravatar_id":"","url":"https://api.github.com/users/simelo","html_url":"https://github.com/simelo","followers_url":"https://api.github.com/users/simelo/followers","following_url":"https://api.github.com/users/simelo/following{/other_user}","gists_url":"https://api.github.com/users/simelo/gists{/gist_id}","starred_url":"https://api.github.com/users/simelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simelo/subscriptions","organizations_url":"https://api.github.com/users/simelo/orgs","repos_url":"https://api.github.com/users/simelo/repos","events_url":"https://api.github.com/users/simelo/events{/privacy}","received_events_url":"https://api.github.com/users/simelo/received_events","type":"Organization","site_admin":false},"repo":{"id":154169507,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxNjk1MDc=","name":"rextporter","full_name":"simelo/rextporter","private":false,"owner":{"login":"simelo","id":34870783,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0ODcwNzgz","avatar_url":"https://avatars0.githubusercontent.com/u/34870783?v=4","gravatar_id":"","url":"https://api.github.com/users/simelo","html_url":"https://github.com/simelo","followers_url":"https://api.github.com/users/simelo/followers","following_url":"https://api.github.com/users/simelo/following{/other_user}","gists_url":"https://api.github.com/users/simelo/gists{/gist_id}","starred_url":"https://api.github.com/users/simelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simelo/subscriptions","organizations_url":"https://api.github.com/users/simelo/orgs","repos_url":"https://api.github.com/users/simelo/repos","events_url":"https://api.github.com/users/simelo/events{/privacy}","received_events_url":"https://api.github.com/users/simelo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/simelo/rextporter","description":"Export in Prometheus format data consumed from REST APIs","fork":false,"url":"https://api.github.com/repos/simelo/rextporter","forks_url":"https://api.github.com/repos/simelo/rextporter/forks","keys_url":"https://api.github.com/repos/simelo/rextporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simelo/rextporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simelo/rextporter/teams","hooks_url":"https://api.github.com/repos/simelo/rextporter/hooks","issue_events_url":"https://api.github.com/repos/simelo/rextporter/issues/events{/number}","events_url":"https://api.github.com/repos/simelo/rextporter/events","assignees_url":"https://api.github.com/repos/simelo/rextporter/assignees{/user}","branches_url":"https://api.github.com/repos/simelo/rextporter/branches{/branch}","tags_url":"https://api.github.com/repos/simelo/rextporter/tags","blobs_url":"https://api.github.com/repos/simelo/rextporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simelo/rextporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simelo/rextporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/simelo/rextporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simelo/rextporter/statuses/{sha}","languages_url":"https://api.github.com/repos/simelo/rextporter/languages","stargazers_url":"https://api.github.com/repos/simelo/rextporter/stargazers","contributors_url":"https://api.github.com/repos/simelo/rextporter/contributors","subscribers_url":"https://api.github.com/repos/simelo/rextporter/subscribers","subscription_url":"https://api.github.com/repos/simelo/rextporter/subscription","commits_url":"https://api.github.com/repos/simelo/rextporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/simelo/rextporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/simelo/rextporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/simelo/rextporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/simelo/rextporter/contents/{+path}","compare_url":"https://api.github.com/repos/simelo/rextporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simelo/rextporter/merges","archive_url":"https://api.github.com/repos/simelo/rextporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simelo/rextporter/downloads","issues_url":"https://api.github.com/repos/simelo/rextporter/issues{/number}","pulls_url":"https://api.github.com/repos/simelo/rextporter/pulls{/number}","milestones_url":"https://api.github.com/repos/simelo/rextporter/milestones{/number}","notifications_url":"https://api.github.com/repos/simelo/rextporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simelo/rextporter/labels{/name}","releases_url":"https://api.github.com/repos/simelo/rextporter/releases{/id}","deployments_url":"https://api.github.com/repos/simelo/rextporter/deployments","created_at":"2018-10-22T15:36:38Z","updated_at":"2018-11-15T21:39:46Z","pushed_at":"2018-11-16T02:24:33Z","git_url":"git://github.com/simelo/rextporter.git","ssh_url":"git@github.com:simelo/rextporter.git","clone_url":"https://github.com/simelo/rextporter.git","svn_url":"https://github.com/simelo/rextporter","homepage":null,"size":1877,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":3,"open_issues":21,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/simelo/rextporter/pulls/17"},"html":{"href":"https://github.com/simelo/rextporter/pull/17"},"issue":{"href":"https://api.github.com/repos/simelo/rextporter/issues/17"},"comments":{"href":"https://api.github.com/repos/simelo/rextporter/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/simelo/rextporter/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/simelo/rextporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simelo/rextporter/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/simelo/rextporter/statuses/32b8bc45f4c22b8b846043bc35b24f734189c0cf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"olemis"}}