This is an automated email from the ASF dual-hosted git repository. gongchao pushed a commit to branch integte-extern-alarm in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
commit 3bf2ab2b5d076408f8689e9c679efc41b4f280d0 Author: tomsun28 <tomsu...@outlook.com> AuthorDate: Thu Jan 9 20:06:57 2025 +0800 [improve] init Signed-off-by: tomsun28 <tomsu...@outlook.com> --- .../alert-integration.component.html | 1 + .../alert-integration.component.less | 0 .../alert-integration.component.spec.ts | 23 ++++++++++++++++++++++ .../alert-integration.component.ts | 12 +++++++++++ .../src/app/routes/alert/alert-routing.module.ts | 4 +++- web-app/src/assets/app-data.json | 7 +++++++ web-app/src/assets/i18n/en-US.json | 3 ++- web-app/src/assets/i18n/zh-CN.json | 3 ++- web-app/src/assets/i18n/zh-TW.json | 3 ++- 9 files changed, 52 insertions(+), 4 deletions(-) diff --git a/web-app/src/app/routes/alert/alert-integration/alert-integration.component.html b/web-app/src/app/routes/alert/alert-integration/alert-integration.component.html new file mode 100644 index 0000000000..4bcad472e5 --- /dev/null +++ b/web-app/src/app/routes/alert/alert-integration/alert-integration.component.html @@ -0,0 +1 @@ +<p>alert-integration works!</p> diff --git a/web-app/src/app/routes/alert/alert-integration/alert-integration.component.less b/web-app/src/app/routes/alert/alert-integration/alert-integration.component.less new file mode 100644 index 0000000000..e69de29bb2 diff --git a/web-app/src/app/routes/alert/alert-integration/alert-integration.component.spec.ts b/web-app/src/app/routes/alert/alert-integration/alert-integration.component.spec.ts new file mode 100644 index 0000000000..98a9372451 --- /dev/null +++ b/web-app/src/app/routes/alert/alert-integration/alert-integration.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AlertIntegrationComponent } from './alert-integration.component'; + +describe('AlertIntegrationComponent', () => { + let component: AlertIntegrationComponent; + let fixture: ComponentFixture<AlertIntegrationComponent>; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [AlertIntegrationComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(AlertIntegrationComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/web-app/src/app/routes/alert/alert-integration/alert-integration.component.ts b/web-app/src/app/routes/alert/alert-integration/alert-integration.component.ts new file mode 100644 index 0000000000..beebf006f1 --- /dev/null +++ b/web-app/src/app/routes/alert/alert-integration/alert-integration.component.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-alert-integration', + standalone: true, + imports: [], + templateUrl: './alert-integration.component.html', + styleUrl: './alert-integration.component.less' +}) +export class AlertIntegrationComponent { + +} diff --git a/web-app/src/app/routes/alert/alert-routing.module.ts b/web-app/src/app/routes/alert/alert-routing.module.ts index bad671fa46..a644668ef0 100644 --- a/web-app/src/app/routes/alert/alert-routing.module.ts +++ b/web-app/src/app/routes/alert/alert-routing.module.ts @@ -23,6 +23,7 @@ import { RouterModule, Routes } from '@angular/router'; import { AlertCenterComponent } from './alert-center/alert-center.component'; import { AlertGroupConvergeComponent } from './alert-group/alert-group-converge.component'; import { AlertInhibitComponent } from './alert-inhibit/alert-inhibit.component'; +import { AlertIntegrationComponent } from './alert-integration/alert-integration.component'; import { AlertNoticeComponent } from './alert-notice/alert-notice.component'; import { AlertSettingComponent } from './alert-setting/alert-setting.component'; import { AlertSilenceComponent } from './alert-silence/alert-silence.component'; @@ -34,7 +35,8 @@ const routes: Routes = [ { path: 'notice', component: AlertNoticeComponent }, { path: 'silence', component: AlertSilenceComponent }, { path: 'group', component: AlertGroupConvergeComponent }, - { path: 'inhibit', component: AlertInhibitComponent } + { path: 'inhibit', component: AlertInhibitComponent }, + { path: 'integration', component: AlertIntegrationComponent } ]; @NgModule({ diff --git a/web-app/src/assets/app-data.json b/web-app/src/assets/app-data.json index 0f0618900e..1d37777a5b 100644 --- a/web-app/src/assets/app-data.json +++ b/web-app/src/assets/app-data.json @@ -148,6 +148,13 @@ "icon": "anticon-calculator", "link": "/alert/setting" }, + + { + "text": "Integration", + "i18n": "menu.alert.integration", + "icon": "anticon-api", + "link": "/alert/integration" + }, { "text": "Group", "i18n": "menu.alert.group", diff --git a/web-app/src/assets/i18n/en-US.json b/web-app/src/assets/i18n/en-US.json index ef8b40534d..0b7c7d852b 100644 --- a/web-app/src/assets/i18n/en-US.json +++ b/web-app/src/assets/i18n/en-US.json @@ -44,7 +44,8 @@ "inhibit": "Alarm Inhibit", "setting": "Threshold Rule", "silence": "Alarm Silence", - "dispatch": "Notification" + "dispatch": "Notification", + "integration": "Integration", }, "advanced": { "": "Advanced", diff --git a/web-app/src/assets/i18n/zh-CN.json b/web-app/src/assets/i18n/zh-CN.json index 5752eebfdf..7dd7dbeaa2 100644 --- a/web-app/src/assets/i18n/zh-CN.json +++ b/web-app/src/assets/i18n/zh-CN.json @@ -43,7 +43,8 @@ "inhibit": "告警抑制", "silence": "告警静默", "setting": "阈值规则", - "dispatch": "消息通知" + "dispatch": "消息通知", + "integration": "集成接入" }, "advanced": { "": "高级", diff --git a/web-app/src/assets/i18n/zh-TW.json b/web-app/src/assets/i18n/zh-TW.json index 068b814700..396b04a97b 100644 --- a/web-app/src/assets/i18n/zh-TW.json +++ b/web-app/src/assets/i18n/zh-TW.json @@ -44,7 +44,8 @@ "converge": "告警收斂", "inhibit": "告警抑制", "silence": "告警靜默", - "dispatch": "消息通知" + "dispatch": "消息通知", + "integration": "集成接入" }, "bulletin": { "new": "新增看板項", --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For additional commands, e-mail: notifications-h...@hertzbeat.apache.org