Skip to content

Commit 54026e8

Browse files
committed
chore: changed schema mode name
Signed-off-by: NaYeong,Kim <[email protected]>
1 parent 4b358e1 commit 54026e8

8 files changed

+21
-21
lines changed

apps/web/src/services/alert-manager/v1/components/AlertDashboardAlertStateWidget.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { numberFormatter } from '@cloudforet/utils';
1717
import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
1818
import type { AlertListParameters } from '@/schema/monitoring/alert/api-verbs/list';
1919
import { ALERT_STATE } from '@/schema/monitoring/alert/constants';
20-
import type { AlertModel } from '@/schema/monitoring/alert/model';
20+
import type { AlertModelV1 } from '@/schema/monitoring/alert/model';
2121
import { i18n } from '@/translations';
2222
2323
import { useUserWorkspaceStore } from '@/store/app-context/workspace/user-workspace-store';
@@ -114,7 +114,7 @@ const state = reactive({
114114
selectedUrgency: ALERT_URGENCY_FILTER.ALL,
115115
selectedAssignedState: ALERT_ASSIGNED_FILTER.ALL,
116116
isAssignedToMe: false,
117-
items: [] as AlertModel[],
117+
items: [] as AlertModelV1[],
118118
thisPage: 1,
119119
allPage: 1,
120120
pageSize: 10,
@@ -146,7 +146,7 @@ const getQuery = () => {
146146
const listAlerts = async () => {
147147
try {
148148
state.loading = true;
149-
const { results, total_count } = await SpaceConnector.clientV2.monitoring.alert.list<AlertListParameters, ListResponse<AlertModel>>({
149+
const { results, total_count } = await SpaceConnector.clientV2.monitoring.alert.list<AlertListParameters, ListResponse<AlertModelV1>>({
150150
query: getQuery(),
151151
workspace_id: storeState.currentWorkspaceId,
152152
});

apps/web/src/services/alert-manager/v1/components/AlertDashboardProjectSearchWidgetAlertList.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
1414
import type { AlertListParameters } from '@/schema/monitoring/alert/api-verbs/list';
1515
import { ALERT_STATE } from '@/schema/monitoring/alert/constants';
16-
import type { AlertModel } from '@/schema/monitoring/alert/model';
16+
import type { AlertModelV1 } from '@/schema/monitoring/alert/model';
1717
1818
import { useAllReferenceStore } from '@/store/reference/all-reference-store';
1919
import type { UserReferenceMap } from '@/store/reference/user-reference-store';
@@ -31,7 +31,7 @@ const allReferenceStore = useAllReferenceStore();
3131
const state = reactive({
3232
loading: true,
3333
users: computed<UserReferenceMap>(() => allReferenceStore.getters.user),
34-
items: [] as AlertModel[],
34+
items: [] as AlertModelV1[],
3535
totalCount: 0,
3636
});
3737
@@ -47,7 +47,7 @@ const getQuery = () => {
4747
const listAlerts = async () => {
4848
try {
4949
state.loading = true;
50-
const { results, total_count } = await SpaceConnector.clientV2.monitoring.alert.list<AlertListParameters, ListResponse<AlertModel>>({
50+
const { results, total_count } = await SpaceConnector.clientV2.monitoring.alert.list<AlertListParameters, ListResponse<AlertModelV1>>({
5151
project_id: props.projectId,
5252
query: getQuery(),
5353
});

apps/web/src/services/alert-manager/v1/components/AlertDashboardTop5ProjectActivityWidgetTooltip.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
1515
import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
1616
import type { AlertListParameters } from '@/schema/monitoring/alert/api-verbs/list';
17-
import type { AlertModel } from '@/schema/monitoring/alert/model';
17+
import type { AlertModelV1 } from '@/schema/monitoring/alert/model';
1818
1919
import { useUserStore } from '@/store/user/user-store';
2020
@@ -32,7 +32,7 @@ const props = defineProps<{
3232
const userStore = useUserStore();
3333
const state = reactive({
3434
totalCount: 0,
35-
alerts: [] as AlertModel[],
35+
alerts: [] as AlertModelV1[],
3636
moreCount: undefined as undefined | number,
3737
timezone: computed<string|undefined>(() => userStore.state.timezone),
3838
});
@@ -70,7 +70,7 @@ const getQuery = () => {
7070
};
7171
const getAlerts = async () => {
7272
try {
73-
const { results, total_count } = await SpaceConnector.clientV2.monitoring.alert.list<AlertListParameters, ListResponse<AlertModel>>({
73+
const { results, total_count } = await SpaceConnector.clientV2.monitoring.alert.list<AlertListParameters, ListResponse<AlertModelV1>>({
7474
project_id: props.projectId,
7575
query: {
7676
...getQuery(),

apps/web/src/services/alert-manager/v1/components/AlertDetailResponder.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from '@cloudforet/mirinae';
1313
1414
import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
15-
import type { AlertModel } from '@/schema/monitoring/alert/model';
15+
import type { AlertModelV1 } from '@/schema/monitoring/alert/model';
1616
import type { EscalationPolicyGetParameters } from '@/schema/monitoring/escalation-policy/api-verbs/get';
1717
import type { EscalationPolicyModel } from '@/schema/monitoring/escalation-policy/model';
1818
import type { EscalationPolicyRule } from '@/schema/monitoring/escalation-policy/type';
@@ -26,7 +26,7 @@ import ProjectChannelList from '@/services/alert-manager/v1/components/ProjectCh
2626
2727
interface Props {
2828
id?: string;
29-
alertData?: Partial<AlertModel>;
29+
alertData?: Partial<AlertModelV1>;
3030
manageDisabled?: boolean;
3131
}
3232
interface RuleItem {

apps/web/src/services/alert-manager/v1/components/AlertMainAcknowledgeModal.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
66
import { PButtonModal, PCheckbox } from '@cloudforet/mirinae';
77
8-
import type { AlertModel } from '@/schema/monitoring/alert/model';
8+
import type { AlertModelV1 } from '@/schema/monitoring/alert/model';
99
import { i18n } from '@/translations';
1010
1111
import { useUserStore } from '@/store/user/user-store';
@@ -18,7 +18,7 @@ import { useAlertAssignUserStore } from '@/services/alert-manager/v1/stores/aler
1818
1919
const props = defineProps<{
2020
visible: boolean;
21-
alerts: AlertModel[];
21+
alerts: AlertModelV1[];
2222
}>();
2323
const emit = defineEmits<{(event: 'update:visible', value: boolean): void;
2424
(event: 'confirm'): void;

apps/web/src/services/alert-manager/v1/components/AlertMainDataTableActions.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { durationFormatter, iso8601Formatter } from '@cloudforet/utils';
1313
1414
import type { AlertDeleteParameters } from '@/schema/monitoring/alert/api-verbs/delete';
1515
import { ALERT_STATE, ALERT_URGENCY } from '@/schema/monitoring/alert/constants';
16-
import type { AlertModel } from '@/schema/monitoring/alert/model';
16+
import type { AlertModelV1 } from '@/schema/monitoring/alert/model';
1717
import { i18n } from '@/translations';
1818
1919
import { useAllReferenceStore } from '@/store/reference/all-reference-store';
@@ -59,7 +59,7 @@ const ALERT_ACTION = {
5959
type AlertAction = typeof ALERT_ACTION[keyof typeof ALERT_ACTION];
6060
6161
const props = withDefaults(defineProps<{
62-
selectedItems?: AlertModel[];
62+
selectedItems?: AlertModelV1[];
6363
manageDisabled?: boolean;
6464
}>(), {
6565
selectedItems: () => [],

apps/web/src/services/alert-manager/v1/components/AlertMainResolveModal.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
1010
import type { AlertUpdateParameters } from '@/schema/monitoring/alert/api-verbs/update';
1111
import { ALERT_STATE } from '@/schema/monitoring/alert/constants';
12-
import type { AlertModel } from '@/schema/monitoring/alert/model';
12+
import type { AlertModelV1 } from '@/schema/monitoring/alert/model';
1313
import type { NoteCreateParameters } from '@/schema/monitoring/note/api-verbs/create';
1414
import type { NoteModel } from '@/schema/monitoring/note/model';
1515
import { i18n } from '@/translations';
@@ -21,7 +21,7 @@ import { useProxyValue } from '@/common/composables/proxy-state';
2121
2222
const props = withDefaults(defineProps<{
2323
visible: boolean;
24-
alerts?: AlertModel[];
24+
alerts?: AlertModelV1[];
2525
}>(), {
2626
visible: false,
2727
alerts: () => [],
@@ -37,7 +37,7 @@ const state = reactive({
3737
/* api */
3838
const updateAlertAndCreateNote = async (alertId: string) => {
3939
try {
40-
await SpaceConnector.clientV2.monitoring.alert.update<AlertUpdateParameters, AlertModel>({
40+
await SpaceConnector.clientV2.monitoring.alert.update<AlertUpdateParameters, AlertModelV1>({
4141
alert_id: alertId,
4242
state: ALERT_STATE.RESOLVED,
4343
});

apps/web/src/services/project/v1/components/ProjectSummaryAlertWidget.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { numberFormatter } from '@cloudforet/utils';
1818
import type { ListResponse } from '@/api-clients/_common/schema/api-verbs/list';
1919
import type { AlertListParameters } from '@/schema/monitoring/alert/api-verbs/list';
2020
import { ALERT_STATE } from '@/schema/monitoring/alert/constants';
21-
import type { AlertModel } from '@/schema/monitoring/alert/model';
21+
import type { AlertModelV1 } from '@/schema/monitoring/alert/model';
2222
import { i18n } from '@/translations';
2323
2424
import { useAllReferenceStore } from '@/store/reference/all-reference-store';
@@ -85,7 +85,7 @@ const state = reactive({
8585
},
8686
]),
8787
selectedAssignedState: ALERT_ASSIGNED_FILTER.ALL,
88-
items: [] as AlertModel[],
88+
items: [] as AlertModelV1[],
8989
totalCount: 0,
9090
thisPage: 1,
9191
allPage: 1,
@@ -118,7 +118,7 @@ const getQuery = () => {
118118
const listAlerts = async () => {
119119
try {
120120
state.loading = true;
121-
const { results, total_count } = await SpaceConnector.clientV2.monitoring.alert.list<AlertListParameters, ListResponse<AlertModel>>({
121+
const { results, total_count } = await SpaceConnector.clientV2.monitoring.alert.list<AlertListParameters, ListResponse<AlertModelV1>>({
122122
project_id: props.projectId,
123123
query: getQuery(),
124124
});

0 commit comments

Comments
 (0)