debian-mirror-gitlab/lib/api/entities/metrics/dashboard/annotation.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
834 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
module API
module Entities
module Metrics
module Dashboard
class Annotation < Grape::Entity
2023-01-13 00:05:48 +05:30
expose :id, documentation: { type: 'integer', example: 4 }
expose :starting_at, documentation: { type: 'dateTime', example: '2016-04-08T03:45:40.000Z' }
expose :ending_at, documentation: { type: 'dateTime', example: '2016-08-08T09:00:00.000Z' }
expose :dashboard_path, documentation: { type: 'string', example: '.gitlab/dashboards/custom_metrics.yml' }
expose :description, documentation: { type: 'string', example: 'annotation description' }
expose :environment_id, documentation: { type: 'integer', example: 1 }
expose :cluster_id, documentation: { type: 'integer', example: 2 }
2020-04-22 19:07:51 +05:30
end
end
end
end
end