Coder Social home page Coder Social logo

rootly-go's Issues

Something went wrong. Rootly team has been notified!

Howdy folks,

As I was trying to create an incident programmatically with rootly-go, I found this issue with NewIncident. Using json.Marshal on this type gave me the following JSON:

{
  "data": {
    "attributes": {
      "acknowledged_at": null,
      "cancelled_at": null,
      "detected_at": null,
      "environment_ids": null,
      "functionality_ids": null,
      "group_ids": ["3637714b-b005-45ad-b8bb-670177884154"],
      "in_triage_at": null,
      "incident_type_ids": null,
      "kind": null,
      "labels": { "alert_id": "b9309bb4-6a4e-45d3-b359-a2b82065c5be"},
      "mitigated_at": null,
      "notify_emails": null,
      "parent_incident_id": null,
      "private": null,
      "resolved_at": null,
      "scheduled_for": null,
      "scheduled_until": null,
      "service_ids": ["26d12ed6-3390-4e43-9cad-a84f97606a35"],
      "severity_id": "6000077b-840f-4801-9f79-3335dc67771d",
      "slack_channel_name": null,
      "started_at": null,
      "summary": "my summary",
      "title": "my-title",
      "user_id": null
    },
    "type": "incidents"
  }
}

It seems Rootly backend doesn't like null values as it's returning:

{"errors":[{"title":"Something went wrong. Rootly team has been notified!","status":"500"}]}

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.