Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/dawnft/ts

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/dawnft/ts

  • v0.0.0-20150817002059-52053d7e3ad6
  • Source
  • Go
  • Socket score

Version published
Created
Source

ts Build Status

lightweight time series lib for go

Goals

  • metric insert should be idempotent
  • easy to understand
  • no persistence: that's up to you
  • no metric naming schemes, tagging or discoverability: that's up to you

Installation

$ go get github.com/gorsuch/ts

Usage

// create a series 4h long, with 5s buckets
s := ts.NewSeries(4 * time.Hour, 5 * time.Second)

// insert some data
s.Insert(time.Now(), 42)

// fetch the last hour of data
buckets := s.FromDuration(1 * time.Hour)

Inspiration

FAQs

Package last updated on 17 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc