2019-12-06 09:06:39 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
module ErrorTracking
|
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
|
|
|
class SentryErrorFrequencyType < ::Types::BaseObject
|
|
|
|
graphql_name 'SentryErrorFrequency'
|
|
|
|
|
|
|
|
field :time, Types::TimeType,
|
|
|
|
null: false,
|
2021-01-22 21:09:10 +00:00
|
|
|
description: "Time the error frequency stats were recorded."
|
2019-12-06 09:06:39 +00:00
|
|
|
field :count, GraphQL::INT_TYPE,
|
|
|
|
null: false,
|
2021-01-22 21:09:10 +00:00
|
|
|
description: "Count of errors received since the previously recorded time."
|
2019-12-06 09:06:39 +00:00
|
|
|
end
|
|
|
|
# rubocop: enable Graphql/AuthorizeTypes
|
|
|
|
end
|
|
|
|
end
|