GithubHelp home page GithubHelp logo

edge-back-end's Introduction

平台后端

实时监控

实时监控实体类

目前暂未使用

实时监控数据访问对象层

目前暂未使用

实时监控服务层

SurveillanceServiceImplement类实现了SurveillanceService接口

  • getOnlineDevices()
    获得成功与edgex连接并能调用其命令的在线设备信息。
    返回JSON数组
    [
     {"id":(String) 设备id,
      "name":(String) 设备名称
     },
     {...},{...}...
    ]
  • getTotalNum()
    获取在edgex中有注册信息的设备总数。
    返回int。

  • getDeviceDetail(String id)
    获取特定设备的详细读数。
    Param: String id 此设备在edgex中的注册id。
    返回一个JSON对象

 {(String) 读数名称1:(int) 值1,
  (String) 读数名称2:(int) 值2,
  ...}
  • getExpiringDevice()
    获取在后端数据库中即将到期的设备详情。
    返回一个JSON数组
[{
 "name":(String) 设备名称,
 "failDate":(String) 到期日期,
 "description":(String) 描述},
 {...}...]
  • getRegNum()
    获取在后端数据库中注册的设备总数。
    返回int。

  • getRegDevice()
    获取在后端数据库中注册的设备详情。
    返回一个JSON数组

[{
 "id":(String) 后端数据库中的设备id,
 "name";(String) 设备名称,
 "type":(String) 设备模板类型,
 "description":(String) 描述
 },
 {...}...]
  • getAge()
    获取在后端数据库中设备寿命的分布情况。
    返回一个JSON对象
{"rookieGood":(int) 新注册且状态良好的数量,
 "rookieFix":(int) 新注册但需要维修更换的数量,
 "veteranGood":(int) 正常设备数量,
 "veteranFix":(int) 长时工作后需要更换维修的设备数量
}

实时监控控制器层

此控制器所有调用的方法来自于实时监控服务层。

数据库

界面

安全

1.添加spring security依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-security</artifactId>
</dependency>

2.启动spring security

@EnableWebSecurity

edge-back-end's People

Contributors

voo-c avatar dyc8818 avatar natureson avatar qin-1001 avatar

Watchers

James Cloos avatar Shihao Xu avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.