{"id":15056883,"url":"https://github.com/lance/rhq-metrics-js","last_synced_at":"2026-01-31T11:03:12.100Z","repository":{"id":24648582,"uuid":"28058461","full_name":"lance/rhq-metrics-js","owner":"lance","description":"NPM module for rhq-metrics REST API","archived":false,"fork":false,"pushed_at":"2015-01-12T21:50:50.000Z","size":676,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T15:21:09.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lance.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}},"created_at":"2014-12-15T22:05:25.000Z","updated_at":"2015-01-12T21:50:43.000Z","dependencies_parsed_at":"2022-09-06T19:31:04.341Z","dependency_job_id":null,"html_url":"https://github.com/lance/rhq-metrics-js","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lance/rhq-metrics-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Frhq-metrics-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Frhq-metrics-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Frhq-metrics-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Frhq-metrics-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lance","download_url":"https://codeload.github.com/lance/rhq-metrics-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Frhq-metrics-js/sbom","scorecard":{"id":578195,"data":{"date":"2025-08-11","repo":{"name":"github.com/lance/rhq-metrics-js","commit":"3f39518c891b0f0f73ab49b9304a6498e98aa216"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-20T18:25:15.515Z","repository_id":24648582,"created_at":"2025-08-20T18:25:15.515Z","updated_at":"2025-08-20T18:25:15.515Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28939508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T10:18:23.202Z","status":"ssl_error","status_checked_at":"2026-01-31T10:18:22.693Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-09-24T21:57:37.747Z","updated_at":"2026-01-31T11:03:12.084Z","avatar_url":"https://github.com/lance.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rqh-metrics-js\n\n[![Build Status](https://travis-ci.org/lance/rhq-metrics-js.svg?branch=master)](https://travis-ci.org/lance/rhq-metrics-js)\n\nThis is a Javascript API and NPM module package for the `rhq-metrics` server.\n\n## Documentation\nDocs are found at http://lanceball.com/rhq-metrics-js\n\n## Usage\nFirst you need to require the `rhq-metrics` module.\n\n    var RHQ = require('rhq-metrics');\n\nThe constructor function takes an options object where you can specify\nvalues for the RHQ server hostname, the port, and the URL path. The\ndefault URL for the server is http://localhost:8080/rhq-metrics/metrics.\n\n    var rhq = new RHQ({\n      host: 'metricserver.com', // defaults to 'localhost'\n      port: 4567, // defaults to 8080\n      path: '/rhq-metrics/metrics' // defaults to '/rhq-metrics/metrics'\n    });\n\nTimeseries data is posted as either a single JS object, or an array of objects.\nIn either case, the three fields are required: `id`, `value`, and `timestamp`.\n\n    var data = [{id: 'server1', value: 44.1, timestamp: 1418672557728},\n                {id: 'server1', value: 23.9, timestamp: 1418672557738},\n                {id: 'server1', value: 34.7, timestamp: 1418672557748},\n                {id: 'server1', value: 68.5, timestamp: 1418672557758}];\n\n\nYou can use a promises style API, or old school node-style callbacks.\nHere is a promises usage.\n    \n    // all configuration parameters are optional\n    var options = {\n      start: Date.now()-(4*60*60*1000), // defaults to 8 hours ago\n      end: Date.now(), // defaults to now\n      buckets: 20 // defaults to null - data is not bucketed\n    };\n\n    rhq.post(data)\n      .then(function() {\n        rhq.get('server1', options)\n          .then(function(data) {\n            // data is an array of timeseries objects for 'server1'\n            // [{'timestamp': 1418672557728, 'value': 72.3}]\n           });\n      });\n\nAnd here is the old school, node style.\n\n    rhq.post(data,\n      function() {\n        rhq.get('server1', options, function(er, result) {\n            // result is an array of timeseries data\n            // [{'timestamp': 1418672557728, 'value': 72.3}]\n        });\n      });\n\n## Development\n\nFirst clone the project.\n\n    $ git clone https://github.com/lance/node-rhq-metrics.git\n\nThen change into the project directory, install the dev dependencies, and build it.\n\n    $ cd node-rhq-metrics\n    $ npm install\n    $ grunt\n\nThis will run all tests and generate documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flance%2Frhq-metrics-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flance%2Frhq-metrics-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flance%2Frhq-metrics-js/lists"}