Skip to content

Instantly share code, notes, and snippets.

@imanabu
Last active May 17, 2024 00:23
Show Gist options
  • Save imanabu/89b8168cec68fd0b61e660e12c426c55 to your computer and use it in GitHub Desktop.
Save imanabu/89b8168cec68fd0b61e660e12c426c55 to your computer and use it in GitHub Desktop.
NeptuneSlowQueryLog TypeScript Schema
export interface Root {
queryStats: QueryStats
memoryStats: MemoryStats
queryTimeStats: QueryTimeStats
statementCounters: StatementCounters
transactionCounters: TransactionCounters
concurrentExecutionStats: ConcurrentExecutionStats
queryBatchStats: QueryBatchStats
storageCounters: StorageCounters
}
export interface QueryStats {
query: string
queryFingerprint: string
queryLanguage: string
}
export interface MemoryStats {
allocatedPermits: number
approximateUsedMemoryBytes: number
}
export interface QueryTimeStats {
startTimeEpoch: number
startTime: string
overallRunTimeMs: number
waitingTimeMs: number
executionTimeMs: number
serializationTimeMs: number
}
export interface StatementCounters {
read: number
}
export interface TransactionCounters {
committed: number
}
export interface ConcurrentExecutionStats {
acceptedQueryCountAtStart: number
runningQueryCountAtStart: number
acceptedQueryCountAtEnd: number
runningQueryCountAtEnd: number
}
export interface QueryBatchStats {
queryProcessingBatchSize: number
querySerialisationBatchSize: number
}
export interface StorageCounters {
statementsScannedInAllIndexes: number
statementsScannedSPOGIndex: number
statementsScannedPOGSIndex: number
statementsScannedGPSOIndex: number
statementsReadInAllIndexes: number
statementsReadPOGSIndex: number
statementsReadGPSOIndex: number
accessPathSearches: number
fullyBoundedAccessPathSearches: number
dictionaryReadsFromValueToIdTable: number
dictionaryReadsFromIdToValueTable: number
rangeCountsInAllIndexes: number
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment