Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/songmu/healthplanet
https://github.com/songmu/healthplanet
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/songmu/healthplanet
- Owner: Songmu
- License: mit
- Created: 2021-12-27T18:59:21.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-16T03:57:29.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T21:09:24.035Z (27 days ago)
- Language: Go
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
healthplanet
=======[![Test Status](https://github.com/Songmu/healthplanet/workflows/test/badge.svg?branch=main)][actions]
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]
[![PkgGoDev](https://pkg.go.dev/badge/github.com/Songmu/healthplanet)][PkgGoDev][actions]: https://github.com/Songmu/healthplanet/actions?workflow=test
[license]: https://github.com/Songmu/healthplanet/blob/main/LICENSE
[PkgGoDev]: https://pkg.go.dev/github.com/Songmu/healthplanethealthplanet is a cli and client library for healthplanet.jp.
## Synopsis
```console
% healthplanet metrics
% healthplanet request -status=innerscan
``````go
var token = "deadbeef"
var cli *healthplanet.Client = healthplanet.NewClient(token)
ret, err := cli.Status(context.Background(), "innerscan", time.Now().AddDate(0, 0, -7), time.Now())
```## Description
healthplanet is a cli and client library for healthplanet.jp.
## Installation
```console
# go install
% go install github.com/Songmu/healthplanet/cmd/healthplanet@latest# Install the latest version. (Install it into ./bin/ by default).
% curl -sfL https://raw.githubusercontent.com/Songmu/healthplanet/main/install.sh | sh -s# Specify installation directory ($(go env GOPATH)/bin/) and version.
% curl -sfL https://raw.githubusercontent.com/Songmu/healthplanet/main/install.sh | sh -s -- -b $(go env GOPATH)/bin [vX.Y.Z]# In alpine linux (as it does not come with curl by default)
% wget -O - -q https://raw.githubusercontent.com/Songmu/healthplanet/main/install.sh | sh -s [vX.Y.Z]
```## Author
[Songmu](https://github.com/Songmu)