├── .gitignore ├── README.md ├── agent ├── .env ├── apps │ ├── analyse │ │ ├── scheams.py │ │ ├── test.py │ │ └── view.py │ └── langchain-test.py ├── init.py ├── main.py ├── prompts │ └── prometheus.txt ├── requirements.txt └── utils │ ├── exceptions.py │ └── logs.py ├── api ├── .env ├── apps │ ├── ai │ │ └── views.py │ ├── alerts │ │ ├── models.py │ │ ├── scheams.py │ │ ├── test.py │ │ └── views.py │ ├── systeminfo │ │ ├── models.py │ │ ├── scheams.py │ │ ├── test.py │ │ └── views.py │ ├── test.sh │ └── users │ │ ├── models.py │ │ ├── scheams.py │ │ ├── test.sh │ │ └── views.py ├── init.py ├── init.sql ├── main.py ├── requirements.txt ├── settings.py ├── test.py └── utils │ ├── exceptions.py │ ├── jwt_tool.py │ ├── logs.py │ ├── middleware.py │ └── tools.py ├── docker ├── agent │ └── Dockerfile ├── api │ └── Dockerfile ├── docker-compose.yml ├── mysql │ ├── Dockerfile │ └── sql │ │ └── init.sql ├── nginx │ ├── Dockerfile │ └── conf │ │ └── nginx.conf └── prometheus │ ├── alert.rules │ ├── alertmanager.yml │ ├── docker-compose.yml │ └── prometheus.yml └── ui ├── README.md ├── babel.config.js ├── jsconfig.json ├── package-lock.json ├── package.json ├── public ├── favicon.ico └── index.html ├── src ├── App.vue ├── api │ ├── api.js │ └── config.js ├── assets │ └── logo.png ├── components │ └── HelloWorld.vue ├── main.js ├── router │ └── index.js └── views │ ├── AlarmPage.vue │ ├── AnalysisPage.vue │ ├── HomePage.vue │ └── LoginPage.vue └── vue.config.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/README.md -------------------------------------------------------------------------------- /agent/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/.env -------------------------------------------------------------------------------- /agent/apps/analyse/scheams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/apps/analyse/scheams.py -------------------------------------------------------------------------------- /agent/apps/analyse/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/apps/analyse/test.py -------------------------------------------------------------------------------- /agent/apps/analyse/view.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/apps/analyse/view.py -------------------------------------------------------------------------------- /agent/apps/langchain-test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/apps/langchain-test.py -------------------------------------------------------------------------------- /agent/init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/init.py -------------------------------------------------------------------------------- /agent/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/main.py -------------------------------------------------------------------------------- /agent/prompts/prometheus.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/prompts/prometheus.txt -------------------------------------------------------------------------------- /agent/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/requirements.txt -------------------------------------------------------------------------------- /agent/utils/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/utils/exceptions.py -------------------------------------------------------------------------------- /agent/utils/logs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/agent/utils/logs.py -------------------------------------------------------------------------------- /api/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/.env -------------------------------------------------------------------------------- /api/apps/ai/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/ai/views.py -------------------------------------------------------------------------------- /api/apps/alerts/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/alerts/models.py -------------------------------------------------------------------------------- /api/apps/alerts/scheams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/alerts/scheams.py -------------------------------------------------------------------------------- /api/apps/alerts/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/alerts/test.py -------------------------------------------------------------------------------- /api/apps/alerts/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/alerts/views.py -------------------------------------------------------------------------------- /api/apps/systeminfo/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/systeminfo/models.py -------------------------------------------------------------------------------- /api/apps/systeminfo/scheams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/systeminfo/scheams.py -------------------------------------------------------------------------------- /api/apps/systeminfo/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/systeminfo/test.py -------------------------------------------------------------------------------- /api/apps/systeminfo/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/systeminfo/views.py -------------------------------------------------------------------------------- /api/apps/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/test.sh -------------------------------------------------------------------------------- /api/apps/users/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/users/models.py -------------------------------------------------------------------------------- /api/apps/users/scheams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/users/scheams.py -------------------------------------------------------------------------------- /api/apps/users/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/users/test.sh -------------------------------------------------------------------------------- /api/apps/users/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/apps/users/views.py -------------------------------------------------------------------------------- /api/init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/init.py -------------------------------------------------------------------------------- /api/init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/init.sql -------------------------------------------------------------------------------- /api/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/main.py -------------------------------------------------------------------------------- /api/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/requirements.txt -------------------------------------------------------------------------------- /api/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/settings.py -------------------------------------------------------------------------------- /api/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/test.py -------------------------------------------------------------------------------- /api/utils/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/utils/exceptions.py -------------------------------------------------------------------------------- /api/utils/jwt_tool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/utils/jwt_tool.py -------------------------------------------------------------------------------- /api/utils/logs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/utils/logs.py -------------------------------------------------------------------------------- /api/utils/middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/utils/middleware.py -------------------------------------------------------------------------------- /api/utils/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/api/utils/tools.py -------------------------------------------------------------------------------- /docker/agent/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/agent/Dockerfile -------------------------------------------------------------------------------- /docker/api/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/api/Dockerfile -------------------------------------------------------------------------------- /docker/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/docker-compose.yml -------------------------------------------------------------------------------- /docker/mysql/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/mysql/Dockerfile -------------------------------------------------------------------------------- /docker/mysql/sql/init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/mysql/sql/init.sql -------------------------------------------------------------------------------- /docker/nginx/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/nginx/Dockerfile -------------------------------------------------------------------------------- /docker/nginx/conf/nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/nginx/conf/nginx.conf -------------------------------------------------------------------------------- /docker/prometheus/alert.rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/prometheus/alert.rules -------------------------------------------------------------------------------- /docker/prometheus/alertmanager.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/prometheus/alertmanager.yml -------------------------------------------------------------------------------- /docker/prometheus/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/prometheus/docker-compose.yml -------------------------------------------------------------------------------- /docker/prometheus/prometheus.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/docker/prometheus/prometheus.yml -------------------------------------------------------------------------------- /ui/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/README.md -------------------------------------------------------------------------------- /ui/babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/babel.config.js -------------------------------------------------------------------------------- /ui/jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/jsconfig.json -------------------------------------------------------------------------------- /ui/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/package-lock.json -------------------------------------------------------------------------------- /ui/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/package.json -------------------------------------------------------------------------------- /ui/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/public/favicon.ico -------------------------------------------------------------------------------- /ui/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/public/index.html -------------------------------------------------------------------------------- /ui/src/App.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/src/App.vue -------------------------------------------------------------------------------- /ui/src/api/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/src/api/api.js -------------------------------------------------------------------------------- /ui/src/api/config.js: -------------------------------------------------------------------------------- 1 | export const API_BASE_URL = 'http://127.0.0.1:8000'; // 替换为你的后端地址 -------------------------------------------------------------------------------- /ui/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/src/assets/logo.png -------------------------------------------------------------------------------- /ui/src/components/HelloWorld.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/src/components/HelloWorld.vue -------------------------------------------------------------------------------- /ui/src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/src/main.js -------------------------------------------------------------------------------- /ui/src/router/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/src/router/index.js -------------------------------------------------------------------------------- /ui/src/views/AlarmPage.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/src/views/AlarmPage.vue -------------------------------------------------------------------------------- /ui/src/views/AnalysisPage.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/src/views/AnalysisPage.vue -------------------------------------------------------------------------------- /ui/src/views/HomePage.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/src/views/HomePage.vue -------------------------------------------------------------------------------- /ui/src/views/LoginPage.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/src/views/LoginPage.vue -------------------------------------------------------------------------------- /ui/vue.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timmy1688/AlertAI/HEAD/ui/vue.config.js --------------------------------------------------------------------------------