Background
The meaning of the Internet of vehicles mainly means that vehicle-mounted equipment on the vehicle effectively utilizes all vehicle dynamic information in an information network platform through a wireless communication technology, and different functional services are provided in the running of the vehicle. The vehicle networking has the advantages that the vehicle networking can provide guarantee for the distance between vehicles and reduce the probability of collision accidents of the vehicles, and can help the vehicle owners to navigate in real time and improve the traffic running efficiency through communication with other vehicles and network systems.
The concept of the internet of things is derived from the internet of things, namely the internet of things of vehicles, and the running vehicles are used as information sensing objects, and network connection between the vehicles and X (namely the vehicles, the people, the roads and the service platforms) is realized by means of a new generation of information communication technology, so that the overall intelligent driving level of the vehicles is improved, safe, comfortable, intelligent and efficient driving feeling and traffic service are provided for users, meanwhile, the traffic running efficiency is improved, and the intelligent level of social traffic service is improved.
The internet of vehicles realizes the omnibearing network links of vehicles and cloud platforms, vehicles and vehicles, vehicles and roads, vehicles and people, in-vehicle and the like through a new generation information communication technology, and mainly realizes 'three-network integration', namely, the integration of in-vehicle networks, inter-vehicle networks and vehicle mobile Internet. The internet of vehicles is used for sensing the state information of vehicles, and realizing intelligent management of traffic, intelligent decision of traffic information service and intelligent control of vehicles by means of a wireless communication network and a modern intelligent information processing technology.
The internet of vehicles service includes but is not limited to whole vehicle production, vehicle sales, operation support, end user support and the like, and the common problems at present are network fluctuation, bandwidth limitation, insufficient resources, unstable middleware, abnormal virtual machines and containers, service problems and the like. The business problems comprise end user login failure, user information acquisition failure, remote control failure, driving behavior data abnormality, remote charging failure and the like.
The vehicle networking system consists of a hardware layer, a network layer, a middleware layer and an application layer, and the conventional monitoring tool mainly takes software and hardware resources and system level monitoring at present, and can capture and process the problems of network fluctuation, insufficient resources, middleware restarting and the like by monitoring network parameters, system resources, port states and the like. The application layer uses a micro-service architecture, a function is constructed by using a group of small service modes, the functions are interacted through a lightweight API (such as RESTFUL interface, RESTFUL is a design style and development mode of a network application program, based on HTTP, XML format definition or JSON format definition can be used, RESTFUL is suitable for a scene that a mobile Internet manufacturer serves as a service interface, the function that a third party OTT calls mobile network resources is realized, the action types are newly added, changed and deleted, the called resources) interface is used for interaction, and interface parameters depend on actual services, so that a general monitoring tool cannot cover a service layer.
Disclosure of Invention
The invention provides an alarm method based on real-time monitoring of internet of vehicles business, which aims to solve the technical problem that the use experience of a user is influenced by business sporadic abnormality.
The first aim of the invention is realized by adopting the following technical scheme that the alarm method based on real-time monitoring of the vehicle networking service comprises the following steps:
Establishing a service script module, wherein the service script module simulates a real service flow of a user according to the actual use condition of the user;
A timing scheduling module is established, and the timing scheduling module configures a monitoring period according to the use frequency of different services, so that the real-time monitoring of core services and the monitoring of key service periods are realized;
a message notification module is established, the message notification module opens the instant messaging tool, when the business abnormality occurs, the instant messaging tool is notified at the first time, and the operation and maintenance personnel process the business abnormality after receiving the message;
And establishing a monitoring management module, wherein the monitoring management module integrates a service script module, a timing scheduling module and a message notification module to complete real-time monitoring based on the Internet of vehicles service.
Further, a service script module is established through an API interface testing tool, and the service script module simulates a real service flow of a user and comprises the following steps:
s11, logging in a script, simulating and inputting a user name, a password and signature verification calculation, and setting assertion information;
s12, acquiring authentication credentials and user information, and storing the authentication credentials and the user information into a global variable;
S13, reading global variable authentication voucher information and user information, inquiring license plate number, mobile phone number and vehicle position information of a vehicle owner after identity verification, and checking and obtaining API availability of the vehicle owner information;
And S14, by analogy, simulating a user real service operation function through a service script module, wherein the user real service operation function comprises the steps of operating remote control, message pushing and reservation for getting on the bus, and evaluating the availability of related functions.
Further, the assertion information includes a reply error and a reply timeout.
Further, a timing scheduling module is established through a continuous integration tool and a timer plug-in, and the method comprises the following steps:
S21, configuring a timer plug-in by the continuous integration tool, and selecting a construction mode when the continuous integration tool establishes a task after the timer plug-in is successfully configured;
S22, selecting timing construction and configuring timing time.
Further, the construction modes comprise a remote construction mode, a post-engineering construction mode, a timing trigger construction mode and a training SCM4 construction mode.
Further, the message notification module is established through the continuous integration tool and the message notification plug-in, and comprises the following steps:
S31, making a message notification template to display a message name, preview information, a problem profile, a success rate, a request time, an assertion result, a request address, request data and response data;
s32, opening an instant messaging tool, and configuring a communication mode, an authentication and a security setting mode;
S33, selecting a monitoring report address link to realize the function of previewing a report in the instant communication tool;
S34, configuring operation and maintenance personnel to realize a message must-reach function;
And S35, selecting a notification mode and notifying operation and maintenance personnel.
Further, the notification modes include a successful notification mode and an abnormal notification mode.
Further, the monitoring management module is established through the continuous integration tool, and the method comprises the following steps:
s41, creating a monitoring task, wherein the monitoring task comprises a task name and a construction mode;
s42, creating a triggering mode and selecting timing construction;
S43, selecting a service script and selecting a service simulation script;
S44, selecting a notification report, and setting report analysis and notification rules;
S45, configuring instant messaging, and selecting a notification mode and notifying personnel;
and S46, running a monitoring task.
The second aim of the invention is to provide an alarm system based on real-time monitoring of the Internet of vehicles service, so as to solve the technical problem that the use experience of a user is influenced by the sporadic abnormality of the service.
The alarm system based on the real-time monitoring of the vehicle networking service comprises a service script module, a timing scheduling module, a message notification module and a monitoring management module, wherein the service script module simulates the real service flow of a user according to the actual service condition of the user, the timing scheduling module configures the monitoring period according to the use frequency of different services to realize the real-time monitoring of the core service and the monitoring of the key service period, the message notification module opens an instant communication tool, when the service is abnormal, the instant communication tool is notified at the first time, operation and maintenance personnel receive the message and then process the abnormal problem of the service, and the monitoring management module integrates the service script module, the timing scheduling module and the message notification module to complete the real-time monitoring based on the vehicle networking service.
The method has the beneficial effects that the method goes deep into the service layer of the Internet of vehicles, collects service key indexes by simulating the real use process of a user in real time, opens up an instant messaging tool, can give an alarm and solve the problem at the first time when the service is abnormal, avoids the perception of the user, and improves the user experience.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Example 1:
Referring to fig. 1, an alarm method based on real-time monitoring of internet of vehicles service includes the following steps:
Establishing a service script module, wherein the service script module simulates a real service flow of a user according to the actual use condition of the user;
A timing scheduling module is established, and the timing scheduling module configures a monitoring period according to the use frequency of different services, so that the real-time monitoring of core services and the monitoring of key service periods are realized;
a message notification module is established, the message notification module opens the instant messaging tool, when the business abnormality occurs, the instant messaging tool is notified at the first time, and the operation and maintenance personnel process the business abnormality after receiving the message;
And establishing a monitoring management module, wherein the monitoring management module integrates a service script module, a timing scheduling module and a message notification module to complete real-time monitoring based on the Internet of vehicles service.
Further, a service script module is established through an API interface testing tool, and the service script module simulates a real service flow of a user and comprises the following steps:
s11, writing a login script by referring to a login API, simulating and inputting a user name, a password and signature verification calculation, and setting assertion information;
S12, after the login script is successfully executed, the user related information and authentication information are returned, and a script is written to acquire authentication credentials and user information and store the authentication credentials and the user information in a global variable;
S13, compiling a script for acquiring vehicle owner information, reading global variable authentication voucher information and user information, inquiring vehicle owner license plate number, mobile phone number and vehicle position information after identity verification, and checking and acquiring the API availability of the vehicle owner information;
And S14, by analogy, simulating a user real service operation function through a service script module, wherein the user real service operation function comprises the steps of operating remote control, message pushing and reservation for getting on the bus, and evaluating the availability of related functions.
In this embodiment, the assertion information includes response error and response timeout, and further, the user real service operation function is a vehicle networking service, including user management, user information, a message center, a vehicle center, safety protection, push service, ecological resources, driving behavior, remote control, love maintenance, reservation of getting on and violation inquiry, and the like.
Script (Script), which is an executable file written in accordance with a certain format using a specific descriptive language. Scripting languages, also known as extended languages, or dynamic languages, are programming languages used to control software applications, and scripts are typically saved in text (ASCII) and interpreted or compiled only when called. When executing the script, the computer performs a series of operations. These operations may involve only the ullustor, but may also involve other applications such as word processing, spreadsheets, and data management. The Illustator may support a variety of scripting environments (e.g., microsoft Visual Basic, appleScript, javaScript, etc.), and contain standard script combinations, the user may also use his own scripts and add these scripts to the "script" submenu.
The API (Application Programming Interface, application program interface), also known as an application programming interface, is a convention for the engagement of various components of a software system. Due to the increasing size of software in recent years, it is often necessary to divide a complex system into small components, and the design of the programming interface is important. In programming practice, the programming interface is designed to divide the responsibilities of the software system reasonably. The good interface design can reduce the mutual dependence of all parts of the system, improve the cohesion of the constituent units and reduce the coupling degree among the constituent units, thereby improving the maintainability and expansibility of the system.
In this embodiment, the timing scheduling module is established through the continuous integration tool and the timer plug-in, and includes the following steps:
S21, configuring a timer plug-in by the continuous integration tool, and selecting a construction mode when the continuous integration tool establishes a task after the timer plug-in is successfully configured;
S22, selecting timing construction and configuring timing time.
In this embodiment, the construction modes include a remote construction mode, a post-engineering construction mode, a timing trigger construction mode, and a training SCM4 construction mode.
In this embodiment, the message notification module is established through the persistent integration tool and the message notification plug-in, and includes the following steps:
s31, writing a script, and making a message notification template to display a message name, preview information, a problem profile, a success rate, a request time, an assertion result, a request address, request data and response data;
s32, opening an instant messaging tool, and configuring a communication mode, an authentication and a security setting mode;
S33, selecting a monitoring report address link to realize the function of previewing a report in the instant communication tool;
S34, configuring operation and maintenance personnel to realize a message must-reach function;
And S35, selecting a notification mode and notifying operation and maintenance personnel.
In this embodiment, the notification modes include a successful notification mode and an abnormal notification mode.
In this embodiment, the monitoring management module is established through the continuous integration tool, and includes the following steps:
s41, creating a monitoring task, wherein the monitoring task comprises a task name and a construction mode;
s42, creating a triggering mode and selecting timing construction;
S43, selecting a service script and selecting a service simulation script;
S44, selecting a notification report, and setting report analysis and notification rules;
S45, configuring instant messaging, and selecting a notification mode and notifying personnel;
and S46, running a monitoring task.
Furthermore, the continuous integration tool adopted by the invention can adopt Jenkins, and Jenkins has the characteristics of supporting massive node expansion and equally distributing workload in nodes, easily updating on all platforms of Linux, mac OS or Windows and the like of each version, providing a simple installation package in WAR format, performing the running installation after being imported into a JEE container, easily setting and configuring Jenkins through a Web interface, and easily distributing across machines. The continuous integration tool adopted by the invention can also adopt Buddy, and Buddy has the characteristics of clear configuration, friendly interaction, 15-minute rapid configuration, rapid deployment based on a change set (changeset), support of all popular languages, frameworks and task managers, integration with AWS, google, digitalOcean, azure, shopify, wordPress and the like, and support of parallel and YAML configuration. The continuous integration tool adopted by the invention can also adopt Travis CI and Travis CI which is a popular CI tool, can be used for open source projects freely, does not need to rely on any platform when in hosting, provides support for a plurality of construction configurations and languages, such as Node, PHP, python, java, perl and the like, and Travis CI has the characteristics that Travis uses a virtual mechanism to construct an application program, can be notified through Slack, hipChat, email and the like, allows parallel test to be run, supports Linux, mac and iOS, and has strong API and command line tools, and Travis CI is preferably adopted by the invention.
Referring to fig. 2, the alarm system based on real-time monitoring of internet of vehicles service comprises a service script module, a timing scheduling module, a message notification module and a monitoring management module, wherein the service script module simulates a real service flow of a user according to the actual service condition of the user, the timing scheduling module configures a monitoring period according to the use frequency of different services to realize real-time monitoring of core service and monitoring of key service periods, the message notification module opens an instant messaging tool, when abnormal service occurs, the instant messaging tool is notified at the first time, and operation and maintenance personnel receive the message and process the abnormal service problem, and the monitoring management module integrates the service script module, the timing scheduling module and the message notification module to complete real-time monitoring based on internet of vehicles service.
Furthermore, the service script module is used for acquiring the Internet of vehicles service of the contact user, the contact user comprises a B-end user and a C-end user, and the service script module also has basic capability of covering Internet of vehicles platforms such as terminal user service and basic configuration, logs, micro-services, databases, middleware and the like.
Referring to fig. 3, the alarm process of the invention is that when the internet of vehicles service (including user management, user information, message center, vehicle center, safety protection, push service, ecological resource, driving behavior, remote control, vehicle love maintenance, reservation on-board and violation inquiry, etc.) is abnormal, the information is uploaded to the alarm system through the API interface, the alarm system collects service key indexes by simulating the real use process of the user in real time, and the instant messaging tool is turned on, and when the service is abnormal, the first time alarm can be given and solved, thereby avoiding the perception of the user and improving the user experience.
It should be noted that, for simplicity of description, the foregoing embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, it should be understood by those skilled in the art that the embodiments described in the specification are preferred embodiments and that the actions involved are not necessarily required for the present application.
In the above embodiments, the basic principle and main features of the present invention and advantages of the present invention are described. It will be appreciated by persons skilled in the art that the present invention is not limited by the foregoing embodiments, but rather is shown and described in what is considered to be illustrative of the principles of the invention, and that modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the invention, and therefore, is within the scope of the appended claims.