@culpritsql/plan-viewer 0.0.0 → 0.5.7
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/package.json +38 -3
- package/pkg/ActualSummary.d.ts +10 -0
- package/pkg/ActualSummary.js +72 -0
- package/pkg/DeadlockGraph.d.ts +9 -0
- package/pkg/DeadlockGraph.js +135 -0
- package/pkg/DeadlockViewer.d.ts +20 -0
- package/pkg/DeadlockViewer.js +62 -0
- package/pkg/DocdbWork.d.ts +7 -0
- package/pkg/DocdbWork.js +37 -0
- package/pkg/NodeDetails.d.ts +15 -0
- package/pkg/NodeDetails.js +161 -0
- package/pkg/OpIcon.d.ts +9 -0
- package/pkg/OpIcon.js +54 -0
- package/pkg/PlanAssessmentNotes.d.ts +3 -0
- package/pkg/PlanAssessmentNotes.js +8 -0
- package/pkg/PlanCanvas.d.ts +47 -0
- package/pkg/PlanCanvas.js +9 -0
- package/pkg/PlanDiagram.d.ts +47 -0
- package/pkg/PlanDiagram.js +534 -0
- package/pkg/PlanDiffViewer.d.ts +31 -0
- package/pkg/PlanDiffViewer.js +325 -0
- package/pkg/PlanInsights.d.ts +6 -0
- package/pkg/PlanInsights.js +100 -0
- package/pkg/PlanObjects.d.ts +7 -0
- package/pkg/PlanObjects.js +138 -0
- package/pkg/PlanOperations.d.ts +8 -0
- package/pkg/PlanOperations.js +114 -0
- package/pkg/PlanRaw.d.ts +4 -0
- package/pkg/PlanRaw.js +35 -0
- package/pkg/PlanSurface.d.ts +22 -0
- package/pkg/PlanSurface.js +66 -0
- package/pkg/PlanTypeSchema.d.ts +5 -0
- package/pkg/PlanTypeSchema.js +62 -0
- package/pkg/PlanView.d.ts +27 -0
- package/pkg/PlanView.js +160 -0
- package/pkg/PlanViewer.d.ts +30 -0
- package/pkg/PlanViewer.js +19 -0
- package/pkg/Prose.d.ts +4 -0
- package/pkg/Prose.js +6 -0
- package/pkg/Sql.d.ts +5 -0
- package/pkg/Sql.js +7 -0
- package/pkg/THIRD-PARTY-LICENSES.txt +9021 -0
- package/pkg/build-report.json +912 -0
- package/pkg/defaults.d.ts +29 -0
- package/pkg/defaults.js +438 -0
- package/pkg/host.d.ts +118 -0
- package/pkg/host.js +593 -0
- package/pkg/index.d.ts +22 -1
- package/pkg/index.js +21 -1
- package/pkg/models/Ability.d.ts +6 -0
- package/pkg/models/ActualSummary.d.ts +16 -0
- package/pkg/models/CachedStatementContext.d.ts +9 -0
- package/pkg/models/CachedStatementIdentity.d.ts +7 -0
- package/pkg/models/ChangeKind.d.ts +3 -0
- package/pkg/models/CleanupEvidence.d.ts +6 -0
- package/pkg/models/CollectionTarget.d.ts +6 -0
- package/pkg/models/CompilationMemory.d.ts +3 -0
- package/pkg/models/CompileHistory.d.ts +13 -0
- package/pkg/models/ConfiguredConnectionIdentity.d.ts +7 -0
- package/pkg/models/Connect.d.ts +22 -0
- package/pkg/models/ConnectionSecurityMode.d.ts +3 -0
- package/pkg/models/ConnectionSecuritySpec.d.ts +4 -0
- package/pkg/models/ConstraintValidation.d.ts +6 -0
- package/pkg/models/DatabaseIdentity.d.ts +5 -0
- package/pkg/models/DatabaseLocation.d.ts +3 -0
- package/pkg/models/DatabaseProduct.d.ts +6 -0
- package/pkg/models/Deadlock.d.ts +23 -0
- package/pkg/models/DeadlockFix.d.ts +16 -0
- package/pkg/models/DeadlockFixKind.d.ts +6 -0
- package/pkg/models/DeadlockPattern.d.ts +3 -0
- package/pkg/models/DeadlockProcess.d.ts +23 -0
- package/pkg/models/DeadlockResource.d.ts +12 -0
- package/pkg/models/DistributionPopulation.d.ts +3 -0
- package/pkg/models/DocdbMetrics.d.ts +7 -0
- package/pkg/models/Engine.d.ts +3 -0
- package/pkg/models/EngineAbilities.d.ts +46 -0
- package/pkg/models/EngineFacts.d.ts +28 -0
- package/pkg/models/EvidencePresentation.d.ts +4 -0
- package/pkg/models/ExecutionProtection.d.ts +3 -0
- package/pkg/models/Guess.d.ts +6 -0
- package/pkg/models/InsightArea.d.ts +6 -0
- package/pkg/models/LocalizedText.d.ts +4 -0
- package/pkg/models/LockHolder.d.ts +3 -0
- package/pkg/models/LogRateGovernanceReason.d.ts +7 -0
- package/pkg/models/Message.d.ts +4 -0
- package/pkg/models/MessageValue.d.ts +4 -0
- package/pkg/models/Metric.d.ts +10 -0
- package/pkg/models/MssqlCatalogIndexColumn.d.ts +3 -0
- package/pkg/models/MssqlCurrentTableType.d.ts +10 -0
- package/pkg/models/MssqlCurrentTypeColumn.d.ts +7 -0
- package/pkg/models/MssqlCurrentTypeIndex.d.ts +4 -0
- package/pkg/models/MssqlCurrentTypeModule.d.ts +4 -0
- package/pkg/models/MssqlCurrentTypeParameter.d.ts +3 -0
- package/pkg/models/MssqlCurrentTypeSchema.d.ts +11 -0
- package/pkg/models/MssqlCurrentTypeSchemaStatus.d.ts +3 -0
- package/pkg/models/MssqlIndexParentKind.d.ts +3 -0
- package/pkg/models/MssqlObjectIdentity.d.ts +7 -0
- package/pkg/models/NativeIdentity.d.ts +3 -0
- package/pkg/models/NativePlanIdentity.d.ts +4 -0
- package/pkg/models/NativeQueryIdentity.d.ts +3 -0
- package/pkg/models/NativeReadContext.d.ts +13 -0
- package/pkg/models/NodeKind.d.ts +3 -0
- package/pkg/models/NodeMatch.d.ts +3 -0
- package/pkg/models/NodeRuntime.d.ts +28 -0
- package/pkg/models/PageServerReadAvailability.d.ts +3 -0
- package/pkg/models/PageServerReadStatistics.d.ts +8 -0
- package/pkg/models/PageServerReadSummary.d.ts +19 -0
- package/pkg/models/PartitionTail.d.ts +6 -0
- package/pkg/models/Plan.d.ts +11 -0
- package/pkg/models/PlanAccessRows.d.ts +13 -0
- package/pkg/models/PlanAutomaticIndex.d.ts +3 -0
- package/pkg/models/PlanChange.d.ts +17 -0
- package/pkg/models/PlanChangedColumn.d.ts +3 -0
- package/pkg/models/PlanConversion.d.ts +4 -0
- package/pkg/models/PlanConversionIssue.d.ts +3 -0
- package/pkg/models/PlanCurrentTypeSchemaView.d.ts +6 -0
- package/pkg/models/PlanDiff.d.ts +13 -0
- package/pkg/models/PlanExecutionMode.d.ts +3 -0
- package/pkg/models/PlanFacts.d.ts +36 -0
- package/pkg/models/PlanHistory.d.ts +6 -0
- package/pkg/models/PlanHistoryKind.d.ts +3 -0
- package/pkg/models/PlanIndexColumns.d.ts +3 -0
- package/pkg/models/PlanIndexHint.d.ts +3 -0
- package/pkg/models/PlanInsight.d.ts +44 -0
- package/pkg/models/PlanInsightShare.d.ts +3 -0
- package/pkg/models/PlanInsights.d.ts +8 -0
- package/pkg/models/PlanKind.d.ts +3 -0
- package/pkg/models/PlanMeasurementRef.d.ts +3 -0
- package/pkg/models/PlanMemoryGrantFeedback.d.ts +15 -0
- package/pkg/models/PlanMemoryGrantFeedbackIssue.d.ts +3 -0
- package/pkg/models/PlanMemoryGrantFeedbackState.d.ts +3 -0
- package/pkg/models/PlanNode.d.ts +7 -0
- package/pkg/models/PlanNodeFacts.d.ts +63 -0
- package/pkg/models/PlanOperatorView.d.ts +5 -0
- package/pkg/models/PlanPageServerIo.d.ts +16 -0
- package/pkg/models/PlanPageServerIoIssue.d.ts +4 -0
- package/pkg/models/PlanPageServerIoView.d.ts +7 -0
- package/pkg/models/PlanPageServerMetric.d.ts +3 -0
- package/pkg/models/PlanParameter.d.ts +10 -0
- package/pkg/models/PlanParameterComparison.d.ts +3 -0
- package/pkg/models/PlanParameterContext.d.ts +15 -0
- package/pkg/models/PlanParameterIssue.d.ts +3 -0
- package/pkg/models/PlanParameterUse.d.ts +4 -0
- package/pkg/models/PlanParameterUseKind.d.ts +3 -0
- package/pkg/models/PlanParameterValueState.d.ts +3 -0
- package/pkg/models/PlanParentRelationship.d.ts +3 -0
- package/pkg/models/PlanRegion.d.ts +7 -0
- package/pkg/models/PlanSampleSource.d.ts +6 -0
- package/pkg/models/PlanScanCompletion.d.ts +8 -0
- package/pkg/models/PlanScanThread.d.ts +3 -0
- package/pkg/models/PlanTemporaryTableUse.d.ts +7 -0
- package/pkg/models/PlanVariant.d.ts +23 -0
- package/pkg/models/PlanView.d.ts +9 -0
- package/pkg/models/PlanWarning.d.ts +3 -0
- package/pkg/models/PlanningStep.d.ts +7 -0
- package/pkg/models/ProductFacts.d.ts +11 -0
- package/pkg/models/QueryCosts.d.ts +62 -0
- package/pkg/models/QueryStat.d.ts +69 -0
- package/pkg/models/QueryTrend.d.ts +7 -0
- package/pkg/models/QueryVariantFamily.d.ts +9 -0
- package/pkg/models/QueryWaitCoverage.d.ts +8 -0
- package/pkg/models/ReadUnit.d.ts +7 -0
- package/pkg/models/Refusal.d.ts +7 -0
- package/pkg/models/RelationalInput.d.ts +5 -0
- package/pkg/models/RelationalInputKind.d.ts +3 -0
- package/pkg/models/RelationalInputProvenance.d.ts +3 -0
- package/pkg/models/RequestEvidence.d.ts +7 -0
- package/pkg/models/RetainedPlanProvenance.d.ts +11 -0
- package/pkg/models/RuntimeDistribution.d.ts +16 -0
- package/pkg/models/RuntimeDistributionIssue.d.ts +3 -0
- package/pkg/models/RuntimeDistributionOrigin.d.ts +3 -0
- package/pkg/models/RuntimeDuration.d.ts +3 -0
- package/pkg/models/RuntimeHistogramBucket.d.ts +8 -0
- package/pkg/models/RuntimeQuantile.d.ts +4 -0
- package/pkg/models/Scenario.d.ts +11 -0
- package/pkg/models/ScenarioKind.d.ts +3 -0
- package/pkg/models/SessionAction.d.ts +6 -0
- package/pkg/models/SessionIdFormat.d.ts +6 -0
- package/pkg/models/Severity.d.ts +3 -0
- package/pkg/models/SharedResourceIdentity.d.ts +11 -0
- package/pkg/models/SharedResourceKind.d.ts +3 -0
- package/pkg/models/SourcePartition.d.ts +8 -0
- package/pkg/models/Spread.d.ts +18 -0
- package/pkg/models/SqlSyntax.d.ts +6 -0
- package/pkg/models/StatementMetrics.d.ts +32 -0
- package/pkg/models/StatementOrigin.d.ts +6 -0
- package/pkg/models/StatementTemporaryWork.d.ts +3 -0
- package/pkg/models/StatisticsFreshness.d.ts +3 -0
- package/pkg/models/TriggerTiming.d.ts +3 -0
- package/pkg/models/Unit.d.ts +3 -0
- package/pkg/models/WaitClass.d.ts +3 -0
- package/pkg/models/WaitMechanism.d.ts +4 -0
- package/pkg/models/WaitSampling.d.ts +3 -0
- package/pkg/models/WaitStat.d.ts +4 -0
- package/pkg/models/WorkerSkew.d.ts +3 -0
- package/pkg/models/WriteLog.d.ts +7 -0
- package/pkg/models/WriteRows.d.ts +7 -0
- package/pkg/styles.css +3463 -0
- package/pkg/types.d.ts +29 -0
- package/pkg/types.js +1 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { NativePlanIdentity } from "./NativePlanIdentity.js";
|
|
3
|
+
import type { NativeQueryIdentity } from "./NativeQueryIdentity.js";
|
|
4
|
+
import type { Plan } from "./Plan.js";
|
|
5
|
+
import type { PlanHistory } from "./PlanHistory.js";
|
|
6
|
+
import type { PlanVariant } from "./PlanVariant.js";
|
|
7
|
+
import type { QueryCosts } from "./QueryCosts.js";
|
|
8
|
+
import type { QueryTrend } from "./QueryTrend.js";
|
|
9
|
+
import type { QueryVariantFamily } from "./QueryVariantFamily.js";
|
|
10
|
+
import type { QueryWaitCoverage } from "./QueryWaitCoverage.js";
|
|
11
|
+
import type { RequestEvidence } from "./RequestEvidence.js";
|
|
12
|
+
import type { Spread } from "./Spread.js";
|
|
13
|
+
import type { StatementTemporaryWork } from "./StatementTemporaryWork.js";
|
|
14
|
+
import type { WaitStat } from "./WaitStat.js";
|
|
15
|
+
|
|
16
|
+
export type QueryStat = {
|
|
17
|
+
/**
|
|
18
|
+
* Exact source-owned statement identity. Missing when a runtime row combines several native statements.
|
|
19
|
+
*/
|
|
20
|
+
native_identity?: NativeQueryIdentity,
|
|
21
|
+
/**
|
|
22
|
+
* Exact identity of the selected captured plan, independent of this workload's runtime population.
|
|
23
|
+
*/
|
|
24
|
+
native_plan_identity?: NativePlanIdentity, requests: RequestEvidence | null,
|
|
25
|
+
/**
|
|
26
|
+
* A CTE write's unambiguous base table, resolved by shared SQL analysis. Absent when unknown or unnecessary.
|
|
27
|
+
*/
|
|
28
|
+
resolved_write_target: string | null, id: string, query_hash: string | null, text: string,
|
|
29
|
+
/**
|
|
30
|
+
* Parameter declarations sent with the statement, e.g. `@P1 nvarchar(4000)`; they explain implicit conversions.
|
|
31
|
+
*/
|
|
32
|
+
parameters: string | null, object_name: string | null, executions: number, total_time_ms: number, mean_time_ms: number, max_time_ms: number | null, stddev_time_ms: number | null, cpu_time_ms: number | null, rows: number | null, logical_reads: number | null, physical_reads: number | null,
|
|
33
|
+
/**
|
|
34
|
+
* Native statement resource work with explicit units and meaning; this is not a measured spill-time share.
|
|
35
|
+
*/
|
|
36
|
+
temporary_work: StatementTemporaryWork | null, first_seen: string | null, last_seen: string | null, plans: Array<PlanVariant>,
|
|
37
|
+
/**
|
|
38
|
+
* A native child-query relationship. Its plans and counters remain this child's own runtime population;
|
|
39
|
+
* the dispatcher and parent are metadata, not additional executions or proof of harmful plan reuse.
|
|
40
|
+
*/
|
|
41
|
+
variant_family?: QueryVariantFamily, plan: Plan | null, waits: Array<WaitStat>,
|
|
42
|
+
/**
|
|
43
|
+
* Classes this source measured for this query and whether their observation is complete. Positive rows alone
|
|
44
|
+
* cannot establish that another class was zero. Missing coverage remains unknown.
|
|
45
|
+
*/
|
|
46
|
+
waits_coverage?: QueryWaitCoverage,
|
|
47
|
+
/**
|
|
48
|
+
* This query's part of each bucket of the workload's timeline (only the heaviest queries carry one).
|
|
49
|
+
*/
|
|
50
|
+
trend: QueryTrend | null,
|
|
51
|
+
/**
|
|
52
|
+
* How run times spread beyond the average, as far as the engine keeps it.
|
|
53
|
+
*/
|
|
54
|
+
spread: Spread | null,
|
|
55
|
+
/**
|
|
56
|
+
* Failed runs, planning, JIT, log volume and result size, as far as the engine keeps them.
|
|
57
|
+
*/
|
|
58
|
+
costs: QueryCosts | null,
|
|
59
|
+
/**
|
|
60
|
+
* Rows the statement changed (inserted, updated or deleted), where the engine counts them apart from the rows it
|
|
61
|
+
* returned (`rows`): MySQL and MariaDB's performance_schema. `None` where the engine doesn't separate them.
|
|
62
|
+
*/
|
|
63
|
+
rows_affected: number | null,
|
|
64
|
+
/**
|
|
65
|
+
* Which of `plans` the attached `plan` is (Query Store's plan_id): the plan still in use (the heaviest of the
|
|
66
|
+
* variants no newer variant replaced), not merely the heaviest over the window. `None` when the source keeps one
|
|
67
|
+
* plan per statement.
|
|
68
|
+
*/
|
|
69
|
+
plan_id: string | null, plan_history?: PlanHistory, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* One query's database time and executions in each bucket of the workload timeline. `None` marks a bucket the
|
|
5
|
+
* source can't account for (an earlier scan didn't track this query, or its counters were reset).
|
|
6
|
+
*/
|
|
7
|
+
export type QueryTrend = { time_ms: Array<number | null>, executions: Array<number | null>, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { NativePlanIdentity } from "./NativePlanIdentity.js";
|
|
3
|
+
import type { NativeQueryIdentity } from "./NativeQueryIdentity.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Native query-variant metadata within the captured database/source namespace. A dispatcher can have no runtime
|
|
7
|
+
* rows while its child runs; these identities therefore never substitute for or add to the child's statistics.
|
|
8
|
+
*/
|
|
9
|
+
export type QueryVariantFamily = { variant: NativeQueryIdentity, parent: NativeQueryIdentity, dispatcher: NativePlanIdentity, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { WaitClass } from "./WaitClass.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Qualification of query wait classes, independent of their positive observed totals. A source can measure only
|
|
6
|
+
* some classes; an enabled, completely read I/O source does not establish zero lock waiting.
|
|
7
|
+
*/
|
|
8
|
+
export type QueryWaitCoverage = { classes: Array<WaitClass>, complete: boolean, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* What a statement's reads are counted in: pages on most engines, rows examined on MySQL and MariaDB (the rows the
|
|
5
|
+
* storage engine handed to the server). Messages `select` on it.
|
|
6
|
+
*/
|
|
7
|
+
export type ReadUnit = "pages" | "rows_examined";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Why an engine can't do something: the message and, when there's one, what to do instead, as message keys. Each is
|
|
5
|
+
* said with the engine's label as `{engine}` and the ability's id as `{ability}` ([`Engine::refused`]).
|
|
6
|
+
*/
|
|
7
|
+
export type Refusal = { message: string, hint: string | null, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { RelationalInputKind } from "./RelationalInputKind.js";
|
|
3
|
+
import type { RelationalInputProvenance } from "./RelationalInputProvenance.js";
|
|
4
|
+
|
|
5
|
+
export type RelationalInput = { kind: RelationalInputKind, provenance: RelationalInputProvenance, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
export type RequestEvidence = {
|
|
4
|
+
/**
|
|
5
|
+
* Counts describe the bounded set of request identifiers actually present in the log.
|
|
6
|
+
*/
|
|
7
|
+
requests: number, repeated_requests: number, most_calls: number, sample_truncated: boolean, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { CachedStatementContext } from "./CachedStatementContext.js";
|
|
3
|
+
import type { NativePlanIdentity } from "./NativePlanIdentity.js";
|
|
4
|
+
import type { NativeQueryIdentity } from "./NativeQueryIdentity.js";
|
|
5
|
+
import type { NativeReadContext } from "./NativeReadContext.js";
|
|
6
|
+
|
|
7
|
+
export type RetainedPlanProvenance = { read: NativeReadContext, statement: CachedStatementContext,
|
|
8
|
+
/**
|
|
9
|
+
* A source-established CURRENT statement relation; it does not transfer historical runtime or schema facts.
|
|
10
|
+
*/
|
|
11
|
+
query: NativeQueryIdentity | null, native_plan: NativePlanIdentity | null, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { DistributionPopulation } from "./DistributionPopulation.js";
|
|
3
|
+
import type { RuntimeDistributionIssue } from "./RuntimeDistributionIssue.js";
|
|
4
|
+
import type { RuntimeDistributionOrigin } from "./RuntimeDistributionOrigin.js";
|
|
5
|
+
import type { RuntimeHistogramBucket } from "./RuntimeHistogramBucket.js";
|
|
6
|
+
import type { RuntimeQuantile } from "./RuntimeQuantile.js";
|
|
7
|
+
|
|
8
|
+
export type RuntimeDistribution = {
|
|
9
|
+
/**
|
|
10
|
+
* Declared native source identifier; never a translated label or a selector for analysis behavior.
|
|
11
|
+
*/
|
|
12
|
+
source: string, origin: RuntimeDistributionOrigin, population: DistributionPopulation, p50: RuntimeQuantile | null, p95: RuntimeQuantile | null, p99: RuntimeQuantile | null, histogram: Array<RuntimeHistogramBucket>,
|
|
13
|
+
/**
|
|
14
|
+
* Independent valid observations remain available when another source cannot be read or decoded.
|
|
15
|
+
*/
|
|
16
|
+
issue: RuntimeDistributionIssue | null, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { RuntimeDuration } from "./RuntimeDuration.js";
|
|
3
|
+
|
|
4
|
+
export type RuntimeHistogramBucket = { lower: RuntimeDuration, upper: RuntimeDuration,
|
|
5
|
+
/**
|
|
6
|
+
* Exact native or captured-sample count, never a rounded JavaScript number.
|
|
7
|
+
*/
|
|
8
|
+
samples: string, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { RuntimeDuration } from "./RuntimeDuration.js";
|
|
3
|
+
|
|
4
|
+
export type RuntimeQuantile = { "kind": "sample-value", value: RuntimeDuration, } | { "kind": "histogram-upper-bound", lower: RuntimeDuration | null, upper: RuntimeDuration, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ScenarioKind } from "./ScenarioKind.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* One condition that differs between the plans, with what it does to the plan.
|
|
6
|
+
*/
|
|
7
|
+
export type Scenario = { kind: ScenarioKind, title: string, detail: string | null,
|
|
8
|
+
/**
|
|
9
|
+
* Node in plan A this is about, when it is about one.
|
|
10
|
+
*/
|
|
11
|
+
a: number | null, b: number | null, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* How Live labels an already qualified native actor. This formats an identity; it does not discover one.
|
|
5
|
+
*/
|
|
6
|
+
export type SessionIdFormat = "native-id" | "native-id-and-generation";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { Engine } from "./Engine.js";
|
|
3
|
+
import type { NativeIdentity } from "./NativeIdentity.js";
|
|
4
|
+
import type { SharedResourceKind } from "./SharedResourceKind.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The adapter supplies both the resource's native identity and its namespace. A pool name, node number,
|
|
8
|
+
* or process-local identifier alone cannot establish identity across unrelated servers or clusters.
|
|
9
|
+
* Resource incarnation belongs here; counter resets and process/session lifetimes remain measurement evidence.
|
|
10
|
+
*/
|
|
11
|
+
export type SharedResourceIdentity = { engine: Engine, kind: SharedResourceKind, namespace: NativeIdentity, native: NativeIdentity, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { SharedResourceIdentity } from "./SharedResourceIdentity.js";
|
|
3
|
+
|
|
4
|
+
export type SourcePartition = { "kind": "target" } | { "kind": "instance-local", member: SharedResourceIdentity | null,
|
|
5
|
+
/**
|
|
6
|
+
* A source-owned native generation, separate from replica role and collector ownership epochs.
|
|
7
|
+
*/
|
|
8
|
+
epoch: string | null, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { RuntimeDistribution } from "./RuntimeDistribution.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* How a statement's run times spread. Every engine keeps something different: SQL Server and Postgres the fastest
|
|
6
|
+
* run, MySQL percentiles and a run-time histogram (8.0.19+). Missing values are `None`, never zero.
|
|
7
|
+
*/
|
|
8
|
+
export type Spread = { min_ms: number | null,
|
|
9
|
+
/**
|
|
10
|
+
* Each distribution owns its quantile representation and population; independent observations stay separate.
|
|
11
|
+
*/
|
|
12
|
+
distributions: Array<RuntimeDistribution>,
|
|
13
|
+
/**
|
|
14
|
+
* Time spent waiting for locks across all runs (MySQL).
|
|
15
|
+
* Native accumulated lock timer. Its source may cover only table-lock acquisition and may use a different
|
|
16
|
+
* clock from statement execution; a scalar value establishes neither all lock classes nor an elapsed share.
|
|
17
|
+
*/
|
|
18
|
+
lock_ms: number | null, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The SQL grammar a server speaks, independently of its storage engine and measurements.
|
|
5
|
+
*/
|
|
6
|
+
export type SqlSyntax = "mssql" | "postgres" | "mysql" | "sqlite";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { PlanningStep } from "./PlanningStep.js";
|
|
3
|
+
import type { ReadUnit } from "./ReadUnit.js";
|
|
4
|
+
import type { WriteLog } from "./WriteLog.js";
|
|
5
|
+
import type { WriteRows } from "./WriteRows.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Counter semantics shared with the app. Optional facts describe support; a particular scan may still lack data. Its
|
|
9
|
+
* words are message keys, said with [`i18n::t`]; a note's `{engine}` is the server's display name, including product
|
|
10
|
+
* variants such as MariaDB.
|
|
11
|
+
*/
|
|
12
|
+
export type StatementMetrics = { planning: PlanningStep,
|
|
13
|
+
/**
|
|
14
|
+
* Message key: what [`StatementMetrics::planning`] is called ("Compiling").
|
|
15
|
+
*/
|
|
16
|
+
planning_label: string, planning_setting: string | null, compilation_history: boolean, reads: ReadUnit,
|
|
17
|
+
/**
|
|
18
|
+
* Message key: a run's reads ("Pages read per run").
|
|
19
|
+
*/
|
|
20
|
+
reads_label: string,
|
|
21
|
+
/**
|
|
22
|
+
* What a write's row count means; `None` where the engine counts no rows for a write (MySQL).
|
|
23
|
+
*/
|
|
24
|
+
write_rows: WriteRows | null, lock_time: boolean, log: WriteLog,
|
|
25
|
+
/**
|
|
26
|
+
* Message key: [`StatementMetrics::log`] in a sentence ("WAL").
|
|
27
|
+
*/
|
|
28
|
+
log_name: string,
|
|
29
|
+
/**
|
|
30
|
+
* Message key: the label of what a statement wrote to it ("WAL written").
|
|
31
|
+
*/
|
|
32
|
+
log_label: string, missing_costs_note: string | null, errors_note: string | null, runtime_note: string, runtime_histogram_note: string | null, runtime_cache_note: string | null, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Native provenance is a fact, independent of redacted text and analytical workload selection.
|
|
5
|
+
*/
|
|
6
|
+
export type StatementOrigin = "application" | "culprit-monitoring" | "culprit" | "engine-internal" | "unknown";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
export type StatementTemporaryWork = { "kind": "block-io", source: string, bytes_per_block: number | null, read_blocks: string | null, written_blocks: string | null, read_time_ms: number | null, write_time_ms: number | null, } | { "kind": "table-creation", source: string, created_tables: string | null, disk_tables: string | null, sort_merge_passes: string | null, } | { "kind": "space-usage", source: string, bytes_per_page: number, usage_pages_total: number, };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
export type WaitClass = "cpu" | "workers" | "rpc" | "storage" | "io" | "rows" | "lock" | "latch" | "log" | "log-governance" | "network" | "parallelism" | "memory" | "compilation" | "other";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { LogRateGovernanceReason } from "./LogRateGovernanceReason.js";
|
|
3
|
+
|
|
4
|
+
export type WaitMechanism = { "kind": "log-rate-governance", "reason": LogRateGovernanceReason } | { "kind": "client-result-output" };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { WaitMechanism } from "./WaitMechanism.js";
|
|
3
|
+
|
|
4
|
+
export type WaitStat = { mechanism: WaitMechanism | null, category: string, wait_type: string | null, wait_ms: number, tasks: number | null, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The log a statement's changes are written to before they reach the data files: PostgreSQL's WAL, the others'
|
|
5
|
+
* transaction log. Messages `select` on it (`{log, select, wal {..} other {..}}`).
|
|
6
|
+
*/
|
|
7
|
+
export type WriteLog = "wal" | "transaction_log";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* What the row count of a statement that writes means: the rows it touched, the rows it changed, or (where the engine
|
|
5
|
+
* counts nothing else) the rows it returned.
|
|
6
|
+
*/
|
|
7
|
+
export type WriteRows = "rows" | "changed" | "returned";
|