mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-18 13:51:29 +08:00

* refactor: seperate the dependency of top overview query * refactor: added error handle for api call using usequery * refactor: update api layar and condition in component * fix: onDragSelect re-render all graph data * refactor: removed console * refactor: corrected names and updated implemented required condition * fix: the api call issue * refactor: removed useeffect * refactor: reverted the unnecessary changes * refactor: removed the login from service level * refactor: removed the unwanted code * refactor: reverted the unwanted changes in getDashboardVariable * refactor: instead of useQuery used useQueries * refactor: changed the dependencies of useQuery key * refactor: linter fixes * refactor: delete the unrequired files * fix: generecity of the type * fix: moved the type to component * fix: move the logic from container layer to pages layer * refactor: optimised some part of the code * refactor: review changes * refactor: optimised the checks * refactor: checking if the dependency data loaded in full view * refactor: resolve the error of props in overview.ts * refactor: small changes * refactor: enforced the typecasting of constant variable * refactor: refactoring in some of the changes are updated * refactor: refactoring in some of the changes are updated * refactor: removed the extra parameter from useGetQueryRange * refactor: revert the changes back for tab * refactor: metrics application is updated * chore: loading condition is updated for full view component * chore: moved the serviceDataProps type to api layer * chore: message name is updated --------- Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
17 lines
428 B
TypeScript
17 lines
428 B
TypeScript
import axios from 'api';
|
|
import { PayloadProps, Props } from 'types/api/metrics/getServiceOverview';
|
|
|
|
const getServiceOverview = async (props: Props): Promise<PayloadProps> => {
|
|
const response = await axios.post(`/service/overview`, {
|
|
start: `${props.start}`,
|
|
end: `${props.end}`,
|
|
service: props.service,
|
|
step: props.step,
|
|
tags: props.selectedTags,
|
|
});
|
|
|
|
return response.data;
|
|
};
|
|
|
|
export default getServiceOverview;
|