This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://docs.appsignal.com/api/public-endpoint/errors.html#body-parameters | |
| require "uri" | |
| require "json" | |
| require "net/http" | |
| url = URI("https://appsignal-endpoint.net/errors?api_key=FRONTEND-API-KEY") | |
| https = Net::HTTP.new(url.host, url.port) | |
| https.use_ssl = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| query MarkersIndexQuery($appId: String!, $limit: Int, $offset: Int, $start: DateTime, $end: DateTime) { | |
| app(id: $appId) { | |
| id | |
| deployMarkers(limit: $limit, offset: $offset, start: $start, end: $end) { | |
| id | |
| createdAt | |
| shortRevision | |
| revision | |
| gitCompareUrl | |
| user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ENV["APPSIGNAL_PUSH_API_KEY"] | |
| require "rake/task" | |
| class AppsignalRakeHelper | |
| class << self | |
| # Mark a Rake task that it should wait for AppSignal to transmit all the data | |
| # when the task is done. It should only do this on Heroku. | |
| def wait_on_exit | |
| return unless ENV["DYNO"] # Only activate on Heroku |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| query Search( | |
| $organizationSlug: String! | |
| $query: String | |
| $namespace: String | |
| $sampleType: SampleTypeEnum | |
| ) { | |
| organization(slug: $organizationSlug) { | |
| search( | |
| query: $query | |
| namespace: $namespace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| query IncidentQuery($appId: String!, $incidentNumber: Int!, $sampleId: String, $timestamp: String, $timerange: [DateTime]) { | |
| app(id: $appId) { | |
| id | |
| incident(incidentNumber: $incidentNumber) { | |
| ... on ExceptionIncident { | |
| ...ExceptionIncident | |
| __typename | |
| } | |
| __typename | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| query MetricTimeseriesQuery($appId: String!, $start: DateTime, $end: DateTime, $timeframe: TimeframeEnum, $query: [MetricTimeseries]) { | |
| app(id: $appId) { | |
| id | |
| metrics { | |
| timeseries(start: $start, end: $end, timeframe: $timeframe, query: $query) { | |
| start | |
| end | |
| resolution | |
| keys { | |
| digest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| query MetricTimeseriesQuery($appId: String!, $start: DateTime, $end: DateTime, $timeframe: TimeframeEnum, $query: [MetricTimeseries]) { | |
| app(id: $appId) { | |
| id | |
| metrics { | |
| timeseries(start: $start, end: $end, timeframe: $timeframe,query: $query) { | |
| start | |
| end | |
| resolution | |
| keys { | |
| digest |
NewerOlder