Sha256: 4b200d2eb59ac689e88e0b996a63501875678a770b2b5576d7104f3bde443e8e

Contents?: true

Size: 423 Bytes

Versions: 1

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

module GrafanaAnnotations
  class Annotation < Dry::Struct
    attribute? :dashboardUID, Types::Strict::String.optional
    attribute? :panelId, Types::Strict::String.optional
    attribute :time, Types::Strict::Integer
    attribute? :timeEnd, Types::Strict::Integer
    attribute :tags, Types::Strict::Array.of(Types::Coercible::String)
    attribute :text, Types::Strict::String
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grafana_annotations-0.1.0 lib/grafana_annotations/annotation.rb