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=" +
|
"&end=" +
|
||||||
globalTime.maxTime;
|
globalTime.maxTime;
|
||||||
|
|
||||||
// const response = await api.get<servicesMapItem[]>(apiV1 + request_string);
|
const response = await api.get<servicesMapItem[]>(apiV1 + request_string);
|
||||||
const response = {
|
// const response = {
|
||||||
data: [
|
// data: [
|
||||||
{
|
// {
|
||||||
parent: "driver",
|
// parent: "driver",
|
||||||
child: "redis",
|
// child: "redis",
|
||||||
callCount: 17050,
|
// callCount: 17050,
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
parent: "frontend",
|
// parent: "frontend",
|
||||||
child: "driver",
|
// child: "driver",
|
||||||
callCount: 1263,
|
// callCount: 1263,
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
parent: "customer",
|
// parent: "customer",
|
||||||
child: "mysql",
|
// child: "mysql",
|
||||||
callCount: 1262,
|
// callCount: 1262,
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
parent: "frontend",
|
// parent: "frontend",
|
||||||
child: "customer",
|
// child: "customer",
|
||||||
callCount: 1262,
|
// callCount: 1262,
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
parent: "frontend",
|
// parent: "frontend",
|
||||||
child: "route",
|
// child: "route",
|
||||||
callCount: 12636,
|
// callCount: 12636,
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
};
|
// };
|
||||||
dispatch<serviceMapItemAction>({
|
dispatch<serviceMapItemAction>({
|
||||||
type: ActionTypes.getServiceMapItems,
|
type: ActionTypes.getServiceMapItems,
|
||||||
payload: response.data,
|
payload: response.data,
|
||||||
@ -87,7 +87,76 @@ export const getDetailedServiceMapItems = (globalTime: GlobalTime) => {
|
|||||||
"/services?start=" + globalTime.minTime + "&end=" + globalTime.maxTime;
|
"/services?start=" + globalTime.minTime + "&end=" + globalTime.maxTime;
|
||||||
|
|
||||||
const response = await api.get<servicesItem[]>(apiV1 + request_string);
|
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>({
|
dispatch<servicesAction>({
|
||||||
type: ActionTypes.getServices,
|
type: ActionTypes.getServices,
|
||||||
payload: response.data,
|
payload: response.data,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user