Liongard icon

Liongard

Get data from the Liongard API

Metric → Get Many

AI-generated

Summary

Retrieve multiple metric records from Liongard, optionally filtering and sorting the results.

Inputs

  • Return All — Set to true to return all matching metrics without limit; otherwise, only up to the specified Limit are returned.
  • Limit — Maximum number of metric records to return when Return All is false.
  • Additional Fields.Filters — Apply one or more filters to narrow down metrics by metric Name or UCK using operations like contains, starts with, matches exactly, etc.
  • Additional Fields.Sorting — Apply sorting rules by metric ID, Name, or UCK in ascending or descending order.

Output shape

a list of metric records

The result is an array of metric objects matching the applied filters and sort order. Pagination is controlled via the Return All and Limit fields.

Examples

Example 1: Retrieve up to 50 metrics containing the word 'CPU' in their name, sorted by Name ascending

Return All=false, Limit=50, Filters=[{filterBy: 'Name', op: 'contains', value: 'CPU'}], Sorting=[{sortBy: 'Name', direction: 'ASC'}]

Example 2: Retrieve all metrics without filtering or sorting

Return All=true

Discussion