CN112214375B - Alarm method and device for selected component, computer equipment and storage medium - Google Patents

Alarm method and device for selected component, computer equipment and storage medium Download PDF

Info

Publication number
CN112214375B
CN112214375B CN202011092620.4A CN202011092620A CN112214375B CN 112214375 B CN112214375 B CN 112214375B CN 202011092620 A CN202011092620 A CN 202011092620A CN 112214375 B CN112214375 B CN 112214375B
Authority
CN
China
Prior art keywords
component
abnormal
information
selection
components
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.)
Active
Application number
CN202011092620.4A
Other languages
Chinese (zh)
Other versions
CN112214375A (en
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202011092620.4A priority Critical patent/CN112214375B/en
Publication of CN112214375A publication Critical patent/CN112214375A/en
Application granted granted Critical
Publication of CN112214375B publication Critical patent/CN112214375B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/577Assessing vulnerabilities and evaluating computer system security
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application discloses a warning method for selected components, which comprises the following steps: acquiring a selected component based on a component selection interface, wherein the selected component is used for constructing a target project; generating a component selection record according to the selected component, and associating the component selection record with the user account corresponding to the target project; monitoring whether the components in the component selection records are abnormal or not; if yes, obtaining abnormal information of the abnormal component in the component selection record, and determining a replaceable component with the same function as the abnormal component; generating alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component; and outputting the alarm information to the terminal equipment associated with the user account. The application also discloses an alarm device, computer equipment and a computer readable storage medium of the selected component. The method and the device can effectively avoid the risk of the target project caused by abnormal components.

Description

Alarm method and device for selected component, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an alarm method for selecting a component, an alarm device for selecting a component, a computer device, and a computer-readable storage medium.
Background
The Component (Component) is a simple encapsulation of data and methods. As in C + + Builder, a component is a specific object derived from TComponent. The components may have their own properties and methods. An attribute is a simple visitor to component data. The method is some simple and visible function of the component. The use of components may enable drag-and-drop programming, fast property handling, and true object-oriented design.
After a user selects some assemblies to build a target project, after a development enterprise of the selected assemblies gives up maintenance of the assemblies, system risks brought by the assemblies are increased, even if bugs occur, the bugs are difficult to repair, the user still continues to use the assemblies if the user cannot know the abnormal state of the assemblies in time, and undoubtedly, the target project is at a great risk.
The above is only for the purpose of assisting understanding of the technical solutions of the present application, and does not represent an admission that the above is prior art.
Disclosure of Invention
The present application mainly aims to provide an alarm method for a selected component, an alarm apparatus for a selected component, a computer device, and a computer-readable storage medium, and aims to solve the problem of how to avoid a risk of a target item due to an abnormal component.
In order to achieve the above object, the present application provides an alarm method for a selected component, comprising the following steps:
acquiring a component selected based on a component selection interface, wherein the selected component is used for constructing a target project;
generating a component selection record according to the selected component, and associating the component selection record with the user account corresponding to the target project;
monitoring whether the components in the component selection records are abnormal or not;
if yes, obtaining abnormal information of the abnormal component in the component selection record, and determining a replaceable component with the same function as the abnormal component;
generating alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component;
and outputting the alarm information to the terminal equipment associated with the user account.
Further, after the step of determining an alternative component having the same function as the abnormal component, the method further includes:
determining other components except the abnormal component in the target project according to the component information in the target project corresponding to the component selection record;
constructing a virtual target project according to the alternative components and the other components;
detecting whether the virtual target project operates normally;
if yes, executing the step of generating alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component;
and if not, generating alarm information corresponding to the abnormal component according to the abnormal information.
Further, the step of monitoring whether the component in the component option record is abnormal includes:
monitoring whether a supplier corresponding to the component in the component selection record issues abnormal information of the component or not;
if yes, judging that the component is abnormal;
if not, the component is judged to be normal.
Further, the step of monitoring whether the component in the component selection record is abnormal includes:
monitoring the abnormal error reporting number of the component in the component selection record;
detecting whether the abnormal error reporting number of the component is larger than a preset threshold value or not;
if yes, judging that the component is abnormal;
if not, the component is judged to be normal.
Further, before the step of generating a component selection record according to the selected component and associating the component selection record with the user account corresponding to the target item, the method further includes:
taking the selected component as a target component, and acquiring component selection records of other user accounts selecting the target component;
selecting components in the record according to components of other user accounts to generate component recommendation information;
and displaying the component recommendation information in the component selection interface.
Further, before the step of obtaining the component selected based on the component selection interface, the method further includes:
acquiring attribute information of the target project, wherein the attribute information comprises project categories, development languages and development environments;
acquiring a component corresponding to the attribute information;
and displaying the acquired component in the component selection interface.
Further, the alarm method for the selected component further comprises the following steps:
when a component selection instruction is detected on the basis of the component selection interface, detecting whether abnormal information exists in a component targeted by the component selection instruction;
if yes, generating prompt information according to the abnormal information of the component aimed at by the component selection instruction, and displaying the prompt information on the component selection interface.
In order to achieve the above object, the present application further provides an alarm device for selecting a component, including:
the system comprises an acquisition module, a selection module and a selection module, wherein the acquisition module is used for acquiring components selected based on a component selection interface, and the selected components are used for constructing target projects;
the association module is used for generating a component selection record according to the selected component and associating the component selection record with the user account corresponding to the target project;
the monitoring module is used for monitoring whether the components in the component selection records are abnormal or not;
the information module is used for acquiring the abnormal information of the abnormal component in the component selection record and determining the replaceable component with the same function as the abnormal component if the abnormal component is in the component selection record;
the processing module is used for generating alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component;
and the warning module is used for outputting the warning information to the terminal equipment associated with the user account.
To achieve the above object, the present application also provides a computer device, comprising:
the computer equipment comprises a memory, a processor and an alarm program of the selected component, wherein the alarm program of the selected component is stored on the memory and can run on the processor, and when being executed by the processor, the steps of the alarm method of the selected component are realized.
In order to achieve the above object, the present application also provides a computer readable storage medium, in which an alarm program of an optional component is stored, and when the alarm program of the optional component is executed by a processor, the steps of the alarm method of the optional component are implemented.
According to the alarming method for the selected component, the alarming device for the selected component, the computer equipment and the computer readable storage medium, once the selected component of the user is monitored to be abnormal, the alarming information of the abnormal component is generated and notified to the terminal equipment of the user, so that the user can receive the related alarming information at the first time and take corresponding measures in time, risks of target projects caused by abnormal components are avoided, and therefore the loss of the user caused by abnormal changes of the components is effectively avoided.
Drawings
FIG. 1 is a schematic diagram illustrating the steps of an alarm method for selected components in an embodiment of the present application;
FIG. 2 is a schematic block diagram of an alarm device with selected components in an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
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 and not restrictive on the broad application.
Referring to fig. 1, in an embodiment, the method for alarming the selected component includes:
and S10, acquiring the selected component based on the component selection interface, wherein the selected component is used for constructing the target project.
And S20, generating a component selection record according to the selected component, and associating the component selection record with the user account corresponding to the target project.
And S30, monitoring whether the components in the component selection records are abnormal or not.
And S40, if so, acquiring abnormal information of the abnormal component in the component selection record, and determining the replaceable component with the same function as the abnormal component.
And S50, generating alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component.
And S60, outputting the alarm information to the terminal equipment associated with the user account.
In this embodiment, the execution terminal of the embodiment may be a computer device, such as a component selection system.
As described in step S10, the component selection interface provided by the terminal may include multiple components with different functions, and a component with the same function has at least one version, and for a specific component, all historical versions of the component may be included.
Optionally, the user may select a desired component in the component selection interface for constructing the target project. The target project can be a certain function page under a system, and comprises project categories such as page design, front end, back end, test, operation and maintenance and the like; the target item may be an applet, a micro-application, an APP (application), or the like. Of course, the user may build the target item from scratch, or may upgrade or replace a component selected from the target item based on an existing target item.
Optionally, after the user selects the component based on the component selection interface to construct the target project, the component selected by the user is acquired.
In step S20, after the user selects a component based on the component selection interface to construct the target project, the component information of the component selected by the user is obtained, a component selection record of the user is generated according to the component information, and then the component selection record is stored in association with the user account corresponding to the target project.
It should be understood that the user will log in the corresponding user account before using the component selection interface of the terminal to select the component. The user account is used for carrying out identity authentication on the user and also used for storing relevant user information of the user. Meanwhile, target items constructed by the user based on the selected components are recorded in the user account, so that the target items constructed by the user are in correlation correspondence with the user account of the user.
In step S30, the terminal may continuously pay attention to the components in the component selection record in each user account, and constantly monitor whether the components are abnormal.
The condition for determining the component exception may be that the component no longer has a maintenance service (for example, a vendor of the component decides to abandon maintenance of the component in the future), or that the component has a significant vulnerability, and the like.
Optionally, the terminal may monitor whether the components are abnormal by monitoring whether a supplier corresponding to each component issues abnormal information of the components in the component selection record. When a supplier for developing the component actively discovers abnormal conditions such as a leak of the component, or the supplier decides to give up maintaining the developed component in the future, the supplier can issue the abnormal information of the component to the terminal. When the terminal receives abnormal information of the component issued by a supplier, judging that the component corresponding to the abnormal information is abnormal; otherwise, the terminal still judges the component to be normal.
Or when the user who selects a certain component finds that the component is abnormal or has a leak, the error report information of the component can be uploaded to the terminal, and the terminal counts the abnormal error report number of the component uploaded by each user. And the terminal judges whether the abnormal component exists in the component selection record or not by monitoring the abnormal error reporting number of the component in the component selection record. When the terminal detects that the abnormal error reporting number of a certain component is larger than a preset threshold value, judging that the component is abnormal; otherwise, the component is determined to be normal.
The preset threshold value can be set according to the actual situation, such as 3 times, 5 times, and the like. Or, the preset threshold may also be a preset proportion threshold of the user who selects the component, and whether the corresponding component is abnormal is determined by determining whether the total user proportion of the user who uploads the error information exceeds the preset proportion threshold. For example, when the preset proportion threshold is 10%, if more than 10% of users report the component in error, the component is determined to be abnormal. It should be understood that the preset proportional threshold may be set according to actual requirements, such as 10%, 20%, etc.
Or when the terminal detects that a record that the user reports an error exists in a certain component and the time length that the component supplier responsible for maintaining the component does not maintain the component exceeds the preset time length, the component is judged to be abnormal. It should be understood that the preset time period can be set according to actual needs, such as a day, a week, etc.
The collection source of general subassembly information mainly relies on sharing and arrangement of the supplier that each subassembly corresponds, can avoid the subassembly supplier to the unusual relevant information update of subassembly untimely like this, and lead to the user can't know the unusual condition of subassembly fast and take place.
In step S40, when the terminal monitors that there is an abnormal component in the component selection record, the terminal obtains the abnormal information of the abnormal component in the component selection record. The abnormal information includes specific reasons of component abnormality, such as that the component no longer has maintenance service, the component has a bug, and the like.
Optionally, the terminal may update the related information of the component when the component selection interface provides the currently abnormal component, and mark the abnormal information of the component in the related information of the component.
Optionally, when the terminal detects that the component is abnormal in the component selection record of the user, it may determine an alternative component having the same function as the abnormal component. The terminal can acquire other components which can realize the function and the same development language and development environment as the abnormal component according to the function which can be realized by the abnormal component, and the components are used as replaceable components. The terminal may be an information base in which components of the same development language, development environment, and function are recorded in advance, and when the terminal detects that a certain component is abnormal, a normal component (a component which is not marked as abnormal) may be acquired from the information base corresponding to the abnormal component as a replaceable component.
Optionally, the terminal may further perform big data analysis to obtain component selection records of other users who select the same other components as the current user except for the abnormal component (or obtain component selection records of other users who set up the same target item as the current user). And then further acquiring the component selected by other users for replacing the abnormal component as a replaceable component according to the component selection records of other users.
Optionally, after determining the replaceable component, the terminal obtains replaceable component information of the replaceable component, where the replaceable component information at least includes a name of the replaceable component and related function information of the replaceable component.
Of course, the information of the alternative component may also be provided by the supplier corresponding to the abnormal component. After the supplier is responsible for developing the abnormal component, the supplier can upload the information of the replaceable component at the same time when uploading the corresponding abnormal information to the terminal.
In step S50, after the terminal obtains the abnormal information of the abnormal component, the terminal generates the alarm information of the abnormal component according to the component name and the abnormal information of the abnormal component.
Optionally, if the terminal further obtains an alternative component having the same function as the abnormal component, the generated warning information may further include information of the alternative component, that is, the warning information corresponding to the abnormal component is generated according to the abnormal information and the information of the alternative component.
Therefore, by recommending the replaceable component, the abnormal component can be conveniently and quickly replaced by a user.
After finding that a certain component is abnormal, the terminal can also detect whether a replaceable component corresponding to the abnormal component exists in the current component library or not. If the terminal detects that the abnormal component has the replaceable component, the abnormal component can be off-shelf processed; if the terminal does not find the abnormal component to have the replaceable component temporarily, the component is retained temporarily, and the abnormal information of the component is marked.
As shown in step S60, the user may also set a terminal device for receiving notification information (including warning information) in the user account in advance, where the terminal device may be a smart phone, a computer, or the like.
When the terminal detects that an abnormal component exists in the components of the user selection record, and generates the alarm information of the abnormal component, the terminal equipment associated with the user account is determined, and the alarm information is sent to the terminal equipment so as to perform early warning prompt of component abnormality for the user.
Of course, when the terminal detects that a certain component is abnormal, all users who select the abnormal component can be searched in all the stored component selection records, and the warning information of the abnormal component is sent to the users.
Therefore, once the abnormity of the component selected by the user is monitored, the alarm information of the abnormal component is generated and notified to the terminal equipment of the user, the user can receive the related alarm information at the first time, and the alarm information also comprises the information of the replaceable component which can be used for replacing the abnormal component, so that the user can take corresponding measures in time, the risk of the target item caused by the abnormity of the component is avoided, and the loss of the user caused by the abnormal change of the component is effectively avoided.
In an embodiment, on the basis of the above embodiment, after the step of determining an alternative component having the same function as the abnormal component, the method further includes:
and S70, determining other components except the abnormal component in the target item according to the component information in the target item corresponding to the component selection record.
Step S71, constructing a virtual target project according to the replaceable component and the other components;
and step S72, detecting whether the virtual target item runs normally.
And S73, if yes, executing the step of generating alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component.
And S74, if not, generating alarm information corresponding to the abnormal component according to the abnormal information.
In this embodiment, after determining the replaceable component of the abnormal component, the terminal may further determine a target item corresponding to a component selection record in which the abnormal component is located (the component selection record is generated based on a component selected by a user for constructing the target item, and therefore the component selection record also corresponds to the target item), and acquire component composition information of the target item, where the component composition information includes information of all components used for constructing the target item.
According to the component composition information of the target item, other components except the abnormal component in the target item can be determined.
And then combining other components in the target project with the replaceable components to construct a virtual target project. Deploying the virtual target project on the virtual machine, and then testing whether the running condition of the virtual target project is normal or not.
The terminal can allow the user to store the test cases in a terminal database, and when the terminal needs to test the virtual target project, the terminal can further call the test cases and test whether the virtual target project runs normally, so that whether the replaceable component can be perfectly fused into the target project or not can be known through testing.
If the terminal detects that the virtual target project operation condition of the abnormal component replaced by the replaceable component is good, the replaceable component is allowed to be recommended to the user, and the test information of the replaceable component is output, so that the user can replace the abnormal component by the replaceable component conveniently and quickly. And if the terminal detects that the virtual target item replacing the abnormal component by the replaceable component cannot run, the replaceable component is not recommended to the user.
Optionally, if the terminal detects that the operation of the virtual target item reaches the expectation, it determines that the operation of the virtual target item is normal, and performs the step of generating the warning information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component (step S50), so as to push the replaceable component used by the virtual target item to the user who selects the abnormal component, and simultaneously output the relevant virtual operation data of the replaceable component for the user to refer to.
Optionally, if the terminal detects that the operation of the virtual target item does not reach the expectation (or the operation fails), it determines that the virtual target item is not operated normally, then directly generates the alarm information corresponding to the abnormal component according to the abnormal information (that is, the finally generated alarm information does not include the information of the replaceable component), and outputs the alarm information to the terminal device associated with the user account.
Therefore, the replaceable component is utilized to construct the virtual target item in advance, and the replaceable component of the abnormal component is recommended to the user only when the virtual target item runs normally, so that the abnormal component can be replaced conveniently by the user, and the recommendation reliability of the replaceable component can be improved.
In an embodiment, on the basis of the above embodiment, before the step of generating a component selection record according to the selected component and associating the component selection record with the user account corresponding to the target item, the method further includes:
and S80, taking the selected component as a target component, and acquiring a component selection record of other user accounts selecting the target component.
And S81, selecting components in the record according to the components of other user accounts, and generating component recommendation information.
And S82, displaying the component recommendation information in the component selection interface.
In this embodiment, the terminal is provided with the associated recommendation of the component, and after the terminal detects that the user selects a certain component, according to the history, the terminal queries the component selection information of the other user accounts that have selected the component in the history, and when the component selection information records that other users have selected the version component, the components with which functions are selected are often selected.
Then the terminal further obtains the components of other functions selected by other users, generates component recommendation information, and displays the component recommendation information in a component selection interface (for example, recommendation display in the form of a floating frame) so as to recommend the components of other functions to the current user.
Or the terminal records component information of popular items (items enthusiastically built by most users and obtained by recording the building times of various items), when enough components are selected by the users, the terminal can analyze the target item which the users want to build currently, then the terminal obtains the component information of the target item, and after other functional components which are not selected by the users temporarily in the component information are confirmed (namely, components corresponding to other functions except the target component; it should be understood that one complete target item comprises a plurality of functional components), component recommendation information is generated and displayed in a component selection interface, so that the residual required functional components for building the target item and the preferred version of the components are pushed to the users.
Thus, the efficiency of the user for building the target project can be improved.
In an embodiment, on the basis of the foregoing embodiment, before the step of obtaining the component selected based on the component selection interface, the method further includes:
and S90, acquiring attribute information of the target project, wherein the attribute information comprises project types, development languages and development environments.
And step S91, acquiring a component corresponding to the attribute information.
And S92, displaying the acquired component in the component selection interface.
In this embodiment, the terminal may obtain the component corresponding to the attribute information according to the attribute information of the target item that the user wants to build currently, and display the component in the component selection interface, so as to facilitate the user to select the required component quickly. Wherein the attribute information includes a project category, a development language, and a development environment.
The project categories comprise page design, front end, back end, test, operation and maintenance and other project categories; and the development language may be C + +, C #, java, PHP, etc. Further, different development languages may have multiple development environments, for example, the Java language may have multiple JDK (Java development kit) environments.
Optionally, the project category, the development language, and the development environment of the target project may be directly input by the user, or the terminal may be provided with a graphical interface, and based on the selection of the user on different graphical interfaces, the terminal may correspondingly obtain attribute information corresponding to the graphical interfaces as the attribute information of the target project, and at the same time, the user may select components step by step.
Optionally, the component selection interface may include a multi-level graphical interface.
In the primary graphical interface, options of each project category are provided, the options include project categories such as page design, front end, back end, test, operation and maintenance, a user can select the secondary graphical interface under the project category needing to enter based on the options, and options of each development language of the project category are provided in the secondary graphical interface. And after the user selects the development language in the secondary graphical interface, entering a tertiary graphical interface corresponding to the development language. The three-level graphical interface is provided with options of various components with various functions written by various application selected development languages or options of development environments corresponding to various components.
For example, if a user selects a back-end page on the first-level graphical interface, the user enters a second-level graphical interface corresponding to the development of the back-end page, and options for writing a development language of the back-end page are provided in the second-level graphical interface corresponding to the development of the back-end page, where the options are: c + +, C language, C # language, java language, PHP language, etc. And if the user further selects the Java language from the secondary graphical interface, entering a tertiary graphical interface corresponding to the Java language. And various options of components with various functions written by applying Java language, such as various popular components of fastjson, ignite, kafka, and druid, are provided on the three-level graphical interface corresponding to the Java language.
Optionally, after the user selects an option of the development environment corresponding to a certain component in the three-level graphical interface, the user can further enter the four-level graphical interface corresponding to the component, and each version of the component in the development environment is provided in the four-level graphical interface. For example, if the ignite component is selected and the development environment selection is JDK1.8.0_73, then the four-level graphical interface is further entered. The four-level graphic interface is provided with JDK1.8.0_73 environment, the ignite components of each version of the environment are adapted to, and the functions of different versions of the ignite components and the function change points corresponding to the previous version are also presented one by one.
Optionally, when the terminal displays the relevant information of each version of the component, maintenance information of the component may also be displayed, for example, whether the component is still maintained; furthermore, if a certain component does not have maintenance service any more, the abnormal information of the component is correspondingly updated into the component information.
And/or the terminal records and displays the selected times of the components of each version so as to recommend hot components to the user. Further, the terminal can also perform ranking display of hot components according to the number of times of selection of each version of components.
Therefore, a user can conveniently select the assembly to build the target project.
In an embodiment, on the basis of the above embodiment, the method for alarming the selected component further includes:
and S100, when the component selection instruction is detected based on the component selection interface, detecting whether the component targeted by the component selection instruction has abnormal information.
And S101, if so, generating prompt information according to the abnormal information of the component targeted by the component selection instruction, and displaying the prompt information on the component selection interface.
In this embodiment, after the user selects a component of a certain version, if the terminal detects that the component is an abnormal component, an inquiry prompt should be further sent to the user to prompt the user whether to continue to select the current abnormal component.
Optionally, when the component selection instruction is detected based on the component selection interface, whether the component to which the component selection instruction currently aims has abnormal information is detected. If the terminal detects that the component targeted by the component selection instruction has abnormal information, the terminal generates prompt information according to the abnormal information of the component and outputs the prompt information on the component selection interface (for example, the prompt information is output on the component selection interface in the form of a suspension frame) so as to prompt a user whether to continuously select the component with the abnormal information.
The terminal can record the relevant information base of various abnormal components, so as to obtain and mark the abnormal components.
Therefore, when the component selected by the user belongs to the abnormal component, the prompt can be timely given to the user, and the user is prevented from being lost due to the selection of the abnormal component.
Referring to fig. 2, an embodiment of the present application further provides an alarm device 10 with optional components, including:
the acquisition module 11 is configured to acquire a component selected based on a component selection interface, where the selected component is used to construct a target project;
the association module 12 is configured to generate a component selection record according to the selected component, and associate the component selection record with the user account corresponding to the target item;
the monitoring module 13 is used for monitoring whether the components in the component selection records are abnormal or not;
an information module 14, configured to, if yes, obtain abnormal information of the abnormal component in the component selection record, and determine a replaceable component having the same function as the abnormal component;
the processing module 15 is configured to generate alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component;
and the alarm module 16 is configured to output the alarm information to the terminal device associated with the user account.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational 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 the alarm programs of the selected components. 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 method of alerting selected components.
It will be understood by those skilled in the art that the structure shown in fig. 3 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation to the computer device to which the present application is applied.
In addition, the present application also provides a computer readable storage medium, which includes an alarm program of an optional component, and when the alarm program of the optional component is executed by a processor, the steps of the alarm method of the optional component described in the above embodiment are implemented. It is to be understood that the computer readable storage medium in this embodiment may be a volatile readable storage medium or a non-volatile readable storage medium.
In summary, in the warning method for the selected component, the warning device for the selected component, the computer device, and the storage medium provided in the embodiments of the present application, once it is monitored that the component selected by the user is abnormal, warning information of the abnormal component is generated and notified to the terminal device of the user, so that the user can receive related warning information at the first time and take corresponding measures in time, thereby avoiding a risk caused by an abnormal change of the component in a target project, and effectively avoiding a loss caused by an abnormal change of the component to the user.
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 provided herein and used in the examples may include non-volatile and/or volatile memory. 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 (SSRDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, apparatus, article, or method that comprises the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all the equivalent structures or equivalent processes that can be directly or indirectly applied to other related technical fields by using the contents of the specification and the drawings of the present application are also included in the scope of the present application.

Claims (8)

1. An alarm method for a selected component, comprising:
acquiring a selected component based on a component selection interface, wherein the selected component is used for constructing a target project;
generating a component selection record according to the selected component, and associating the component selection record with the user account corresponding to the target project;
monitoring whether the components in the component selection records are abnormal or not;
if yes, obtaining abnormal information of the abnormal component in the component selection record, and determining a replaceable component with the same function as the abnormal component;
generating alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component;
outputting the alarm information to terminal equipment associated with the user account;
before the step of generating a component selection record according to the selected component and associating the component selection record with the user account corresponding to the target item, the method further comprises the following steps:
taking the selected component as a target component, and acquiring component selection records of other user accounts selecting the target component;
generating component recommendation information according to component selection records of other user accounts, and displaying the component recommendation information in the component selection interface; further, when enough components are selected by the user, analyzing the target item which the user wants to set up currently, acquiring component composition information of the target item, generating component recommendation information, and displaying the component recommendation information in the component selection interface;
after the step of determining the replaceable component having the same function as the abnormal component, the method further comprises the following steps:
determining other components except the abnormal component in the target project according to the component information in the target project corresponding to the component selection record;
constructing a virtual target project according to the alternative components and the other components;
detecting whether the virtual target project operates normally;
if yes, executing the step of generating alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component;
and if not, generating alarm information corresponding to the abnormal component according to the abnormal information.
2. The method for alerting of a selected component of claim 1 wherein said step of monitoring said component selection record for anomalies comprises:
monitoring whether the supplier corresponding to the component in the component selection record issues the abnormal information of the component or not;
if yes, judging that the component is abnormal;
if not, the component is judged to be normal.
3. The method for alerting of a selected component of claim 1 wherein the step of monitoring the component selection record for anomalies comprises:
monitoring the abnormal error reporting number of the component in the component selection record;
detecting whether the abnormal error reporting number of the component is larger than a preset threshold value or not;
if yes, judging that the component is abnormal;
if not, the component is judged to be normal.
4. The method for alerting of a selected component of claim 1 wherein prior to the step of obtaining the selected component based on the component selection interface, further comprising:
acquiring attribute information of the target project, wherein the attribute information comprises project categories, development languages and development environments;
acquiring a component corresponding to the attribute information;
and displaying the acquired component in the component selection interface.
5. The optional component alert method according to any of claims 1-4, wherein the optional component alert method further comprises:
when a component selection instruction is detected based on the component selection interface, detecting whether abnormal information exists in a component targeted by the component selection instruction;
if yes, generating prompt information according to the abnormal information of the component aimed at by the component selection instruction, and displaying the prompt information on the component selection interface.
6. An alarm device for selected components, comprising:
the system comprises an acquisition module, a selection module and a selection module, wherein the acquisition module is used for acquiring components selected based on a component selection interface, and the selected components are used for constructing target projects;
the association module is used for generating a component selection record according to the selected component and associating the component selection record with the user account corresponding to the target project;
the monitoring module is used for monitoring whether the components in the component selection records are abnormal or not;
the information module is used for acquiring the abnormal information of the abnormal component in the component selection record and determining the replaceable component with the same function as the abnormal component if the abnormal component is in the component selection record;
the determining unit is used for determining other components except the abnormal component in the target item according to the component information in the target item corresponding to the component selection record;
a construction unit for constructing a virtual target project from the replaceable component and the other components;
the detection unit is used for detecting whether the virtual target item runs normally or not;
if yes, executing the step of generating alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component;
an abnormal information generating unit, configured to generate alarm information corresponding to the abnormal component according to the abnormal information if the abnormal component is not detected;
the processing module is used for generating alarm information corresponding to the abnormal component according to the abnormal information and the replaceable component information of the replaceable component;
the warning module is used for outputting the warning information to terminal equipment associated with the user account;
the acquisition and selection module is used for taking the selected component as a target component and acquiring component selection records of other user accounts which select the target component;
the device comprises an acquisition recommendation display module, a component selection interface and a component selection interface, wherein the acquisition recommendation display module is used for generating component recommendation information according to component selection records of other user accounts and displaying the component recommendation information in the component selection interface; further, when enough components are selected by the user, the target item which the user wants to set up currently is analyzed, component composition information of the target item is obtained, component recommendation information is generated, and the component recommendation information is displayed in the component selection interface.
7. A computer device comprising a memory, a processor and an optional component alert program stored on the memory and executable on the processor, the optional component alert program when executed by the processor implementing the steps of the optional component alert method as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that an alert program of an optional component is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the alert method of an optional component as claimed in any one of claims 1 to 5.
CN202011092620.4A 2020-10-13 2020-10-13 Alarm method and device for selected component, computer equipment and storage medium Active CN112214375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011092620.4A CN112214375B (en) 2020-10-13 2020-10-13 Alarm method and device for selected component, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011092620.4A CN112214375B (en) 2020-10-13 2020-10-13 Alarm method and device for selected component, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112214375A CN112214375A (en) 2021-01-12
CN112214375B true CN112214375B (en) 2023-02-03

Family

ID=74053976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011092620.4A Active CN112214375B (en) 2020-10-13 2020-10-13 Alarm method and device for selected component, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112214375B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542399A (en) * 2018-10-25 2019-03-29 深圳市金证科技股份有限公司 Software development methodology, device, terminal device and computer readable storage medium
CN111596912A (en) * 2020-05-22 2020-08-28 北京无线电测量研究所 Non-programming visual construction system and method for radar display control software based on component library

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7058924B2 (en) * 2002-04-12 2006-06-06 International Business Machines Corporation Facilitating hosting of applications
US8473893B2 (en) * 2008-09-30 2013-06-25 Accurev, Inc. Integration of external software analysis processes with software configuration management applications
US8635611B2 (en) * 2007-11-16 2014-01-21 Microsoft Corporation Creating virtual applications
US20100192121A1 (en) * 2009-01-23 2010-07-29 Microsoft Corporation Debugging remote files using a virtual project
US8843585B1 (en) * 2010-07-06 2014-09-23 Midnight Studios, Inc. Methods and apparatus for generating a unique virtual item

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542399A (en) * 2018-10-25 2019-03-29 深圳市金证科技股份有限公司 Software development methodology, device, terminal device and computer readable storage medium
CN111596912A (en) * 2020-05-22 2020-08-28 北京无线电测量研究所 Non-programming visual construction system and method for radar display control software based on component library

Also Published As

Publication number Publication date
CN112214375A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN110413506B (en) Test case recommendation method, device, equipment and storage medium
CN109446068B (en) Interface test method, device, computer equipment and storage medium
US20110041120A1 (en) Predicting defects in code
US10817140B2 (en) Sequential data
CN111090592A (en) Automatic testing method of buried point, terminal and readable storage medium
CN110362479B (en) System upgrade test method and system
CN112115005B (en) Test data acquisition method and device, computer equipment and storage medium
CN105183658A (en) Software code testing method and device
CN113900962B (en) Code difference detection method and device
Bán et al. Recognizing antipatterns and analyzing their effects on software maintainability
CN108399125B (en) Automatic testing method and device, computer equipment and storage medium
CN112214375B (en) Alarm method and device for selected component, computer equipment and storage medium
CN109508203B (en) Method, device and system for determining version consistency
CN111444093B (en) Method and device for determining quality of project development process and computer equipment
CN110865939B (en) Application program quality monitoring method, device, computer equipment and storage medium
JP7092203B2 (en) Eligibility automatic judgment system
CN114036054A (en) Code quality evaluation method, device, equipment, medium and program product
CN113572900A (en) Outbound test method, device, computer equipment and computer readable storage medium
Doganaksoy et al. Getting the right data up front: A key challenge
US20160275002A1 (en) Image capture in application lifecycle management for documentation and support
CN113672497A (en) Method, device and equipment for generating non-buried point event and storage medium
CN114817077B (en) Method, system and network equipment for judging test quality and specification
CN116932414B (en) Method and equipment for generating interface test case and computer readable storage medium
CN110750418B (en) Information processing method, electronic equipment and information processing system
CN109491696B (en) Method, device and system for determining incremental source code

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
GR01 Patent grant
GR01 Patent grant