Files
fin-tracker/app/packages/api_client/doc/MetricsApi.md
T
Dmitry 90ba198c2a chore(app): сгенерированный Dart-клиент из OpenAPI
openapi-generator-cli -g dart-dio. Генерируется, но коммитится: CI ловит дрейф
openapi/openapi.json, а приложение собирается без запуска генератора.
Пересобирается через just gen-client после любого изменения роутов.
2026-09-18 13:44:09 +03:00

3.2 KiB

fintracker_api.api.MetricsApi

Load the API package

import 'package:fintracker_api/api.dart';

All URIs are relative to http://localhost

Method HTTP request Description
metricsDataQuality GET /api/v1/data-quality Data Quality
metricsRefresh POST /api/v1/metrics/refresh Refresh
metricsStatus GET /api/v1/metrics/status Status

metricsDataQuality

List metricsDataQuality()

Data Quality

Findings of the latest refresh, most serious first.

Example

import 'package:fintracker_api/api.dart';

final api = FintrackerApi().getMetricsApi();

try {
    final response = api.metricsDataQuality();
    print(response);
} on DioException catch (e) {
    print('Exception when calling MetricsApi->metricsDataQuality: $e\n');
}

Parameters

This endpoint does not need any parameter.

Return type

List<DataQualityRow>

Authorization

HTTPBearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

metricsRefresh

RefreshLogOut metricsRefresh()

Refresh

Rebuild every metric_* table inline (seconds at personal volumes).

Example

import 'package:fintracker_api/api.dart';

final api = FintrackerApi().getMetricsApi();

try {
    final response = api.metricsRefresh();
    print(response);
} on DioException catch (e) {
    print('Exception when calling MetricsApi->metricsRefresh: $e\n');
}

Parameters

This endpoint does not need any parameter.

Return type

RefreshLogOut

Authorization

HTTPBearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

metricsStatus

RefreshLogOut metricsStatus()

Status

When the metric tables were last rebuilt, and whether it failed.

Example

import 'package:fintracker_api/api.dart';

final api = FintrackerApi().getMetricsApi();

try {
    final response = api.metricsStatus();
    print(response);
} on DioException catch (e) {
    print('Exception when calling MetricsApi->metricsStatus: $e\n');
}

Parameters

This endpoint does not need any parameter.

Return type

RefreshLogOut

Authorization

HTTPBearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]