CN111698280A - Operation and maintenance method, system, computer equipment and storage medium for cross-communication platform - Google Patents

Operation and maintenance method, system, computer equipment and storage medium for cross-communication platform Download PDF

Info

Publication number
CN111698280A
CN111698280A CN202010332192.1A CN202010332192A CN111698280A CN 111698280 A CN111698280 A CN 111698280A CN 202010332192 A CN202010332192 A CN 202010332192A CN 111698280 A CN111698280 A CN 111698280A
Authority
CN
China
Prior art keywords
task
pushing
maintenance
push
message
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
CN202010332192.1A
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.)
Hangzhou Ruijiang Technology Co.,Ltd.
Original Assignee
Hangzhou Chuanhua Intelligent Manufacturing Technology 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 Hangzhou Chuanhua Intelligent Manufacturing Technology Co ltd filed Critical Hangzhou Chuanhua Intelligent Manufacturing Technology Co ltd
Priority to CN202010332192.1A priority Critical patent/CN111698280A/en
Publication of CN111698280A publication Critical patent/CN111698280A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to an operation and maintenance method, system, computer equipment and computer storage medium for cross-communication platform. According to the operation and maintenance method of the cross-communication platform, under the condition that the preset keywords are monitored, the operation and maintenance tasks corresponding to the keywords are triggered; the method comprises the steps of obtaining a pushing platform according to a preset pushing task, obtaining a pushing object corresponding to the pushing platform, and determining a pushing message according to a task result of an operation and maintenance task, wherein the pushing task indicates the pushing platform corresponding to the operation and maintenance task and indicates the pushing object corresponding to the pushing platform; the push message is sent to the push object, so that scheduling and message synchronization of the operation and maintenance tasks among different communication platforms are realized, the time cost of implementation and result analysis of the operation and maintenance tasks is reduced, and the operation and maintenance efficiency is improved.

Description

Operation and maintenance method, system, computer equipment and storage medium for cross-communication platform
Technical Field
The present application relates to the field of operation and maintenance technologies, and in particular, to an operation and maintenance method, system, computer device, and storage medium across communication platforms.
Background
Software enterprises have used a number of operation and maintenance automation tools in order to accelerate product development iterations. For example: developers need to use a code management tool, a construction tool, log management and automatic deployment; the tester may use project management tools, stress testing tools, system testing tools, etc. The tool promotion has certain promotion on the development efficiency of enterprise software products. However, the tools are discrete and are mastered and used by different departments. The life cycle of modern software increasingly requires the participation of a plurality of departments, for example, the configuration of a system execution environment requires the participation of developers and operators; the test engineer needs to feed back the test result to the developer, and also needs to synchronize the test result to the operator.
However, in the related art, after the developer completes the function development, additional communication is required to synchronize information to the test, and the tester returns a feedback result to the development, and after the operation is repeated for several times, the operator is informed of acceptance. The cost of information communication among developers, testers and operators is too high, and information cannot be synchronized in time due to different tools used by each department. In addition, one simple system iteration is updated, different workers are required to operate on a plurality of tool platforms, the process is complex, the error possibility is high, and the processing efficiency is particularly low when problems occur.
Aiming at the problems of high time cost and low efficiency of automatic operation and maintenance cross-platform implementation and analysis in the related technology, no effective solution is provided at present.
Disclosure of Invention
In view of the above, it is necessary to provide an operation and maintenance method, system, computer device and storage medium across communication platforms.
According to one aspect of the invention, an operation and maintenance method for a cross-communication platform is provided, which comprises the following steps:
under the condition that a preset keyword is monitored, triggering an operation and maintenance task corresponding to the keyword;
acquiring a push platform according to a preset push task, acquiring a push object corresponding to the push platform, and determining a push message according to a task result of the operation and maintenance task, wherein the push task indicates the push platform corresponding to the operation and maintenance task and indicates the push object corresponding to the push platform;
and sending the push message to the push object.
In one embodiment, the obtaining, according to a preset message push task, a message push platform and a message push object corresponding to the message push platform, and determining, according to a task result of the task, a push message further includes:
acquiring a push platform and a push object corresponding to the message push platform according to a preset push task;
acquiring a message format corresponding to the pushing platform according to the pushing task;
and recombining the task result according to the message format to determine the push message.
In one embodiment, the triggering the operation and maintenance task corresponding to the preset keyword under the condition that the preset keyword is monitored further includes:
under the condition that a preset keyword is monitored, acquiring a task plan corresponding to the keyword;
and triggering the operation and maintenance task according to the task plan.
In one embodiment, in the case that a preset keyword is monitored, after a task corresponding to the keyword is triggered, the method includes:
and under the condition that the keywords are monitored, calculating the time difference of the keywords appearing twice before and after, and under the condition that the time difference exceeds a preset time threshold, triggering the operation and maintenance task corresponding to the keywords.
In one embodiment, the triggering, in the case that a preset keyword occurs, a task corresponding to the keyword includes:
and inquiring a cache under the condition of monitoring a preset keyword, and calling the operation and maintenance task in the cache under the condition that the operation and maintenance task corresponding to the keyword exists in the cache.
In one embodiment, the operation and maintenance task comprises a webpage task type and a script task type.
According to another aspect of the invention, an automatic operation and maintenance system across communication platforms is also provided, the system comprises a communication module, a message pushing module and a message monitoring module,
the message monitoring module monitors chat contents through the chat module, and triggers a task corresponding to a preset keyword under the condition that the preset keyword appears;
the message pushing module is used for acquiring a pushing platform and a pushing object corresponding to the pushing platform according to a preset pushing task, determining a pushing message according to a task result of the task, and sending the pushing message to the pushing object through the chatting module.
In one embodiment, the message pushing module is further configured to obtain a pushing platform and a pushing object corresponding to the message pushing platform according to a preset pushing task; acquiring a message format corresponding to the pushing platform according to the pushing task; and recombining the task result according to the message format, and determining the feedback message.
According to another aspect of the present invention, there is also provided a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the operation and maintenance method across communication platforms when executing the computer program.
According to another aspect of the present invention, there is also provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the above-mentioned operation and maintenance method across communication platforms.
According to the operation and maintenance method, the system, the computer equipment and the storage medium of the cross-communication platform, under the condition that the preset keywords are monitored, the operation and maintenance tasks corresponding to the keywords are triggered; the method comprises the steps of obtaining a pushing platform according to a preset pushing task, obtaining a pushing object corresponding to the pushing platform, and determining a pushing message according to a task result of an operation and maintenance task, wherein the pushing task indicates the pushing platform corresponding to the operation and maintenance task and indicates the pushing object corresponding to the pushing platform; the push message is sent to the push object, so that scheduling and message synchronization of the operation and maintenance tasks among different communication platforms are realized, the time cost of implementation and result analysis of the operation and maintenance tasks is reduced, and the operation and maintenance efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a diagram illustrating an application scenario of an operation and maintenance method across communication platforms according to an embodiment of the present application;
FIG. 2 is a first flowchart of an operation and maintenance method across communication platforms according to an embodiment of the present application;
FIG. 3 is a flowchart of a cross-communication platform operation and maintenance method according to an embodiment of the present application;
FIG. 4 is a flow chart diagram three of an operation and maintenance method across communication platforms according to an embodiment of the present application;
FIG. 5 is a block diagram of an automated operation and maintenance system across communication platforms according to one embodiment of the present application;
FIG. 6 is a block diagram of an operation and maintenance system across communication platforms in accordance with one implementation of the present application;
FIG. 7 is a diagram of a message push configuration in accordance with an exemplary embodiment of the present application;
FIG. 8 is a diagram illustrating a message listening plan configuration in accordance with an exemplary embodiment of the present application;
FIG. 9 is a flowchart of an operation and maintenance method across communication platforms according to a specific embodiment of the present application;
FIG. 10 is a block diagram of an operation and maintenance computer device across communication platforms according to one embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is an application scenario diagram of an operation and maintenance method across communication platforms according to an embodiment of the present application, and the operation and maintenance method across communication platforms provided by the present application may be applied to an application environment shown in fig. 1. The communication tool platform 102 communicates with the cross-communication platform operation and maintenance system 104 through a network, and the cross-communication platform operation and maintenance system 104 is connected with the operation and maintenance tool platform 106 through a network. When the cross-communication platform operation and maintenance system 104 monitors a preset keyword in the chat content in the communication tool platform 102, triggering an operation and maintenance task corresponding to the keyword in the operation and maintenance tool platform 106; the cross-communication platform operation and maintenance system 104 acquires a push platform according to a preset push task and acquires a push object corresponding to the push platform, and determines a push message according to a task result of the operation and maintenance task executed by the operation and maintenance tool platform 106, wherein the push task indicates the push platform corresponding to the operation and maintenance task and indicates the push object corresponding to the push platform; the cross-communication platform operation and maintenance system 104 sends the push message to the push object on the communication tool platform 102. The operation and maintenance tool platform 102 includes but is not limited to wechat, nailing, QQ, and the like, the operation and maintenance tool platform 106 includes but is not limited to Jenkins, Jira, Docker, Gitlab, and the like, the communication tool software in the communication platform 102 may be installed in the same computer device, or may be installed in a plurality of different computer devices, and similarly, the operation and maintenance tool platform 106 may be installed in the same computer device, or may be installed in a plurality of different computer devices, and the computer devices may be but is not limited to various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and may be independent servers or a server cluster composed of a plurality of servers.
In an embodiment, fig. 2 is a flowchart of a cross-communication platform operation and maintenance method according to an embodiment of the present application, and as shown in fig. 2, a cross-communication platform operation and maintenance method is provided, which is described by taking an example of the method applied to the cross-communication platform operation and maintenance system 104 in fig. 1, and includes the following steps:
step S210, under the condition that the preset keywords are monitored, an operation and maintenance task corresponding to the keywords is triggered. The cross-communication platform operation and maintenance system 104 comprises chat robots corresponding to chat communication tool software in the communication tool platform 102, the robots are used as members of a chat room, as if the robots are the same as all people, people in the chat room can be connected with various operation and maintenance services of a background through the robots, and the robots monitor chat contents in the chat room, namely, people only need to talk with the robots in a chat window and send a preset instruction to interact with the background operation and maintenance system. The cross-communication platform operation and maintenance system 104 may call an operation and maintenance platform and an operation and maintenance task corresponding to a preset keyword under the condition that the preset keyword is monitored, where the operation and maintenance task includes, but is not limited to, call of a program, stop of the program, modification of a parameter, and the like;
step S220, acquiring a push platform according to a preset push task, acquiring a push object corresponding to the push platform, and determining a push message according to a task result of the operation and maintenance task, where the push task indicates the push platform corresponding to the operation and maintenance task and indicates the push object corresponding to the push platform. In step S220, the cross-communication platform operation and maintenance system 104 acquires, according to a preset push task, a message push platform corresponding to the operation and maintenance task executed in step S210 and a push object corresponding to the push platform. For example, after the operation and maintenance task a is finished and the task result is fed back to the cross-communication platform operation and maintenance system 104, the cross-communication platform operation and maintenance system 104 acquires that the push platforms corresponding to the operation and maintenance task a are the a contact person in the nail, the B chat group, and the C contact person and the D chat group in the WeChat according to the preset push task. In addition, the cross-communication platform operation and maintenance system 104 may acquire the format of the push message according to the preset push task, convert the task result fed back by the operation and maintenance tool platform 106 into the format of the preset push message, filter out unnecessary information, and only retain the specified information content in the push task, thereby forming a formatted push message.
Step S230, sending the push message to the push object. The cross-communication-platform operation and maintenance system 104 pushes the push message to each push object according to the push message and the push object acquired in step S220. For example, the cross-communication platform operation and maintenance system 104 sends the operation and maintenance result of the operation and maintenance task a to the contact a, the chat group B, the contact C and the chat group D, respectively.
According to the operation and maintenance method of the cross-communication platform, under the condition that the preset keywords are monitored, the operation and maintenance tasks corresponding to the keywords are triggered; the method comprises the steps of obtaining a pushing platform according to a preset pushing task, obtaining a pushing object corresponding to the pushing platform, and determining a pushing message according to a task result of an operation and maintenance task, wherein the pushing task indicates the pushing platform corresponding to the operation and maintenance task and indicates the pushing object corresponding to the pushing platform; the push message is sent to the push object, so that scheduling and message synchronization of the operation and maintenance tasks among different communication platforms are realized, the time cost of implementation and result analysis of the operation and maintenance tasks is reduced, and the operation and maintenance efficiency is improved.
In an embodiment, fig. 3 is a flowchart of a second operation and maintenance method across communication platforms according to an embodiment of the present application, and as shown in fig. 3, acquiring a message push platform and a message push object corresponding to the message push platform according to a preset message push task, and determining a push message according to a task result of the task further includes:
step S310, acquiring a push platform and a push object corresponding to the message push platform according to a preset push task;
step S320, obtaining a message format corresponding to the push platform according to the push task. In step S320, a message format corresponding to each push platform or each push object is also preset in the push task in the cross-communication platform operation and maintenance system 104. Under the condition that the task result information of the operation and maintenance task contains more information, the interested results of the protection and the pushing objects of each pushing platform are not necessarily the same, so that the pushing format of the task result can be specified when the pushing task is preset, each pushing object only receives the operation and maintenance result concerned by the object, and the operation and maintenance process is more efficient;
and step S330, reconstructing task results according to the message format and determining the push message. In step S330, the cross-communication platform operation and maintenance system 104 performs information reorganization on the task result according to the message format acquired in step S320, and determines a final push message.
In the above steps S310 to S330, different message formats are set for different push platforms and different push objects, and the format recombination is performed on the task result, so that each push object obtains the message content required by the push object, and the invalid information is filtered out, so that the message push pertinence is stronger, and the efficiency of cross-platform operation and maintenance is further improved.
In one embodiment, in the case that a preset keyword occurs, triggering a task corresponding to the keyword further includes: under the condition that a preset keyword appears, acquiring a task plan corresponding to the keyword; and triggering the task according to the task plan. In this embodiment, when the cross-communication platform operation and maintenance system 104 monitors a preset keyword in the communication tool platform 102, a task plan corresponding to the keyword is triggered, where the task plan may be an instant operation and maintenance task, or may be a timing task or multiple operation and maintenance tasks including running times of multiple operation and maintenance tasks. For example, a certain operation and maintenance task needs to be executed in the early morning, or a certain operation and maintenance task needs to be executed every 8 hours in a day, so as to avoid triggering the operation and maintenance task in the early morning or triggering the operation and maintenance task every 8 hours by a worker, a task plan may be triggered by a preset keyword. The task plan can set a preset running time interval, and can also be specified by a worker by adding a time keyword. The embodiment provides the task plan of operation and maintenance, and the task plan can be triggered immediately or according to the preset time when triggered, so that the efficiency of cross-platform operation and maintenance is further improved.
In an embodiment, fig. 4 is a flowchart three of an operation and maintenance method across communication platforms according to an embodiment of the present application, and as shown in fig. 4, after a task corresponding to a preset keyword is triggered in a case that the preset keyword is monitored, the method includes:
and step S410, calculating the time difference of the keywords appearing in the two times before and after the keywords are monitored, and triggering the task corresponding to the keywords when the time difference exceeds a preset time threshold. In step S410, a jitter prevention time with a certain duration is provided, which can be set when the push task is preset. Within the time length, repeated calling of the same operation and maintenance task is ignored, the operation and maintenance task is triggered once and a result of the operation and maintenance task is returned once after multiple times of calling, the repeated calling of a third-party system is prevented, the system memory bandwidth is prevented from being consumed, the time and the resource cost of the repeated calling are reduced, and the efficiency of cross-platform operation and maintenance is improved.
In one embodiment, in the case that a preset keyword is monitored, triggering a task corresponding to the keyword includes: and inquiring the cache under the condition that the preset keywords are monitored, and calling the tasks in the cache under the condition that the operation and maintenance tasks corresponding to the keywords exist in the cache. In this embodiment, in the process of invoking the operation and maintenance task, whether the operation and maintenance task exists in the cache is queried, and if the operation and maintenance task exists in the cache, the data in the cache is directly invoked without being invoked again from the database, so that the invocation time and the resource occupancy rate are saved, and the efficiency of cross-platform operation and maintenance is improved.
In one embodiment, the operation and maintenance task comprises a webpage task type and a script task type. Generally, an operation and maintenance tool provides an Application Programming Interface (API) for triggering a task, and in this case, only a Uniform Resource Locator (URL) is required as a call input; if the operation and maintenance tool does not provide the web page API, the task type can be set as a script, and the script command is used as a call input. In this embodiment, an operation and maintenance task type option is provided, and when a message push task is preset, a task type can be selected according to different operation and maintenance tasks, so that the pertinence and the calling efficiency during calling are improved.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, fig. 5 is a block diagram of an automatic operation and maintenance system across communication platforms according to an embodiment of the present application, and as shown in fig. 5, there is provided an automatic operation and maintenance system 50 across communication platforms, which is characterized in that the system includes a communication module 52, a message pushing module 54 and a message monitoring module 56,
the message monitoring module monitors chat contents through the chat module, and triggers an operation and maintenance task corresponding to a keyword under the condition that the preset keyword appears;
the message pushing module is used for acquiring a pushing platform and a pushing object corresponding to the pushing platform according to a preset pushing task, determining a pushing message according to a task result of the task, and sending the pushing message to the pushing object through the chatting module.
In one embodiment, the message pushing module is further configured to obtain a pushing platform and a pushing object corresponding to the message pushing platform according to a preset pushing task; acquiring a message format corresponding to a push platform according to a push task; and recombining the task result according to the message format to determine a feedback message.
In one embodiment, the message monitoring module is further configured to obtain a task plan corresponding to the keyword under the condition that the preset keyword occurs; and triggering the operation and maintenance task according to the task plan.
In one embodiment, the message monitoring module is further configured to calculate a time difference between two previous times and two next times of occurrence of the keyword when the keyword is monitored, and trigger an operation and maintenance task corresponding to the keyword when the time difference exceeds a preset time threshold.
In an embodiment, the message monitoring module is further configured to query the cache when a preset keyword occurs, and call the operation and maintenance task in the cache when the operation and maintenance task corresponding to the keyword exists in the cache.
For specific limitations of the operation and maintenance system across communication platforms, reference may be made to the above limitations on the operation and maintenance method across communication platforms, which are not described herein again. The modules in the operation and maintenance system of the cross-communication platform can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The operation and maintenance system of the cross-communication platform triggers an operation and maintenance task corresponding to the keyword under the condition that the preset keyword is monitored; the method comprises the steps of obtaining a pushing platform according to a preset pushing task, obtaining a pushing object corresponding to the pushing platform, and determining a pushing message according to a task result of an operation and maintenance task, wherein the pushing task indicates the pushing platform corresponding to the operation and maintenance task and indicates the pushing object corresponding to the pushing platform; the push message is sent to the push object, so that scheduling and message synchronization of the operation and maintenance tasks among different communication platforms are realized, the time cost of implementation and result analysis of the operation and maintenance tasks is reduced, and the operation and maintenance efficiency is improved.
In a specific embodiment, fig. 6 is a block diagram of an operation and maintenance system across communication platforms according to an embodiment of the present application, and as shown in fig. 6, the operation and maintenance system 104 across communication platforms includes a message parsing module 62, a complex task module 64, and a basic task module 66, where the complex task module 64 includes a timing task module 65, and the basic task module 66 includes a message pushing module 67 and a message monitoring module 68. When the chat tool sends out the chat command, the operation and maintenance system 60 of the cross-communication platform sends the execution command of the operation and maintenance task to the operation and maintenance tool, the operation and maintenance tool returns the execution result to the operation and maintenance system 104 of the cross-communication platform, and the operation and maintenance system 104 of the cross-communication platform converts the execution result in the message analysis module and then returns the result to the chat tool.
The functions of the system are described below by taking WeChat and nailing as chat tools and Jenkins as operation and maintenance tools, for example, in combination with specific application scenarios.
Application scenarios: enterprise a hopes to realize inputting a command "construct X project" in the YY wechat group, let Jenkins automatically construct X project, and return the execution result to the wechat YY group and the nailed ZZ group respectively, let the development and test personnel in the group obtain the construction result information at the same time. In order to implement the above scenario function, the operation and maintenance system of the present cross-communication platform needs to be deployed, and the following configuration work is completed:
first, on the system plug-in page, the WeChat robot and the stapling robot plug-in are installed. In the chat robot access module, a new robot is created, the robot types are respectively selected as a WeChat robot and a nail robot, the robot name is input, the WeChat robot and the nail robot are used for scanning two-dimensional codes generated by a system respectively for login, at the moment, the system is authorized, all chat information and contact persons of the robot can be obtained, and information permission is sent to group or personal chat.
Next, a message pushing task channel is added to the message pushing module, fig. 7 is a schematic diagram of a message pushing configuration according to an embodiment of the present application, and as shown in fig. 7, the following information is input in the message pushing configuration:
api name: XX project WeChat Notification API
apikey:PROJECT_XX_WECHAT_NOTICE
Message template format $ { project name } construction is successful, time: $ time }
YY group as WeChat group name
WeChat contact name: air conditioner
Nail group name: ZZ group
Nailing contact name: air conditioner
Wherein, apikey is unique and unrepeatable, the WeChat group name and the contact can be configured alternatively or both, and the message can be pushed to the WeChat group and the personal chat according to the configuration; the message template is assembled into a text with a specific format according to the received parameters; the expansion field can be configured with message anti-shake time and the like, so that the third-party system is prevented from being repeatedly called for many times, the system memory bandwidth is prevented from being consumed, and the like. When the message push configuration data state is set to be a 'starting' state, a piece of push task information is stored in a system cache.
Finally, fig. 8 is a schematic diagram of a message listening plan configuration according to an embodiment of the present application, as shown in fig. 8, a listening plan is added to the message listening module, and the contents of the plan include the following fields:
plan name: XX project WeChat YY group Command listening
YY group as monitor group name
Monitoring the contact persons: air conditioner
Keyword data: "construction X engineering", project type "url", url: "…", … }, wherein, the keyword is a keyword for triggering a task, which cannot be repeated in the same plan, and the project type is a task transaction type, in this case, a url requests the task, and a url address is configured.
Usually, a third-party development tool provides a web request api for a web page to trigger a task, in this case, jenkins provides a task execution api. If no web api is provided, the task type needs to be set as script, and the linux script commands are spliced into a character string input. When the message monitoring plan data state is set to be the 'starting' state, the message monitoring task information is stored in the system cache.
Fig. 9 is a flowchart of an operation and maintenance method across communication platforms according to an embodiment of the present application, and as shown in fig. 9, the operation and maintenance method across communication platforms includes the following steps:
step S910, monitoring chat information in the WeChat YY group, and when the employee sends a group message "construct X project" in the WeChat YY group, pushing the information to the system through the WeChat robot interface, obtaining the information in a robot _ list ("message") method, and obtaining other data of the information, such as the sender, the sending group, the sending time and the like, so as to facilitate follow-up tracing.
Step S920, the system inquires whether the plan information has cache through keywords, if yes, the system judges to execute a web api request according to the task type, and triggers the construction task of the remote jenkins.
Step S930, Jenkins executes the task, and after the task is executed, the configured message push api hook is called, and the task result and the unique key and other information are sent to the system.
Step S940, the system inquires whether the message push information exists in the message push cache according to the unique key.
Step S950, under the condition that the message push information exists in the cache, the returned message data is formatted into a template format and sent to the WeChat YY group and the nailed nail ZZ group through the WeChat robot interface.
In addition, if the system is accessed to a plurality of chat robots, the plurality of robots can be bound in configuration message monitoring and message pushing; therefore, the system can also monitor the chat message keywords of a plurality of chat platforms, and can speak the same message to push to different groups or individuals of different chat platforms for chat.
Because links such as code submission, test environment construction and release, online environment construction and release and the like all need participation of multiple departments and multiple personnel, generally, workers in different departments need to execute command scripts on various platforms and need to pay extra synchronous information cost after completion. In addition, in many cases, such tools are only deployed inside an enterprise environment, and if a special condition occurs during the period of employee egress, it is necessary to operate the tools in the internal network, and it is impossible to implement such tools without VPN. By the operation and maintenance method and the operation and maintenance system of the cross-communication platform, the execution result is fed back to multiple departments such as development, test, operation and the like in real time and is synchronized, and outgoing employees can remotely operate the execution of internal environment tool tasks through group message commands, so that the communication cost of each department is reduced, the information synchronization efficiency is greatly improved, and the operation and maintenance tasks can be simply executed through simple commands, and the operation and maintenance efficiency is improved.
In one embodiment, a computer device is provided, and fig. 10 is a block diagram of an operation and maintenance computer device across communication platforms according to one embodiment of the present application, the computer device may be a server, and an internal block diagram thereof may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing operation and maintenance task data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a cross-communication platform operation and maintenance method.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The operation and maintenance computer equipment of the cross-communication platform triggers an operation and maintenance task corresponding to the keyword under the condition that the preset keyword is monitored; the method comprises the steps of obtaining a pushing platform according to a preset pushing task, obtaining a pushing object corresponding to the pushing platform, and determining a pushing message according to a task result of an operation and maintenance task, wherein the pushing task indicates the pushing platform corresponding to the operation and maintenance task and indicates the pushing object corresponding to the pushing platform; the push message is sent to the push object, so that scheduling and message synchronization of the operation and maintenance tasks among different communication platforms are realized, the time cost of implementation and result analysis of the operation and maintenance tasks is reduced, and the operation and maintenance efficiency is improved.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the above-described cross-communication-platform operation and maintenance method.
The operation and maintenance computer readable storage medium of the cross-communication platform triggers an operation and maintenance task corresponding to the keyword under the condition that the preset keyword is monitored; the method comprises the steps of obtaining a pushing platform according to a preset pushing task, obtaining a pushing object corresponding to the pushing platform, and determining a pushing message according to a task result of an operation and maintenance task, wherein the pushing task indicates the pushing platform corresponding to the operation and maintenance task and indicates the pushing object corresponding to the pushing platform; the push message is sent to the push object, so that scheduling and message synchronization of the operation and maintenance tasks among different communication platforms are realized, the time cost of implementation and result analysis of the operation and maintenance tasks is reduced, and the operation and maintenance efficiency is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An operation and maintenance method across communication platforms, the method comprising:
under the condition that a preset keyword is monitored, triggering an operation and maintenance task corresponding to the keyword;
acquiring a push platform according to a preset push task, acquiring a push object corresponding to the push platform, and determining a push message according to a task result of the operation and maintenance task, wherein the push task indicates the push platform corresponding to the operation and maintenance task and indicates the push object corresponding to the push platform;
and sending the push message to the push object.
2. The method of claim 1, wherein the obtaining a push platform according to a preset message push task and obtaining a push object corresponding to the push platform, and the determining a push message according to a task result of the operation and maintenance task further comprises:
acquiring a push platform and a push object corresponding to the message push platform according to a preset push task;
acquiring a message format corresponding to the pushing platform according to the pushing task;
and recombining the task result according to the message format to determine the push message.
3. The method according to claim 1, wherein in the case that a preset keyword is monitored, triggering the operation and maintenance task corresponding to the keyword further comprises:
under the condition that the keyword is monitored, acquiring a task plan corresponding to the keyword;
and triggering the operation and maintenance task according to the task plan.
4. The method according to claim 1, wherein after triggering the operation and maintenance task corresponding to the preset keyword under the condition that the preset keyword is monitored, the method comprises:
and under the condition that the keywords are monitored, calculating the time difference of the keywords appearing twice before and after, and under the condition that the time difference exceeds a preset time threshold, triggering the operation and maintenance task corresponding to the keywords.
5. The method according to claim 1, wherein the triggering the task corresponding to the keyword in the case that the preset keyword is monitored comprises:
inquiring a cache under the condition of monitoring a preset keyword, and calling the operation and maintenance task in the cache under the condition that the operation and maintenance task corresponding to the keyword exists in the cache.
6. The method of claim 1, wherein the operation and maintenance task comprises a web task type and a script task type.
7. An automatic operation and maintenance system across communication platforms is characterized by comprising a communication module, a message pushing module and a message monitoring module,
the message monitoring module monitors chat contents through the chat module, and triggers an operation and maintenance task corresponding to a preset keyword under the condition that the preset keyword appears;
the message pushing module is used for acquiring a pushing platform and a pushing object corresponding to the pushing platform according to a preset pushing task, determining a pushing message according to a task result of the task, and sending the pushing message to the pushing object through the chatting module.
8. The system according to claim 7, wherein the message pushing module is further configured to obtain a pushing platform and a pushing object corresponding to the message pushing platform according to a preset pushing task; acquiring a message format corresponding to the pushing platform according to the pushing task; and recombining the task result according to the message format, and determining the feedback message.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010332192.1A 2020-04-24 2020-04-24 Operation and maintenance method, system, computer equipment and storage medium for cross-communication platform Pending CN111698280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010332192.1A CN111698280A (en) 2020-04-24 2020-04-24 Operation and maintenance method, system, computer equipment and storage medium for cross-communication platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010332192.1A CN111698280A (en) 2020-04-24 2020-04-24 Operation and maintenance method, system, computer equipment and storage medium for cross-communication platform

Publications (1)

Publication Number Publication Date
CN111698280A true CN111698280A (en) 2020-09-22

Family

ID=72476582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010332192.1A Pending CN111698280A (en) 2020-04-24 2020-04-24 Operation and maintenance method, system, computer equipment and storage medium for cross-communication platform

Country Status (1)

Country Link
CN (1) CN111698280A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451831A (en) * 2016-05-30 2017-12-08 北京京东尚科信息技术有限公司 Task method for pushing
CN107580073A (en) * 2017-10-19 2018-01-12 世纪龙信息网络有限责任公司 Realize the method and device of targeted customer's message push
CN109190008A (en) * 2018-07-26 2019-01-11 挖财网络技术有限公司 Automate operation management method
CN109408324A (en) * 2018-09-29 2019-03-01 阿里巴巴集团控股有限公司 The method, apparatus and system of monitoring system software operation
WO2019093591A1 (en) * 2017-11-09 2019-05-16 연세대학교 산학협력단 Information management system for construction project information management automation, and construction project information management method using chat platform
CN110929133A (en) * 2019-11-29 2020-03-27 北京金山云网络技术有限公司 Operation and maintenance information query system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451831A (en) * 2016-05-30 2017-12-08 北京京东尚科信息技术有限公司 Task method for pushing
CN107580073A (en) * 2017-10-19 2018-01-12 世纪龙信息网络有限责任公司 Realize the method and device of targeted customer's message push
WO2019093591A1 (en) * 2017-11-09 2019-05-16 연세대학교 산학협력단 Information management system for construction project information management automation, and construction project information management method using chat platform
CN109190008A (en) * 2018-07-26 2019-01-11 挖财网络技术有限公司 Automate operation management method
CN109408324A (en) * 2018-09-29 2019-03-01 阿里巴巴集团控股有限公司 The method, apparatus and system of monitoring system software operation
CN110929133A (en) * 2019-11-29 2020-03-27 北京金山云网络技术有限公司 Operation and maintenance information query system and method

Similar Documents

Publication Publication Date Title
CN109634730B (en) Task scheduling method, device, computer equipment and storage medium
CN111694797B (en) File uploading and analyzing method, device, server and medium
CN107241315B (en) Access method and device of bank gateway interface and computer readable storage medium
CN109697112B (en) Distributed intensive one-stop operating system and implementation method
CN110334126A (en) Timed task processing method, device and computer equipment based on Spring MVC
CN112564980B (en) Service monitoring method and system based on micro-service architecture
CN110764894A (en) Timed task management method, device, equipment and storage medium
CN110851159A (en) Business rule updating method and device, computer equipment and storage medium
CN113778486A (en) Containerization processing method, device, medium and equipment for code pipeline
CN112817828A (en) GTP monitoring method, device and equipment
CN110932918A (en) Log data acquisition method and device and storage medium
CN113377668A (en) Automatic testing method and device for service interface and computer equipment
CN110502242B (en) Code automatic generation method and device, computer equipment and storage medium
CN117234760B (en) DevOps platform creation method, system, storage medium and device
CN112132652B (en) Order information acquisition method and device, computer equipment and storage medium
CN113377669A (en) Automatic testing method and device, computer equipment and storage medium
CN111698280A (en) Operation and maintenance method, system, computer equipment and storage medium for cross-communication platform
US10922065B1 (en) Methods and systems for identifying software product installation instances
CN117119078A (en) Privacy task scheduling method and device based on Kubernetes cluster interconnection scheduling framework
CN114090268B (en) Container management method and container management system
CN113721918B (en) Method and device for compiling and making software source based on koji
CN110166528B (en) Method and device for preventing node change notification from being lost and computer equipment
CN114610413A (en) Method, device, equipment and storage medium for executing synchronous and asynchronous tasks based on Java
CN115543491A (en) Microservice processing method and device
CN110889539B (en) Method, system and device for organizing spot market clearing cases based on cloud platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Yu Haiqing

Inventor after: Zhu Jieqiang

Inventor after: Lei Fengwei

Inventor before: Yu Haiqing

CB03 Change of inventor or designer information
TA01 Transfer of patent application right

Effective date of registration: 20210319

Address after: Room 406-10, building 2, ChuanHua Kechuang building, ningwei street, Xiaoshan District, Hangzhou, Zhejiang 311200

Applicant after: Hangzhou Ruijiang Technology Co.,Ltd.

Address before: Room 201-56, Xiaoshan science and Technology City, building 1, ChuanHua Kechuang building, Xiaoshan District, Hangzhou, Zhejiang 311200

Applicant before: Hangzhou CHUANHUA Intelligent Manufacturing Technology Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20200922

RJ01 Rejection of invention patent application after publication