โ† API reference
Query / devices

listMetrics

List metrics with pagination. Requires metric:list permission.

Arguments

firstInt

Number of items to return from the start

lastInt

Number of items to return from the end

afterString

Cursor pointing to the item after which to start

beforeString

Cursor pointing to the item before which to start

Filter criteria for metrics

Sort order for results

Returns MetricConnection!

Scalar fields at a glance

totalCountInt
โ†— View the complete MetricConnection type

Explore in a view

Device Fleet
View exact SDL
"""List metrics with pagination. Requires metric:list permission."""
listMetrics(
  """Number of items to return from the start"""
  first: Int
  """Number of items to return from the end"""
  last: Int
  """Cursor pointing to the item after which to start"""
  after: String
  """Cursor pointing to the item before which to start"""
  before: String
  """Filter criteria for metrics"""
  filter: MetricFilterInput
  """Sort order for results"""
  sort: [MetricSortInput!]
): MetricConnection! @topic(names: ["devices"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.