Sha256: 611d1d57b9cf602c4f9b21d14ad277827d617b48456c48522927e0b0a850573a

Contents?: true

Size: 450 Bytes

Versions: 50

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    class MetricType < Decidim::Api::Types::BaseObject
      description "Metric data"

      field :name, GraphQL::Types::String, "The graphql_name of the metric", null: false
      field :count, GraphQL::Types::Int, "The last value of the metric", null: false
      field :history, [MetricHistoryType, { null: true }], "The historic values for this metric", null: false
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
decidim-core-0.29.1 lib/decidim/api/types/metric_type.rb
decidim-core-0.28.4 lib/decidim/api/types/metric_type.rb
decidim-core-0.27.9 lib/decidim/api/types/metric_type.rb
decidim-core-0.29.0 lib/decidim/api/types/metric_type.rb
decidim-core-0.28.3 lib/decidim/api/types/metric_type.rb
decidim-core-0.27.8 lib/decidim/api/types/metric_type.rb
decidim-core-0.29.0.rc4 lib/decidim/api/types/metric_type.rb
decidim-core-0.29.0.rc3 lib/decidim/api/types/metric_type.rb
decidim-core-0.29.0.rc2 lib/decidim/api/types/metric_type.rb
decidim-core-0.29.0.rc1 lib/decidim/api/types/metric_type.rb
decidim-core-0.28.2 lib/decidim/api/types/metric_type.rb
decidim-core-0.27.7 lib/decidim/api/types/metric_type.rb
decidim-core-0.28.1 lib/decidim/api/types/metric_type.rb
decidim-core-0.27.6 lib/decidim/api/types/metric_type.rb
decidim-core-0.26.10 lib/decidim/api/types/metric_type.rb
decidim-core-0.26.9 lib/decidim/api/types/metric_type.rb
decidim-core-0.28.0 lib/decidim/api/types/metric_type.rb
decidim-core-0.27.5 lib/decidim/api/types/metric_type.rb
decidim-core-0.28.0.rc5 lib/decidim/api/types/metric_type.rb
decidim-core-0.28.0.rc4 lib/decidim/api/types/metric_type.rb