munin/source/types.ts
2025-04-25 12:50:13 +02:00

52 lines
609 B
TypeScript

namespace _munin
{
/**
*/
export type type_labels = {
head : string;
title : string;
time : string;
location : string;
};
/**
*/
export type type_event = {
title : string;
begin : lib_plankton.pit.type_datetime,
end : (null | lib_plankton.pit.type_datetime),
location : (null | string);
};
/**
*/
export type type_source = {
fetch : (
(
)
=>
Promise<Array<type_event>>
);
};
/**
*/
export type type_target = {
interval : Array<int>;
send : (
(
labels : type_labels,
event : type_event
)
=>
Promise<void>
);
};
}