CN105574602A - Alarming method for third party to call application program interface (API) - Google Patents

Alarming method for third party to call application program interface (API) Download PDF

Info

Publication number
CN105574602A
CN105574602A CN201510621693.0A CN201510621693A CN105574602A CN 105574602 A CN105574602 A CN 105574602A CN 201510621693 A CN201510621693 A CN 201510621693A CN 105574602 A CN105574602 A CN 105574602A
Authority
CN
China
Prior art keywords
application
module
platform
alarm
warning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510621693.0A
Other languages
Chinese (zh)
Inventor
梅峰
裴旭斌
王志强
金文德
周升
韩智伟
顾昊
李贤慧
黄俊惠
邱雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHINA REALTIME DATABASE Co Ltd
State Grid Zhejiang Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
CHINA REALTIME DATABASE Co Ltd
State Grid Zhejiang Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Zhejiang Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHINA REALTIME DATABASE Co Ltd, State Grid Zhejiang Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Zhejiang Electric Power Co Ltd filed Critical CHINA REALTIME DATABASE Co Ltd
Priority to CN201510621693.0A priority Critical patent/CN105574602A/en
Publication of CN105574602A publication Critical patent/CN105574602A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an alarming method for a third party to call an application program interface (API). The alarming method comprises the following steps of 1) deploying and installing tomcat on a server; 2) placing a Hysoon application management platform jar pack containing a warning application management platform in a tomcat/webapps/WEB-INF catalogue; 3) starting the tomcat, and then starting to provide webservices calling service for the outside by the warning application platform; 4) adding application file names, application names and the like of applications into the warning application platform in a definition mode; 5) adding a warning user object required by the applications into contact information of the warning management platform, and allowing the contact information to be associated with a related application; 6) calling a webservcies interface to transfer a warning information parameter to a warning platform; and 7) sending a platform short message to warn by the warning platform. After subscription by the warning platform, interface information of data leakage point rata exceeding 20% is sent to a subscriber by a warning tool, the running condition of data can be known by a business person very well, the time cost is saved, and the working efficiency is improved.

Description

The alarm method that a kind of api interface calls for third party
Technical field
The present invention relates to the alarm method that a kind of api interface calls for third party, belong to and the invention belongs to power system information communication technical field.
Background technology
2012, Zhejiang company and state's net DianKeYuan shared Liao Guowang corporate HQ science and technology item " distribution type real-time database management system is researched and developed and application ", Zhejiang company is supporting simultaneously " applied research of domestic distribution type real-time database management system " and " magnanimity history/real-time data base data service capabilities intelligent optimization research " Liang Ge county telephone central office pilot study project.Carry out through pilot work, accessed typical apply system data, demonstrate the security of data access, stability, reliability and maintainability; Move existing typical apply, demonstrate the convenience of migration; Start with from personalize development and centralized exploitation two aspect, respectively model regions office with different mode developments typical case new opplication, demonstrate new opplication exploitation convenience.Therefore, Zhejiang power grid in real time/historical data platform possessed and popularized the condition implemented in an all-round way on the basis of summing up research and development in early stage, pilot.
Zhejiang power grid real-time history data management system has accessed the real time data of multiple production system such as the whole province ground, city-level SCADA system, electric energy system, achieve the whole province's scheduling, business millions magnanimity such as fortune inspection, marketing etc. in real time/the specification access of historical data is with shared.And develop numerous application on this basis, achieve the migration of main application on the whole province PI platform.Be wherein all much Real-Time Monitoring application, need the function of Real-time Alarm.But the function of these alarms at present can only be just available in application in real time, usually only possesses the functions such as computer screen alarm, business personnel needs the various warning information of change ability Timeliness coverage ceaselessly paying close attention to screen.Along with the access of distribution data, the application can predicted based on distribution real time data will be more and more abundanter, also can be more to the demand of Real-time Alarm.Therefore, support multiple alarming terminal, warning system that user can subscribe can facilitate business personnel better to utilize various real time data greatly.
Along with project is carried out, a large amount of real time data measuring points is integrated into Hisoon database, and service application is more and more higher to data quality requirements, needs one can self-defining alarm platform, can send warning information to maintainer when system goes wrong, notice operation maintenance personnel checks reparation in time.
Summary of the invention
Due to the popularization of application, when business datum goes wrong, needing to have can the function of self-defining Real-time Alarm, notifies that related personnel carries out service work to equipment timely by short message mode.Sent a warning message by alarm management platform for convenience of Third party system, the object of this invention is to provide the alarm API of sing on web service, warning information write can be specified warning information table by this API, then by the subscription function of alarm platform, this warning information is associated with user, and then warning information is sent to this associated user.
Technical scheme of the present invention is as follows:
The alarm method that api interface calls for third party, specifically comprises the steps:
Step 1: dispose on the server and install tomcat;
Step 2: the Hisoon application management platform jar bag comprising alarm application management platform is placed in tomcat/webapps/WEB-INF catalogue;
Step 3: after starting tomcat, namely alarm application platform externally starts to provide webservices to call service;
Step 4: will apply and in self-defined mode, " application file title ", " apply names ", " alarm interval ", " minimum interval ", " alarm type " and " active state " be added in alarm management platform;
Step 5: the alert users object required for application is added in alarm management platform contact method, and associates with relevant application;
Step 6: when operation system needs to carry out information alert by magnanimity platform, call webservices interface by warning information Parameter transfer to alarm platform;
Step 7: the contact person of alarm platform to all this application relevant carries out transmission platform short message alarm.
As a further improvement on the present invention, described method is based on real time historical database application platform, and described real time historical database application platform is connected with other system end with user side respectively;
Described user side comprises enterprise portal unit, and described enterprise portal unit comprises Unified Identity library module, application access module and single-sign-on module, and some enterprise customers set up contact by user side and real time historical database application platform;
Described real time historical database application platform comprises system authentication service module, message center console module, HTTP service module, business application module, base application module, system interface service module, HS database platform module, oracle database module; User's synchronizing information of described enterprise portal transfers to system authentication service module, and system authentication service module intercoms mutually with message center console module and business application module, and message center console module intercoms mutually with business application module; Described application access module is intercomed with business application module mutually by HTTP service module, described single-sign-on module is connected with base application module with business application module respectively by HTTP service module, business application module intercoms mutually with base application module, system interface service module and HS database platform module respectively, and base application module intercoms mutually with system interface service module and oracle database module;
The information of described real time historical database application platform exports the other system end comprising PMS production management system, marketing management system, dispatching management information system to.
As a further improvement on the present invention, described real time historical database application platform adopts J2EE framework, and all application modules run in a unified WebAPP.
As a further improvement on the present invention, by this API, warning information table is specified in warning information write, then by the subscription function of alarm platform, this warning information is associated with user, and then warning information is sent to this associated user.
Beneficial effect of the present invention is as follows:
After alarm platform is subscribed to, the interface message of data leak source rate more than 20% is sent to booking reader by alarm instrument, thus makes business personnel understand data run situation better, and save time cost, increases work efficiency.
Accompanying drawing explanation
Fig. 1 is the logical architecture figure of real time historical database application platform in the present invention;
Fig. 2 is the application interface schematic diagram of step 2 in API Calls embodiment;
Fig. 3 is the application interface schematic diagram of step 3 in API Calls embodiment;
Fig. 4 is the application interface schematic diagram of step 4 in API Calls embodiment;
Fig. 5 is the architectural schemes figure of real time historical database application platform in the present invention;
Fig. 6 is the process flow diagram of the alarm method that api interface of the present invention calls for third party.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
The process flow diagram of the alarm method that api interface of the present invention calls for third party as shown in Figure 6, specifically comprises the steps:
Step 1: dispose on the server and install tomcat;
Step 2: the Hisoon application management platform jar bag comprising alarm application management platform is placed in tomcat/webapps/WEB-INF catalogue;
Step 3: after starting tomcat, namely alarm application platform externally starts to provide webservices to call service;
Step 4: will apply and in self-defined mode, " application file title ", " apply names ", " alarm interval ", " minimum interval ", " alarm type " and " active state " be added in alarm management platform;
Step 5: the alert users object required for application is added in alarm management platform contact method, and associates with relevant application;
Step 6: when operation system needs to carry out information alert by magnanimity platform, call webservices interface by warning information Parameter transfer to alarm platform;
Step 7: the contact person of alarm platform to all this application relevant carries out transmission platform short message alarm.
The structured flowchart of the warning system that a kind of api interface of the present invention calls for third party as shown in Figure 1, comprises user side, real time historical database application platform, other system end.Wherein,
Described user side comprises enterprise portal unit, and described enterprise portal unit comprises Unified Identity library module, application access module and single-sign-on module, and some enterprise customers set up contact by user side and real time historical database application platform.
Described real time historical database application platform system authentication service module, message center console module, HTTP service module, business application module, base application module, system interface service module, HS database platform module, oracle database module; User's synchronizing information of described enterprise portal transfers to system authentication service module, and system authentication service module intercoms mutually with message center console module and business application module, and message center console module intercoms mutually with business application module; Described application access module is intercomed with business application module mutually by HTTP service module, described single-sign-on module is connected with base application module with business application module respectively by HTTP service module, business application module intercoms mutually with base application module, system interface service module and HS database platform module respectively, and base application module intercoms mutually with system interface service module and oracle database module.
The information of described real time historical database application platform exports the other system end comprising PMS production management system, marketing management system, dispatching management information system to.
As the preferred embodiment of the present invention, described real time historical database application platform adopts J2EE framework, and all application modules run in a unified WebAPP.
Warning information write is specified warning information table by API by the present invention, is then associated with user by this warning information by the subscription function of alarm platform, and then warning information is sent to this associated user.
Alarm API function is: for the transmission of warning information, as long as meet alarm information formats, just sends by alerting service, does not need to carry out secondary development to code.
Illustrate below in conjunction with 2 to 4 pairs, accompanying drawing API Calls process of the present invention.Wherein, alarm API method is called voidinsertAlarmInfo (DateTimetime, StringjarName, StringoptionName, StringalarmInfo).Meaning of parameters is:
Time: alarm time, warning information carries out sending or upgrading according to this timestamp.
JarName: application file name, refers to jar bag title corresponding to alarm application or dll title.
OptionName: apply names, alarm Apply Names, this title is corresponding with jarName.
AlarmInfo: warning information, this information refers to the warning information finally sending to user.
Step 1:insertAlarmInfo (2014-01-22, " Advise.HSDataAdvise ", " Hisoon database application ", " 2014-01-22, Cixi electric energy data is abnormal ").
Step 2: by [adding application] tab of alarm management platform, " Hisoon database application " record is added in warning system, as shown in Figure 2.
Step 3: by [contact method] tab of alarm management platform, add user profile and contact method to warning system, as shown in Figure 3.
Step 4: by [application is subscribed to] tab of alarm management platform, " Hisoon database application " is subscribed to, as shown in Figure 4.
After above four steps, the warning information " 2014-01-22, Cixi electric energy data is abnormal " of Hisoon database application is sent to platform user jane (phone number: 188xxxx6693) with the form of short message.
Architectural schemes of the present invention is as shown in Figure 5:
The application of alarm api interface establishes protocols call according to state's net allusion quotation, adopts deployment/operational mode of concentrating greatly of the whole province, by application deployment Zhejiang power grid in real time/historical data application platform.
The feature of this architectural schemes is: 1) each producer develops different business modules separately, under packing is deployed to an App after merging; 2) each producer adopts unified technology path, Development Framework instrument.
The advantage of this architectural schemes is: 1) respectively develop packing and issuing in the application sets of unit and, in an application, achieve unifying user authentication, information department management and rights management; 2) adopt identical technology path and Development Framework, after being conducive to applying to development, the operation in later stage is promoted.
The shortcoming of this architectural schemes is: the technology path that constituent parts must be unified, and technological frame needs to select, and development teams needs to adjust technically.
Application platform general frame is:
1) application platform is based on J2EE framework
In real time/historical data application platform will adopt J2EE framework, and all application modules will operate in a unified WebAPP.
2) message desk
Application platform, by providing message service, comprising directly access Outside Mail system and short-message system, notifying function for providing message in business application module.
The warning system that a kind of api interface of the present invention calls for third party, after alarm platform is subscribed to, the interface message of data leak source rate more than 20% is sent to booking reader by alarm instrument, thus make business personnel understand data run situation better, save time cost, increases work efficiency.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. api interface supplies the alarm method that third party calls, and specifically comprises the steps:
Step 1: dispose on the server and install tomcat;
Step 2: the Hisoon application management platform jar bag comprising alarm application management platform is placed in tomcat/webapps/WEB-INF catalogue;
Step 3: after starting tomcat, namely alarm application platform externally starts to provide webservices to call service;
Step 4: will apply and in self-defined mode, " application file title ", " apply names ", " alarm interval ", " minimum interval ", " alarm type " and " active state " be added in alarm management platform;
Step 5: the alert users object required for application is added in alarm management platform contact method, and associates with relevant application;
Step 6: when operation system needs to carry out information alert by magnanimity platform, call webservices interface by warning information Parameter transfer to alarm platform;
Step 7: the contact person of alarm platform to all this application relevant carries out transmission platform short message alarm.
2. the alarm method that calls for third party of a kind of api interface according to claim 1, is characterized in that: described method is based on real time historical database application platform, and described real time historical database application platform is connected with other system end with user side respectively;
Described user side comprises enterprise portal unit, and described enterprise portal unit comprises Unified Identity library module, application access module and single-sign-on module, and some enterprise customers set up contact by user side and real time historical database application platform;
Described real time historical database application platform comprises system authentication service module, message center console module, HTTP service module, business application module, base application module, system interface service module, HS database platform module, oracle database module; User's synchronizing information of described enterprise portal transfers to system authentication service module, and system authentication service module intercoms mutually with message center console module and business application module, and message center console module intercoms mutually with business application module; Described application access module is intercomed with business application module mutually by HTTP service module, described single-sign-on module is connected with base application module with business application module respectively by HTTP service module, business application module intercoms mutually with base application module, system interface service module and HS database platform module respectively, and base application module intercoms mutually with system interface service module and oracle database module;
The information of described real time historical database application platform exports the other system end comprising PMS production management system, marketing management system, dispatching management information system to.
3. the alarm method that calls for third party of api interface according to claim 1 and 2, is characterized in that: described real time historical database application platform adopts J2EE framework, and all application modules run in a unified WebAPP.
4. api interface according to claim 1 and 2 supplies the alarm method that third party calls, it is characterized in that: by this API, warning information table is specified in warning information write, then by the subscription function of alarm platform, this warning information is associated with user, and then warning information is sent to this associated user.
CN201510621693.0A 2015-09-25 2015-09-25 Alarming method for third party to call application program interface (API) Pending CN105574602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510621693.0A CN105574602A (en) 2015-09-25 2015-09-25 Alarming method for third party to call application program interface (API)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510621693.0A CN105574602A (en) 2015-09-25 2015-09-25 Alarming method for third party to call application program interface (API)

Publications (1)

Publication Number Publication Date
CN105574602A true CN105574602A (en) 2016-05-11

Family

ID=55884707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510621693.0A Pending CN105574602A (en) 2015-09-25 2015-09-25 Alarming method for third party to call application program interface (API)

Country Status (1)

Country Link
CN (1) CN105574602A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526138A (en) * 2020-04-16 2020-08-11 行吟信息科技(上海)有限公司 Alarm implementation method, device and system
CN115034929A (en) * 2022-08-12 2022-09-09 成都秦川物联网科技股份有限公司 Production line electric quantity management method and system based on industrial Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1424680A (en) * 2002-12-31 2003-06-18 武汉柯创高新技术开发中心 Electronic accusing and appealing system
CN102238195A (en) * 2011-08-11 2011-11-09 成都勤智数码科技有限公司 Running monitoring method of application system
CN104331780A (en) * 2014-11-21 2015-02-04 国家电网公司 Monitoring system for business process

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1424680A (en) * 2002-12-31 2003-06-18 武汉柯创高新技术开发中心 Electronic accusing and appealing system
CN102238195A (en) * 2011-08-11 2011-11-09 成都勤智数码科技有限公司 Running monitoring method of application system
CN104331780A (en) * 2014-11-21 2015-02-04 国家电网公司 Monitoring system for business process

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘笑天 等: "《SIS实时历史数据库应用建议》", 《电力信息化》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526138A (en) * 2020-04-16 2020-08-11 行吟信息科技(上海)有限公司 Alarm implementation method, device and system
CN115034929A (en) * 2022-08-12 2022-09-09 成都秦川物联网科技股份有限公司 Production line electric quantity management method and system based on industrial Internet of things
CN115034929B (en) * 2022-08-12 2022-11-18 成都秦川物联网科技股份有限公司 Production line electric quantity management method and system based on industrial Internet of things
US11830091B2 (en) 2022-08-12 2023-11-28 Chengdu Qinchuan Iot Technology Co., Ltd. Methods for production line electricity management based on an industrial internet of things, systems and storage mediums thereof

Similar Documents

Publication Publication Date Title
CN102998577B (en) Unusual condition in detection and location electrical network and the system and method for power failure
CN102135929B (en) Distributed fault-tolerant service system
CN103595816A (en) Integrated electric marketing charge-reminding platform system
CN103514514A (en) On-line monitoring method for electricity marketing business data
CN101145841B (en) A method for optical transmission network processing reporting alarming information
CN103516529A (en) Management method, device and system of configuration files
CN101951027A (en) Uniform data acquisition and monitoring system of low-medium voltage power distribution network
CN101625790A (en) Method for alarming electric power event
CN112698953A (en) Power grid intelligent operation and detection platform based on micro-service
CN101430357B (en) Energy consumption data acquisition method and system, and energy consumption management terminal
CN105678651A (en) Power grid big data quality standardization-based power grid information management system and method
CN103116817A (en) System and method for enabling effective work force management of a smart grid
CN102082826A (en) Electric energy data cloud collection system and method
CN104320472A (en) Distributed short message gateway architecture system and design method thereof
CN105407015A (en) Business platform, monitoring platform, and business monitoring system and method
CN105574602A (en) Alarming method for third party to call application program interface (API)
CN105376266A (en) Remote pump station monitoring system based on mobile terminal
CN103855809A (en) Modulation intelligent power distribution platform monitoring system
CN103488726A (en) Method for establishing unified grid data platform based on WEB-SERVICE
CN105574065A (en) Method for counting leakage point rate of real-time data
CN101511095A (en) Base station alarm intelligent monitoring system
CN103489073A (en) Enterprise safe production monitoring information system
CN110086678A (en) Binary channels real-time data acquisition system and acquisition method based on Redis
CN101621734A (en) Abnormal occurrence notification system and method therefor in case of uninterruptible power source
CN105183797A (en) Substation file management and control method based on IEC61850 file service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160511

RJ01 Rejection of invention patent application after publication