UNPKG

medusa-plugin-sentry-ui

Version:
54 lines (53 loc) 2.82 kB
import Admin from '@medusajs/medusa-js/dist/resources/admin'; export declare const APDEX_HELP_TEXT = "Apdex is an industry-standard metric used to track and measure user satisfaction based on your application response times. A higher Apdex score is better than a lower one; the score can go up to 1.0, representing 100% of users having a satisfactory experience. The Apdex score provides the ratio of satisfactory, tolerable, and frustrated requests in a specific transaction or endpoint. This metric provides a standard for you to compare transaction performance, understand which ones may require additional optimization or investigation, and set targets or goals for performance"; export declare const P95_HELP_TEXT = "The P95 Threshold indicates that 5% of transaction durations are greater than the threshold"; export declare const P75_HELP_TEXT = "The P75 Threshold indicates that 25% of transaction durations are greater than the threshold"; export declare const P50_HELP_TEXT = "The P50 Threshold indicates that 50% of transaction durations are greater than the threshold"; export declare const TPM_HELP_TEXT = "Throughput indicates the number of transactions over a given time range (Total), average transactions per minute (TPM)"; export declare const FAILURE_RATE_HELP_TEXT = "indicates the percentage of unsuccessful transactions. Sentry treats transactions with a status other than \u201Cok,\u201D \u201Ccancelled,\u201D and \u201Cunknown\u201D as failures"; export declare const defaultFilterValues: { statsPeriod: string; perPage: number; cursor: string; }; export declare type GetSentryTransactionsParams = { organisation: string; project: string; statsPeriod: string; perPage?: number; query?: string; cursor?: string; }; export declare type GetSentryTransactionEventsParams = { transaction: string; organisation: string; project: string; statsPeriod: string; perPage?: number; query?: string; cursor?: string; }; export declare type GetSentryTransactionsStatsParams = { organisation: string; project: string; statsPeriod: string; transaction?: string; }; export declare type SentryFetchResult = { data: Record<string, string>[]; meta: unknown; prev_cursor: string; next_cursor: string; }; export declare type SentryStatsFetchResult = { [stat: string]: { data: [number, [{ count: number; }]][]; }; }; export declare type AdminClient = Admin & { fetchSentryTransactions: (query?: GetSentryTransactionsParams) => Promise<SentryFetchResult>; fetchSentryTransactionEvents: (query?: GetSentryTransactionEventsParams) => Promise<SentryFetchResult>; fetchSentryTransactionsStats: (query?: GetSentryTransactionsStatsParams) => Promise<SentryStatsFetchResult>; };