Coder Social home page Coder Social logo

go-honeycombio's People

Contributors

dependabot[bot] avatar fitzoh avatar kvrhdn avatar tyler-boyd avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

go-honeycombio's Issues

Do not store dataset in Client but pass as parameter

Not all requests are linked to a dataset, for instance when creating a board you can add queries that refer to multiple datasets. As such, it does not make sense to store a global dataset in Client.
We should change the APIs of marker and trigger to take a dataset parameter.

Add contributing.md

Add contributing.md to help out people that want to contribute.

Things we should discuss:

  • How to run the tests (i.e. setting the environment variables)
  • How to setup GitHub Actions in the fork
  • Maybe something about code style? I.e. running go fmt etc.
  • ...

Breaking changes in Triggers and Boards API

Originally reported in honeycombio/terraform-provider-honeycombio#53

Responses from the Triggers and Boards API have changed:

GET triggers:

{
  "name": "Test trigger created at 2021-02-19 12:57:13.409454 +0100 CET m=+9.912250887",
  "description": "Some description",
  "frequency": 300,
  "disabled": true,
  "query_id": "E2fFNGt1wMo",
  "threshold": {
    "op": ">",
    "value": 10000
  },
  "recipients": [
    {
      "type": "email",
      "target": "[email protected]",
      "id": "ADFR34ZJJg3"
    }
  ],
  "id": "BkycQ1sif9h"
}

The field query_id is new and not documented. This used to be a field query containing a Query Specification.
Docs: https://docs.honeycomb.io/api/triggers/

GET boards:

{
  "name": "Test Board, created at 2021-02-19 12:57:03.501775 +0100 CET m=+0.004643366",
  "description": "A board with some queries",
  "style": "visual",
  "queries": [
    {
      "caption": "A sample query",
      "dataset": "kvrhdn/go-honeycombio",
      "query_id": "wZoqhtwRgLq",
      "query_annotation_id": "",
      "query_style": "combo"
    }
  ],
  "id": "Fptm5iangBw"
}

The fields query_id and query_annotation_id are new and not documented. This used to be a field query containing a Query Specification.
Docs: https://docs.honeycomb.io/api/boards/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.