Files
Dmitry bfe74ca47c chore(app): перегенерировать Dart-клиент
Портфели, создание счетов, ручные события, PATCH инструмента, ScopeCardOut, MetricsStatusOut, логотипы в HoldingOut.
2026-09-19 22:14:07 +03:00

3.5 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

SyncJobOut metricsRefresh()

Refresh

Queue a rebuild of every metric_* table; the worker runs it. Poll /metrics/status until refreshing is false. A request while one is already waiting shares it. One that arrives while a rebuild is RUNNING queues another, because the running one may have read the data before the change that prompted this call.

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

SyncJobOut

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

MetricsStatusOut metricsStatus()

Status

When the metric tables were last rebuilt, whether they are one consistent snapshot, and whether another rebuild is on its way.

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

MetricsStatusOut

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]