mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 01:28:59 +08:00
adds hardcoded data
This commit is contained in:
parent
6f12d06a32
commit
2d646c0655
@ -44,36 +44,36 @@ export const getServiceMapItems = (globalTime: GlobalTime) => {
|
||||
"&end=" +
|
||||
globalTime.maxTime;
|
||||
|
||||
// const response = await api.get<servicesMapItem[]>(apiV1 + request_string);
|
||||
const response = {
|
||||
data: [
|
||||
{
|
||||
parent: "driver",
|
||||
child: "redis",
|
||||
callCount: 17050,
|
||||
},
|
||||
{
|
||||
parent: "frontend",
|
||||
child: "driver",
|
||||
callCount: 1263,
|
||||
},
|
||||
{
|
||||
parent: "customer",
|
||||
child: "mysql",
|
||||
callCount: 1262,
|
||||
},
|
||||
{
|
||||
parent: "frontend",
|
||||
child: "customer",
|
||||
callCount: 1262,
|
||||
},
|
||||
{
|
||||
parent: "frontend",
|
||||
child: "route",
|
||||
callCount: 12636,
|
||||
},
|
||||
],
|
||||
};
|
||||
const response = await api.get<servicesMapItem[]>(apiV1 + request_string);
|
||||
// const response = {
|
||||
// data: [
|
||||
// {
|
||||
// parent: "driver",
|
||||
// child: "redis",
|
||||
// callCount: 17050,
|
||||
// },
|
||||
// {
|
||||
// parent: "frontend",
|
||||
// child: "driver",
|
||||
// callCount: 1263,
|
||||
// },
|
||||
// {
|
||||
// parent: "customer",
|
||||
// child: "mysql",
|
||||
// callCount: 1262,
|
||||
// },
|
||||
// {
|
||||
// parent: "frontend",
|
||||
// child: "customer",
|
||||
// callCount: 1262,
|
||||
// },
|
||||
// {
|
||||
// parent: "frontend",
|
||||
// child: "route",
|
||||
// callCount: 12636,
|
||||
// },
|
||||
// ],
|
||||
// };
|
||||
dispatch<serviceMapItemAction>({
|
||||
type: ActionTypes.getServiceMapItems,
|
||||
payload: response.data,
|
||||
@ -87,7 +87,76 @@ export const getDetailedServiceMapItems = (globalTime: GlobalTime) => {
|
||||
"/services?start=" + globalTime.minTime + "&end=" + globalTime.maxTime;
|
||||
|
||||
const response = await api.get<servicesItem[]>(apiV1 + request_string);
|
||||
|
||||
// const response = {
|
||||
// data: [
|
||||
// {
|
||||
// serviceName: "redis",
|
||||
// p99: 1179518000,
|
||||
// avgDuration: 742158850,
|
||||
// numCalls: 1898,
|
||||
// callRate: 0.019097411,
|
||||
// numErrors: 0,
|
||||
// errorRate: 3,
|
||||
// num4XX: 0,
|
||||
// fourXXRate: 0,
|
||||
// },
|
||||
// {
|
||||
// serviceName: "mysql",
|
||||
// p99: 1179518000,
|
||||
// avgDuration: 742158850,
|
||||
// numCalls: 1898,
|
||||
// callRate: 0.019097411,
|
||||
// numErrors: 0,
|
||||
// errorRate: 0,
|
||||
// num4XX: 0,
|
||||
// fourXXRate: 0,
|
||||
// },
|
||||
// {
|
||||
// serviceName: "frontend",
|
||||
// p99: 1179518000,
|
||||
// avgDuration: 742158850,
|
||||
// numCalls: 1898,
|
||||
// callRate: 0.000019097411,
|
||||
// numErrors: 0,
|
||||
// errorRate: 0,
|
||||
// num4XX: 0,
|
||||
// fourXXRate: 0,
|
||||
// },
|
||||
// {
|
||||
// serviceName: "customer",
|
||||
// p99: 728385000,
|
||||
// avgDuration: 342475680,
|
||||
// numCalls: 1897,
|
||||
// callRate: 0.000019087349,
|
||||
// numErrors: 0,
|
||||
// errorRate: 0,
|
||||
// num4XX: 0,
|
||||
// fourXXRate: 0.6325778,
|
||||
// },
|
||||
// {
|
||||
// serviceName: "driver",
|
||||
// p99: 243808000,
|
||||
// avgDuration: 204640670,
|
||||
// numCalls: 1898,
|
||||
// callRate: 0.000019097411,
|
||||
// numErrors: 0,
|
||||
// errorRate: 0,
|
||||
// num4XX: 0,
|
||||
// fourXXRate: 0.63224447,
|
||||
// },
|
||||
// {
|
||||
// serviceName: "route",
|
||||
// p99: 79419000,
|
||||
// avgDuration: 50748804,
|
||||
// numCalls: 18979,
|
||||
// callRate: 0.00019096404,
|
||||
// numErrors: 0,
|
||||
// errorRate: 3,
|
||||
// num4XX: 0,
|
||||
// fourXXRate: 0,
|
||||
// },
|
||||
// ],
|
||||
// };
|
||||
dispatch<servicesAction>({
|
||||
type: ActionTypes.getServices,
|
||||
payload: response.data,
|
||||
|
Loading…
x
Reference in New Issue
Block a user