# Variable MetricsApi`Const`

MetricsApi: {
_defaultBasePath: undefined;
metricsDelete: (
queryParameters: { executionId: TrckExecutionId },
headerParameters: { "AI-Resource-Group": string },
) => OpenApiRequestBuilder<TrckDeleteMetricsResponse>;
metricsFind: (
queryParameters: {
$filter?: string;
$select?: TrckmetricSelectorPermissibleValues;
$skip?: number;
$top?: number;
executionIds?: TrckStringArray;
tagFilters?: string;
},
headerParameters: { "AI-Resource-Group": string },
) => OpenApiRequestBuilder<TrckGetMetricResourceList>;
metricsPatch: (
body: TrckMetricResource,
headerParameters: { "AI-Resource-Group": string },
) => OpenApiRequestBuilder<any>;
}

Representation of the 'MetricsApi'. This API is part of the 'AI_CORE_API' service.

#### Type Declaration

- ##### _defaultBasePath: undefined

- ##### metricsDelete: (
  queryParameters: { executionId: TrckExecutionId },
  headerParameters: { "AI-Resource-Group": string },
  ) => OpenApiRequestBuilder<TrckDeleteMetricsResponse>

  Delete metrics, tags, or labels associated with an execution.

- ##### metricsFind: (
  queryParameters: {
  $filter?: string;
  $select?: TrckmetricSelectorPermissibleValues;
  $skip?: number;
  $top?: number;
  executionIds?: TrckStringArray;
  tagFilters?: string;
  },
  headerParameters: { "AI-Resource-Group": string },
  ) => OpenApiRequestBuilder<TrckGetMetricResourceList>

  Retrieve metrics, labels, or tags according to filter conditions. One query parameter is mandatory, either execution ID or filter. Use up to 10 execution IDs in a query parameter. With top/skip parameters it is possible to paginate the result list.

- ##### metricsPatch: (
  body: TrckMetricResource,
  headerParameters: { "AI-Resource-Group": string },
  ) => OpenApiRequestBuilder<any>

  Update or create metrics, tags, or labels associated with an execution.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

- Defined in packages/ai-api/dist/client/AI_CORE_API/metrics-api.d.ts:7