Skip to content

Commit

Permalink
Support editing functions of each module (#402)
Browse files Browse the repository at this point in the history
* fix:Correct the way resources are obtained (#292)

* Support editing functions of each module
  • Loading branch information
yang1666204 authored May 23, 2024
1 parent ec5c4a8 commit 2521625
Show file tree
Hide file tree
Showing 12 changed files with 1,350 additions and 94 deletions.
1 change: 0 additions & 1 deletion ui/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default defineConfig({
request: {},
favicons: ['/logo.png'],
title: 'OceanBase Dashboard',
mock: false,
layout: false,
locale: {
default: 'zh-CN',
Expand Down
86 changes: 86 additions & 0 deletions ui/mock/alertAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,90 @@ export default {
message: 'string',
successful: true,
},
'GET /api/v1/alarm/silence/silencers/string': {
data: {
comment: 'string',
createdBy: 'string',
endsAt: 1716282320833,
id: 'string',
instances: [
{
obcluster: 'string',
observer: 'string',
obtenant: 'string',
obzone: 'string',
type: 'obcluster',
},
],
rules: ['string'],
matchers: [
{
isRegex: true,
name: 'string',
value: 'string',
},
],
startsAt: 0,
status: {
state: 'active',
},
updatedAt: 0,
},
message: 'string',
successful: true,
},
'GET /api/v1/alarm/rule/rules/string': {
data: {
description: 'string',
duration: 0,
evaluationTime: 0,
health: 'unknown',
instanceType: 'obcluster',
keepFiringFor: 0,
labels: [
{
key: 'string',
value: 'string',
},
],
lastError: 'string',
lastEvaluation: 0,
name: 'string',
query: 'string',
serverity: 'critical',
state: 'active',
summary: 'string',
type: 'builtin',
},
message: 'string',
successful: true,
},
'GET /api/v1/alarm/receiver/receivers/string': {
data: {
config: 'string',
name: 'string',
type: 'discord',
},
message: 'string',
successful: true,
},
'GET /api/v1/alarm/route/routes/string': {
data: {
aggregateLabels: ['string'],
groupInterval: 0,
groupWait: 0,
id: 'string',
matchers: [
{
isRegex: true,
name: 'string',
value: 'string',
},
],
receiver: 'string',
repeatInterval: 0,
},
message: 'string',
successful: true,
},
};
Loading

0 comments on commit 2521625

Please sign in to comment.