This file contains 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 PaginatedExceptionIncidentsQuery($appId: String!, $namespaces: [String], $markerId: String, $limit: Int, $offset: Int, $state: IncidentStateEnum, $order: IncidentOrderEnum) { | |
app(id: $appId) { | |
id | |
paginatedExceptionIncidents( | |
namespaces: $namespaces | |
marker: $markerId | |
limit: $limit | |
state: $state | |
offset: $offset | |
order: $order |
This file contains 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
mutation createUptimeMonitorMutation($appId: String!, $uptimeMonitor: UptimeMonitorInput!) { | |
createUptimeMonitor(appId: $appId, uptimeMonitor: $uptimeMonitor) { | |
...UptimeMonitor | |
__typename | |
} | |
} | |
fragment UptimeMonitor on UptimeMonitor { | |
id | |
name |
This file contains 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 CustomMetricsDashboardsDefinitionQuery($appId: String!) { | |
app(id: $appId) { | |
id | |
dashboards { | |
...Dashboard | |
__typename | |
} | |
__typename | |
} | |
} |
This file contains 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 PaginatedMetricsListQuery($appId: String!, $start: DateTime, $end: DateTime, $timeframe: TimeframeEnum, $query: [MetricAggregation!]!) { | |
app(id: $appId) { | |
id | |
metrics { | |
list(start: $start, end: $end, timeframe: $timeframe, query: $query) { | |
start | |
end | |
rows { | |
name | |
tags { |
This file contains 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 PaginatedMetricsListQuery( | |
$appId: String!, | |
$start: DateTime, | |
$end: DateTime, | |
$timeframe: TimeframeEnum, | |
$query: [MetricAggregation!]! | |
$limit: Int, | |
$offset: Int | |
){ | |
app(id: $appId) { |
This file contains 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 | |
logbook { | |
...Logbook | |
__typename | |
} |
This file contains 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 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 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 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 |