mirror of https://github.com/coder/coder.git
37 lines
710 B
TypeScript
37 lines
710 B
TypeScript
import * as API from "api/api";
|
|
|
|
export const deploymentConfig = () => {
|
|
return {
|
|
queryKey: ["deployment", "config"],
|
|
queryFn: API.getDeploymentConfig,
|
|
};
|
|
};
|
|
|
|
export const deploymentDAUs = () => {
|
|
return {
|
|
queryKey: ["deployment", "daus"],
|
|
queryFn: () => API.getDeploymentDAUs(),
|
|
};
|
|
};
|
|
|
|
export const deploymentStats = () => {
|
|
return {
|
|
queryKey: ["deployment", "stats"],
|
|
queryFn: API.getDeploymentStats,
|
|
};
|
|
};
|
|
|
|
export const health = () => {
|
|
return {
|
|
queryKey: ["deployment", "health"],
|
|
queryFn: API.getHealth,
|
|
};
|
|
};
|
|
|
|
export const deploymentSSHConfig = () => {
|
|
return {
|
|
queryKey: ["deployment", "sshConfig"],
|
|
queryFn: API.getDeploymentSSHConfig,
|
|
};
|
|
};
|