feat: support the process dashboard and create the time range text widget (#138)

This commit is contained in:
Fine0830
2022-08-15 16:49:00 +08:00
committed by GitHub
parent 973b51e9ca
commit 9c0bb988e6
44 changed files with 1133 additions and 213 deletions

24
src/types/ebpf.d.ts vendored
View File

@@ -15,6 +15,7 @@
* limitations under the License.
*/
import { Process } from "./selector";
export interface EBPFTaskCreationRequest {
serviceId: string;
processLabels: string[];
@@ -43,18 +44,7 @@ export interface EBPFProfilingSchedule {
startTime: number;
}
export type Process = {
id: string;
name: string;
serviceId: string;
serviceName: string;
instanceId: string;
instanceName: string;
agentId: string;
detectType: string;
attributes: { name: string; value: string }[];
labels: string[];
};
export type Process = Process;
export type StackElement = {
id: string;
originId: string;
@@ -75,3 +65,13 @@ export type AnalyzationTrees = {
dumpCount: number;
stackType: string;
};
export type ProcessNode = {
id: string;
name: string;
serviceId: string;
serviceName: string;
serviceInstanceId: string;
serviceInstanceName: string;
name: string;
isReal: boolean;
};

View File

@@ -46,3 +46,16 @@ export type Service = {
layers: string[];
shortName: string;
};
export type Process = {
id: string;
name: string;
serviceId: string;
serviceName: string;
instanceId: string;
instanceName: string;
agentId: string;
detectType: string;
attributes: { name: string; value: string }[];
labels: string[];
};