Skip to content

Instantly share code, notes, and snippets.

@ppworks
Last active August 29, 2015 14:03
Show Gist options
  • Save ppworks/9c7e06a8d69425f2fd80 to your computer and use it in GitHub Desktop.
Save ppworks/9c7e06a8d69425f2fd80 to your computer and use it in GitHub Desktop.
bugsnagがwebhookで投げるパラメータ
=> {
      "error" => {
        "exceptionClass" => "ExampleException",
               "message" => "Something really bad happened",
               "context" => "home#example",
            "appVersion" => "1.0.0",
          "releaseStage" => "production",
           "occurrences" => 42,
         "firstReceived" => "2014-06-26T05:56:04.171Z",
         "usersAffected" => 20,
                   "url" => "http://bugsnag.com/errors/example/events/example",
            "stacktrace" => [
            [0] {
                      "file" => "app/controllers/home_controller.rb",
                "lineNumber" => 123,
                    "method" => "example",
                 "inProject" => true
            },
            [1] {
                      "file" => "app/controllers/other_controller.rb",
                "lineNumber" => 12,
                    "method" => "broken",
                 "inProject" => true
            },
            [2] {
                      "file" => "gems/junk/junkfile.rb",
                "lineNumber" => 999,
                    "method" => "something",
                 "inProject" => false
            },
            [3] {
                      "file" => "lib/important/magic.rb",
                "lineNumber" => 4,
                    "method" => "load_something",
                 "inProject" => true
            }
        ]
    },
    "project" => {
        "name" => "Example.com",
         "url" => "http://bugsnag.com/projects/example"
    },
    "trigger" => {
           "type" => "firstException",
        "message" => "New exception"
    },
     "source" => "hoge",
       "home" => {
          "error" => {
            "exceptionClass" => "ExampleException",
                   "message" => "Something really bad happened",
                   "context" => "home#example",
                "appVersion" => "1.0.0",
              "releaseStage" => "production",
               "occurrences" => 42,
             "firstReceived" => "2014-06-26T05:56:04.171Z",
             "usersAffected" => 20,
                       "url" => "http://bugsnag.com/errors/example/events/example",
                "stacktrace" => [
                [0] {
                          "file" => "app/controllers/home_controller.rb",
                    "lineNumber" => 123,
                        "method" => "example",
                     "inProject" => true
                },
                [1] {
                          "file" => "app/controllers/other_controller.rb",
                    "lineNumber" => 12,
                        "method" => "broken",
                     "inProject" => true
                },
                [2] {
                          "file" => "gems/junk/junkfile.rb",
                    "lineNumber" => 999,
                        "method" => "something",
                     "inProject" => false
                },
                [3] {
                          "file" => "lib/important/magic.rb",
                    "lineNumber" => 4,
                        "method" => "load_something",
                     "inProject" => true
                }
            ]
        },
        "project" => {
            "name" => "Example.com",
             "url" => "http://bugsnag.com/projects/example"
        },
        "trigger" => {
               "type" => "firstException",
            "message" => "New exception"
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment