@abyss-project/reflex 4.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/service-discord.api.d.ts +14 -0
- package/dist/api/service-discord.api.js +38 -0
- package/dist/api/service-discord.api.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/types/enum/discord-activity-type.enum.d.ts +7 -0
- package/dist/types/enum/discord-activity-type.enum.js +12 -0
- package/dist/types/enum/discord-activity-type.enum.js.map +1 -0
- package/dist/types/enum/discord-component-kind.enum.d.ts +4 -0
- package/dist/types/enum/discord-component-kind.enum.js +9 -0
- package/dist/types/enum/discord-component-kind.enum.js.map +1 -0
- package/dist/types/enum/discord-gateway-failure-code.enum.d.ts +5 -0
- package/dist/types/enum/discord-gateway-failure-code.enum.js +10 -0
- package/dist/types/enum/discord-gateway-failure-code.enum.js.map +1 -0
- package/dist/types/enum/discord-gateway-state.enum.d.ts +6 -0
- package/dist/types/enum/discord-gateway-state.enum.js +11 -0
- package/dist/types/enum/discord-gateway-state.enum.js.map +1 -0
- package/dist/types/enum/discord-option-type.enum.d.ts +11 -0
- package/dist/types/enum/discord-option-type.enum.js +16 -0
- package/dist/types/enum/discord-option-type.enum.js.map +1 -0
- package/dist/types/enum/discord-presence-status.enum.d.ts +5 -0
- package/dist/types/enum/discord-presence-status.enum.js +10 -0
- package/dist/types/enum/discord-presence-status.enum.js.map +1 -0
- package/dist/types/enum/discord-sync-status.enum.d.ts +5 -0
- package/dist/types/enum/discord-sync-status.enum.js +10 -0
- package/dist/types/enum/discord-sync-status.enum.js.map +1 -0
- package/dist/types/enum/discord-token-state.enum.d.ts +6 -0
- package/dist/types/enum/discord-token-state.enum.js +11 -0
- package/dist/types/enum/discord-token-state.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +8 -0
- package/dist/types/enum/index.js +8 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/reflex-error-code.enum.d.ts +7 -1
- package/dist/types/enum/reflex-error-code.enum.js +6 -0
- package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
- package/dist/types/enum/service-type.enum.d.ts +2 -1
- package/dist/types/enum/service-type.enum.js +1 -0
- package/dist/types/enum/service-type.enum.js.map +1 -1
- package/dist/types/interface/api/requests/index.d.ts +1 -0
- package/dist/types/interface/api/requests/index.js +1 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/service-discord.request.d.ts +97 -0
- package/dist/types/interface/api/requests/service-discord.request.js +3 -0
- package/dist/types/interface/api/requests/service-discord.request.js.map +1 -0
- package/dist/types/interface/api/requests/service.request.d.ts +2 -0
- package/dist/types/interface/api/responses/index.d.ts +1 -0
- package/dist/types/interface/api/responses/index.js +1 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/service-discord.response.d.ts +50 -0
- package/dist/types/interface/api/responses/service-discord.response.js +3 -0
- package/dist/types/interface/api/responses/service-discord.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-version.response.d.ts +15 -1
- package/dist/types/interface/models/index.d.ts +1 -0
- package/dist/types/interface/models/index.js +1 -0
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-discord.model.d.ts +82 -0
- package/dist/types/interface/models/reflex-discord.model.js +13 -0
- package/dist/types/interface/models/reflex-discord.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +3 -0
- package/dist/types/interface/models/reflex-service-deployment.model.d.ts +5 -1
- package/dist/types/interface/models/reflex-service-version.model.d.ts +6 -0
- package/dist/types/interface/models/reflex-service.model.d.ts +1 -0
- package/package.json +15 -10
- package/src/api/index.ts +13 -12
- package/src/api/service-configuration.api.ts +16 -16
- package/src/api/service-discord.api.test.ts +170 -0
- package/src/api/service-discord.api.ts +203 -0
- package/src/index.ts +45 -0
- package/src/types/enum/access-grant-status.enum.ts +12 -12
- package/src/types/enum/access-kind.enum.ts +7 -7
- package/src/types/enum/discord-activity-type.enum.ts +9 -0
- package/src/types/enum/discord-component-kind.enum.ts +7 -0
- package/src/types/enum/discord-gateway-failure-code.enum.ts +9 -0
- package/src/types/enum/discord-gateway-state.enum.ts +11 -0
- package/src/types/enum/discord-option-type.enum.ts +12 -0
- package/src/types/enum/discord-presence-status.enum.ts +8 -0
- package/src/types/enum/discord-sync-status.enum.ts +6 -0
- package/src/types/enum/discord-token-state.enum.ts +11 -0
- package/src/types/enum/execution-mode.enum.ts +9 -9
- package/src/types/enum/execution-profile.enum.ts +20 -20
- package/src/types/enum/execution-settings-source.enum.ts +9 -9
- package/src/types/enum/health-status.enum.ts +4 -4
- package/src/types/enum/index.ts +8 -0
- package/src/types/enum/reflex-error-code.enum.ts +37 -25
- package/src/types/enum/route-method.enum.ts +9 -9
- package/src/types/enum/run-log-level.enum.ts +6 -6
- package/src/types/enum/run-mode.enum.ts +11 -11
- package/src/types/enum/run-status.enum.ts +11 -11
- package/src/types/enum/run-step-status.enum.ts +7 -7
- package/src/types/enum/service-deployment-action.enum.ts +11 -11
- package/src/types/enum/service-deployment-status.enum.ts +5 -5
- package/src/types/enum/service-type.enum.ts +9 -7
- package/src/types/enum/service-version-change-kind.enum.ts +6 -6
- package/src/types/enum/trace-effect-type.enum.ts +12 -12
- package/src/types/enum/trigger-access-mode.enum.ts +12 -12
- package/src/types/index.ts +2 -2
- package/src/types/interface/api/index.ts +3 -3
- package/src/types/interface/api/requests/function-access.request.ts +25 -25
- package/src/types/interface/api/requests/function-run.request.ts +26 -26
- package/src/types/interface/api/requests/function-settings.request.ts +27 -27
- package/src/types/interface/api/requests/function-test.request.ts +24 -24
- package/src/types/interface/api/requests/function-version.request.ts +20 -20
- package/src/types/interface/api/requests/function.request.ts +36 -36
- package/src/types/interface/api/requests/index.ts +1 -0
- package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
- package/src/types/interface/api/requests/service-discord.request.ts +128 -0
- package/src/types/interface/api/requests/service-route.request.ts +44 -44
- package/src/types/interface/api/requests/service-version.request.ts +19 -19
- package/src/types/interface/api/requests/service.request.ts +46 -39
- package/src/types/interface/api/response.ts +4 -4
- package/src/types/interface/api/responses/function-access.response.ts +17 -17
- package/src/types/interface/api/responses/function-run.response.ts +18 -18
- package/src/types/interface/api/responses/function-settings.response.ts +36 -36
- package/src/types/interface/api/responses/function-test.response.ts +12 -12
- package/src/types/interface/api/responses/function-version.response.ts +31 -31
- package/src/types/interface/api/responses/function.response.ts +25 -25
- package/src/types/interface/api/responses/index.ts +1 -0
- package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
- package/src/types/interface/api/responses/service-discord.response.ts +72 -0
- package/src/types/interface/api/responses/service-route.response.ts +31 -31
- package/src/types/interface/api/responses/service-version.response.ts +62 -33
- package/src/types/interface/api/responses/service.response.ts +31 -31
- package/src/types/interface/health.response.ts +7 -7
- package/src/types/interface/index.ts +3 -3
- package/src/types/interface/models/index.ts +1 -0
- package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
- package/src/types/interface/models/reflex-definition.model.ts +31 -31
- package/src/types/interface/models/reflex-discord.model.ts +146 -0
- package/src/types/interface/models/reflex-execution-settings.model.ts +50 -50
- package/src/types/interface/models/reflex-function-version.model.ts +14 -14
- package/src/types/interface/models/reflex-function.model.ts +16 -16
- package/src/types/interface/models/reflex-price-list.model.ts +20 -20
- package/src/types/interface/models/reflex-route.model.ts +19 -19
- package/src/types/interface/models/reflex-run.model.ts +173 -164
- package/src/types/interface/models/reflex-service-deployment.model.ts +40 -29
- package/src/types/interface/models/reflex-service-version.model.ts +55 -43
- package/src/types/interface/models/reflex-service.model.ts +45 -43
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
|
@@ -1,29 +1,40 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import type {
|
|
2
|
+
DiscordSyncStatus,
|
|
3
|
+
ServiceDeploymentAction,
|
|
4
|
+
ServiceDeploymentStatus,
|
|
5
|
+
} from '../../enum';
|
|
6
|
+
import type { IReflexAccessDeclaration } from './reflex-definition.model';
|
|
7
|
+
|
|
8
|
+
/** The accesses granted to one member function when the gesture was made: what the execution plane holds. */
|
|
9
|
+
export interface IReflexServiceDeploymentGrant {
|
|
10
|
+
functionId: string;
|
|
11
|
+
grants: IReflexAccessDeclaration[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* One gesture on the Service in an environment of the application. The `isCurrent` row is what runs (or
|
|
16
|
+
* is paused) there; the others are the history a rollback reads.
|
|
17
|
+
*/
|
|
18
|
+
export interface IReflexServiceDeployment {
|
|
19
|
+
id: string;
|
|
20
|
+
serviceId: string;
|
|
21
|
+
/** The environment of the application (abyss-main's id). */
|
|
22
|
+
environmentId: string;
|
|
23
|
+
/** The name of that environment, second segment of the address. */
|
|
24
|
+
environmentSlug: string;
|
|
25
|
+
serviceVersionId: string;
|
|
26
|
+
serviceVersionNumber: number;
|
|
27
|
+
action: ServiceDeploymentAction;
|
|
28
|
+
status: ServiceDeploymentStatus;
|
|
29
|
+
grants: IReflexServiceDeploymentGrant[];
|
|
30
|
+
/** Push of the interactions address and the commands to Discord; null for a Service that is not a Discord bot. */
|
|
31
|
+
discordSync: DiscordSyncStatus | null;
|
|
32
|
+
/** Code and message of the Discord refusal when `discordSync` is FAILED (500 characters at most). */
|
|
33
|
+
discordSyncError: string | null;
|
|
34
|
+
discordSyncedAt: Date | null;
|
|
35
|
+
/** The bot was paused by the plan quota (ADR-0277), not by a member: only those resume with the plan. */
|
|
36
|
+
pausedForQuota: boolean;
|
|
37
|
+
isCurrent: boolean;
|
|
38
|
+
byUserId: string;
|
|
39
|
+
at: Date;
|
|
40
|
+
}
|
|
@@ -1,43 +1,55 @@
|
|
|
1
|
-
import type { RouteMethod, TriggerAccessMode } from '../../enum';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
import type { RouteMethod, TriggerAccessMode } from '../../enum';
|
|
2
|
+
import type {
|
|
3
|
+
IReflexDiscordCommandSnapshot,
|
|
4
|
+
IReflexDiscordComponentSnapshot,
|
|
5
|
+
} from './reflex-discord.model';
|
|
6
|
+
import type { IReflexServiceCors } from './reflex-service.model';
|
|
7
|
+
|
|
8
|
+
/** A route as a version of the Service froze it. */
|
|
9
|
+
export interface IReflexServiceVersionRoute {
|
|
10
|
+
routeId: string;
|
|
11
|
+
method: RouteMethod;
|
|
12
|
+
path: string;
|
|
13
|
+
functionId: string;
|
|
14
|
+
accessMode: TriggerAccessMode;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** The version of a member function a version of the Service runs. */
|
|
18
|
+
export interface IReflexServiceVersionFunction {
|
|
19
|
+
functionId: string;
|
|
20
|
+
functionVersionId: string;
|
|
21
|
+
functionVersionNumber: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** What a version of a Discord bot freezes: its commands and components, identifiers included. */
|
|
25
|
+
export interface IReflexServiceVersionDiscord {
|
|
26
|
+
commands: IReflexDiscordCommandSnapshot[];
|
|
27
|
+
components: IReflexDiscordComponentSnapshot[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* What a version of the Service freezes. Routes sorted by path then method, functions by id: the same
|
|
32
|
+
* Service always gives the same snapshot, and the same `hash`.
|
|
33
|
+
*/
|
|
34
|
+
export interface IReflexServiceVersionSnapshot {
|
|
35
|
+
routes: IReflexServiceVersionRoute[];
|
|
36
|
+
functions: IReflexServiceVersionFunction[];
|
|
37
|
+
cors: IReflexServiceCors;
|
|
38
|
+
rateLimitPerIpPerMinute: number;
|
|
39
|
+
/** Only a `DISCORD_BOT` Service has it (its `routes` are then empty); absent otherwise, so the hash of other versions is unchanged. */
|
|
40
|
+
discord?: IReflexServiceVersionDiscord;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface IReflexServiceVersion {
|
|
44
|
+
id: string;
|
|
45
|
+
serviceId: string;
|
|
46
|
+
/** 1, 2, 3...: counted per Service. */
|
|
47
|
+
number: number;
|
|
48
|
+
/** 500 characters at most. */
|
|
49
|
+
message: string | null;
|
|
50
|
+
snapshot: IReflexServiceVersionSnapshot;
|
|
51
|
+
/** SHA-256 of the snapshot as canonical JSON (keys sorted), lowercase hex. */
|
|
52
|
+
hash: string;
|
|
53
|
+
publishedByUserId: string;
|
|
54
|
+
publishedAt: Date;
|
|
55
|
+
}
|
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
import type { ServiceType } from '../../enum';
|
|
2
|
-
|
|
3
|
-
/** Bounds of a Service, its routes and versions; the API and its database apply the same ones. */
|
|
4
|
-
export const REFLEX_SERVICE_LIMITS = {
|
|
5
|
-
/** `^[a-z0-9][a-z0-9-]{0,39}$`: the third segment of the address, immutable. */
|
|
6
|
-
slugPattern: /^[a-z0-9][a-z0-9-]{0,39}$/,
|
|
7
|
-
nameMaxLength: 100,
|
|
8
|
-
corsAllowedOriginsMax: 20,
|
|
9
|
-
rateLimitPerIpPerMinute: { min: 1, max: 6000, default: 60 },
|
|
10
|
-
/** Segments of `[a-z0-9._~-]` or `:param`, joined by `/`, without leading or trailing slash. */
|
|
11
|
-
routePathMaxSegments: 20,
|
|
12
|
-
routePathMaxLength: 255,
|
|
13
|
-
versionMessageMaxLength: 500,
|
|
14
|
-
} as const;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Origins a browser may call the Service from. Each is `https://host` or `https://*.domain`; `*` (any
|
|
18
|
-
* origin) is refused when a route of the Service is not PUBLIC.
|
|
19
|
-
*/
|
|
20
|
-
export interface IReflexServiceCors {
|
|
21
|
-
allowedOrigins: string[];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/** A group of functions versioned, put in service and paused as one, in an application. */
|
|
25
|
-
export interface IReflexService {
|
|
26
|
-
id: string;
|
|
27
|
-
applicationId: string;
|
|
28
|
-
/** First segment of the address, `app-<8 hex>`, fixed for the application. */
|
|
29
|
-
applicationSlug: string;
|
|
30
|
-
/** Unique within the application. */
|
|
31
|
-
name: string;
|
|
32
|
-
/** Unique within the application, immutable: `/<application>/<environment>/<slug>/<route path>`. */
|
|
33
|
-
slug: string;
|
|
34
|
-
type: ServiceType;
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
/** Draft: frozen by the next version.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
import type { ServiceType } from '../../enum';
|
|
2
|
+
|
|
3
|
+
/** Bounds of a Service, its routes and versions; the API and its database apply the same ones. */
|
|
4
|
+
export const REFLEX_SERVICE_LIMITS = {
|
|
5
|
+
/** `^[a-z0-9][a-z0-9-]{0,39}$`: the third segment of the address, immutable. */
|
|
6
|
+
slugPattern: /^[a-z0-9][a-z0-9-]{0,39}$/,
|
|
7
|
+
nameMaxLength: 100,
|
|
8
|
+
corsAllowedOriginsMax: 20,
|
|
9
|
+
rateLimitPerIpPerMinute: { min: 1, max: 6000, default: 60 },
|
|
10
|
+
/** Segments of `[a-z0-9._~-]` or `:param`, joined by `/`, without leading or trailing slash. */
|
|
11
|
+
routePathMaxSegments: 20,
|
|
12
|
+
routePathMaxLength: 255,
|
|
13
|
+
versionMessageMaxLength: 500,
|
|
14
|
+
} as const;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Origins a browser may call the Service from. Each is `https://host` or `https://*.domain`; `*` (any
|
|
18
|
+
* origin) is refused when a route of the Service is not PUBLIC.
|
|
19
|
+
*/
|
|
20
|
+
export interface IReflexServiceCors {
|
|
21
|
+
allowedOrigins: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** A group of functions versioned, put in service and paused as one, in an application. */
|
|
25
|
+
export interface IReflexService {
|
|
26
|
+
id: string;
|
|
27
|
+
applicationId: string;
|
|
28
|
+
/** First segment of the address, `app-<8 hex>`, fixed for the application. */
|
|
29
|
+
applicationSlug: string;
|
|
30
|
+
/** Unique within the application. */
|
|
31
|
+
name: string;
|
|
32
|
+
/** Unique within the application, immutable: `/<application>/<environment>/<slug>/<route path>`. */
|
|
33
|
+
slug: string;
|
|
34
|
+
type: ServiceType;
|
|
35
|
+
/** Vault entry (secret) holding the Discord bot token, one value per environment; null for other types and until chosen. */
|
|
36
|
+
discordTokenSecretId: string | null;
|
|
37
|
+
/** Draft: frozen by the next version. */
|
|
38
|
+
cors: IReflexServiceCors;
|
|
39
|
+
/** Draft: frozen by the next version. Calls per minute and per client IP, in each environment. */
|
|
40
|
+
rateLimitPerIpPerMinute: number;
|
|
41
|
+
createdByUserId: string;
|
|
42
|
+
updatedByUserId: string;
|
|
43
|
+
createdAt: Date;
|
|
44
|
+
updatedAt: Date;
|
|
45
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/** Median and 95th percentile of a measure, over the executions of the window. */
|
|
2
|
-
export interface IReflexPercentiles {
|
|
3
|
-
median: number;
|
|
4
|
-
p95: number;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The measured consumption of one step of a version, over the retention window. Interrupted and running
|
|
9
|
-
* executions are left out.
|
|
10
|
-
*/
|
|
11
|
-
export interface IReflexStepStats {
|
|
12
|
-
stepId: string;
|
|
13
|
-
/** Executions in which the step ran. */
|
|
14
|
-
executions: number;
|
|
15
|
-
durationMs: IReflexPercentiles;
|
|
16
|
-
cpuMs: IReflexPercentiles;
|
|
17
|
-
heapPeakBytes: IReflexPercentiles;
|
|
18
|
-
costMillicredits: IReflexPercentiles;
|
|
19
|
-
/** 99th percentile of the heap peak: what a smaller profile is compared to. */
|
|
20
|
-
heapPeakP99Bytes: number;
|
|
21
|
-
/** Share of the cost of the executions that this step makes, from 0 to 1; null when they cost nothing. */
|
|
22
|
-
costShare: number | null;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/** The p99 heap peak of one step of the version running in an environment. */
|
|
26
|
-
export interface IReflexStepHeapPeak {
|
|
27
|
-
stepId: string;
|
|
28
|
-
heapPeakP99Bytes: number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/** What the settings screen compares a smaller profile to: the version running in the environment. */
|
|
32
|
-
export interface IReflexRunningVersionHeapPeaks {
|
|
33
|
-
versionId: string;
|
|
34
|
-
steps: IReflexStepHeapPeak[];
|
|
35
|
-
}
|
|
1
|
+
/** Median and 95th percentile of a measure, over the executions of the window. */
|
|
2
|
+
export interface IReflexPercentiles {
|
|
3
|
+
median: number;
|
|
4
|
+
p95: number;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The measured consumption of one step of a version, over the retention window. Interrupted and running
|
|
9
|
+
* executions are left out.
|
|
10
|
+
*/
|
|
11
|
+
export interface IReflexStepStats {
|
|
12
|
+
stepId: string;
|
|
13
|
+
/** Executions in which the step ran. */
|
|
14
|
+
executions: number;
|
|
15
|
+
durationMs: IReflexPercentiles;
|
|
16
|
+
cpuMs: IReflexPercentiles;
|
|
17
|
+
heapPeakBytes: IReflexPercentiles;
|
|
18
|
+
costMillicredits: IReflexPercentiles;
|
|
19
|
+
/** 99th percentile of the heap peak: what a smaller profile is compared to. */
|
|
20
|
+
heapPeakP99Bytes: number;
|
|
21
|
+
/** Share of the cost of the executions that this step makes, from 0 to 1; null when they cost nothing. */
|
|
22
|
+
costShare: number | null;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** The p99 heap peak of one step of the version running in an environment. */
|
|
26
|
+
export interface IReflexStepHeapPeak {
|
|
27
|
+
stepId: string;
|
|
28
|
+
heapPeakP99Bytes: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** What the settings screen compares a smaller profile to: the version running in the environment. */
|
|
32
|
+
export interface IReflexRunningVersionHeapPeaks {
|
|
33
|
+
versionId: string;
|
|
34
|
+
steps: IReflexStepHeapPeak[];
|
|
35
|
+
}
|