CN115190016A - System general switch configuration method, device, equipment and storage medium - Google Patents

System general switch configuration method, device, equipment and storage medium Download PDF

Info

Publication number
CN115190016A
CN115190016A CN202210875966.4A CN202210875966A CN115190016A CN 115190016 A CN115190016 A CN 115190016A CN 202210875966 A CN202210875966 A CN 202210875966A CN 115190016 A CN115190016 A CN 115190016A
Authority
CN
China
Prior art keywords
service
switch
preset
service content
content
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.)
Granted
Application number
CN202210875966.4A
Other languages
Chinese (zh)
Other versions
CN115190016B (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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210875966.4A priority Critical patent/CN115190016B/en
Publication of CN115190016A publication Critical patent/CN115190016A/en
Application granted granted Critical
Publication of CN115190016B publication Critical patent/CN115190016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to an artificial intelligence technology, and discloses a general switch configuration method for a system, which comprises the following steps: acquiring service line information in a preset system, and screening out a switch position according to the service line information; acquiring the service content of the switch position, and determining the functional range of the switch to be regulated according to the service content; selecting the service content in the function range as target service content, and configuring the target service content into a blank API to obtain a service switch; acquiring service data in a function range, and judging whether the service data accords with a preset switch starting condition of a service switch; if not, returning to the step of selecting the service content in the function range as the target service content; if the signal is consistent with the preset signal, the switch is automatically turned on. In addition, the invention also relates to a block chain technology, and the service content and the service data can be stored in the nodes of the block chain. The invention also provides a switch configuration device for the system, an electronic device and a storage medium. The invention can improve the practicability of system switch configuration.

Description

System general switch configuration method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a universal switch configuration method and device for a system, electronic equipment and a computer-readable storage medium.
Background
With the continuous development of the technology level, the system service function is continuously refined, and in order to save the system maintenance operation cost and reduce the system configuration burden, a system universal switch configuration is required for uniformly managing and maintaining the system switches and simplifying the system switch use steps.
In the traditional system switch configuration, a large number of configuration switches have to be repeated in the use process for smooth operation of the system, the configuration operation is complex, and the use of the system switches is more and more complex. In actual life, system switch switching is not convenient, and efficient and concise switch configuration cannot be provided, so that the actual usability of the system switch configuration is low.
Disclosure of Invention
The invention provides a method and a device for configuring a system general switch and a computer readable storage medium, and mainly aims to solve the problem of low practicability of system switch configuration.
In order to achieve the above object, the present invention provides a switch configuration method for a system, including:
acquiring service line information of each service line in a preset system, and screening out a switch position in the preset system according to preset scene screening conditions and the service line information;
acquiring the service content of a service line where the switch position is located, and determining the functional range to be regulated and controlled under the switch position according to the service content;
selecting the service content in the function range as target service content, and configuring the target service content into a blank API in a preset switch management platform to obtain a service switch corresponding to the target service content;
acquiring service data in the function range in real time, and judging whether the service data is in accordance with a preset switch starting condition corresponding to the service switch;
when the service data does not accord with the preset starting condition corresponding to the service switch, returning to the step of selecting the service content in the function range as the target service content;
and when the service data accords with the preset starting condition corresponding to the service switch, the switch is automatically started.
Optionally, the obtaining of the service line information of each service line in the preset system includes:
performing parameter configuration on a preset log plug-in according to the service line information to be acquired to obtain a log monitoring process;
and performing log monitoring on each service line in the preset system by using the log monitoring process, and acquiring service line information returned by monitoring.
Optionally, the determining, according to the service content, a functional range that needs to be regulated and controlled at the switch position includes:
acquiring the service content of a service line;
dividing the positions of the service lines according to the service contents of the service lines to obtain the service contents of different positions of the service lines;
calculating matching values of the service contents of each position and a preset switch function range one by one;
and selecting the service content at a position with the matching value larger than the preset matching value to determine the function range to be regulated and controlled at the switch position.
Optionally, the calculating matching values of the preset switch function ranges of the service contents at each position one by one includes:
acquiring service text word segmentation of service content at each position of a service line, and converting the service text word segmentation into a service word vector;
acquiring functional text participles in a preset switch function range, and converting the functional text participles into functional word vectors;
and calculating the matching value of the service word vector and the function word vector by using a matching degree calculation formula, namely calculating the matching value of the switch function range preset by the service content of each position.
Optionally, the configuring the target service content into a blank API in a preset switch management platform to obtain a service switch corresponding to the target service content includes:
configuring an interface debugger according to the target service content;
generating an API interface document by using the interface debugger;
and writing the target service content into the generated API interface document to obtain a service switch corresponding to the target service content.
Optionally, after the configuring the target service content into a blank API in a preset switch management platform, the method further includes:
acquiring configuration data of a service switch;
writing the configuration data to caching middleware;
landing the configuration data written to the caching middleware to a library table.
Optionally, the obtaining service data in the function range in real time includes:
a monitor is arranged in a service line where the switch position is located;
configuring the service data in the function range as an event monitoring source of the monitor;
and utilizing the monitor to monitor an event monitoring source in real time to obtain the service data in the functional range.
In order to solve the above problem, the present invention also provides a switch configuration apparatus for a system, the apparatus including:
the screening switch position module is used for acquiring service line information of each service line in a preset system and screening out a switch position in the preset system according to preset scene screening conditions and the service line information;
the function range determining module is used for acquiring the service content of the service line where the switch position is located and determining the function range to be regulated and controlled under the switch position according to the service content;
the configuration API module is used for selecting the service content in the function range as target service content, and configuring the target service content into a blank API in a preset switch management platform to obtain a service switch corresponding to the target service content;
the judging condition module is used for acquiring the service data in the function range in real time and judging whether the service data is in accordance with the starting condition of a preset switch corresponding to the service switch;
a return function module, configured to return to the step of selecting the service content in the function range as the target service content when the service data does not conform to the preset starting condition corresponding to the service switch;
and the automatic switch module is used for automatically switching on the switch when the service data accords with the preset switching-on condition corresponding to the service switch.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the system-wide switch configuration method described above.
In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored, the at least one computer program being executed by a processor in an electronic device to implement the system-generic switch configuration method described above.
The embodiment of the invention screens out the position of the switch in the system by analyzing and processing the service information of each service line in the system, determines the specific regulating and controlling function range of the switch on the service line according to the service content of the service line where the switch position is located, acquires the service content in the regulating and controlling function range of the switch, performs uniform configuration and management on the system switch according to the service content, judges whether the switch needs to be automatically started according to the starting condition of the preset switch, ensures that the configuration of the system switch is not redundant, improves the availability of the configuration of the system switch, and lightens the dependence of the configuration of the system switch on human resources. Therefore, the system general switch configuration method, the system general switch configuration device, the electronic equipment and the computer readable storage medium can solve the problem of low actual availability of system switch configuration.
Drawings
Fig. 1 is a schematic flowchart of a system general switch configuration method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a flow chart of matching value calculation according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a configuration API interface according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a system-generic switch configuration apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing the method for configuring a universal switch of a system according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a switch configuration method for a system. The execution main body of the system general switch configuration method includes, but is not limited to, at least one of electronic devices, such as a server and a terminal, which can be configured to execute the method provided by the embodiments of the present application. In other words, the system-generic switch configuration method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, web service, cloud communication, middleware service, domain name service, security service, content Delivery Network (CDN), and a big data and artificial intelligence platform.
Fig. 1 is a schematic flow chart of a system-generic switch configuration method according to an embodiment of the present invention. In this embodiment, the method for configuring a system-generic switch includes:
s1, obtaining service line information of each service line in a preset system, and screening out a switch position in the preset system according to preset scene screening conditions and the service line information;
because the service lines in the system are numerous and the service information of each service line is different, the position of the system switch is not well determined, and therefore a certain scene needs to be simulated and preset through a computer to screen the service line information, and the difficulty of operation is simplified.
In the embodiment of the present invention, the acquiring service line information of each service line in a preset system includes: performing parameter configuration on a preset log plug-in according to the service line information to be acquired to obtain a log monitoring process; and performing log monitoring on each service line in the preset system by using the log monitoring process, and acquiring service line information returned by monitoring.
In the embodiment of the invention, the service line information of each service line in the preset system is acquired through the flash.
In detail, the flash is a distributed, reliable and highly available system for collecting, aggregating and transmitting mass logs, and can collect source data in various forms such as files, socket data packets and the like and store the collected information in an external storage system.
In the embodiment of the present invention, the switch positions in the preset system are screened out according to the preset scene screening condition and the service line information, for example, the preset scene is that the switch positions in the preset system are screened out in a library management system, a plurality of service lines with complex functions, such as a service line for login by an administrator, a service line for login by a user, a service line for managing book information by an administrator, and the like, are provided in the library management system, and a switch is added to the service lines which need to be controlled by the switch.
S2, acquiring the service content of a service line where the switch position is located, and determining the functional range to be regulated and controlled under the switch position according to the service content;
in the embodiment of the invention, the service content is the main function of the service line, for example, a service line for managing course information is arranged on an online education platform website, the information such as course name, course category and course content can be modified on the service line, when a manager logs in the platform, a switch needs to identify the information of login personnel, distinguish the manager from a common user, and determine that different management authorities are opened as the function range needing to be regulated and controlled at the position of the switch.
In detail, since the service content on the service line is complicated and the service functions are overlapped, the specific position of the switch still cannot be determined, and the function range of the switch to be regulated cannot be determined. Therefore, to acquire the service content of the service line where the switch position is located, the service content is analyzed and determined according to the service content of each position of the service line to determine the functional range to be regulated and controlled at the switch position, so as to determine the specific position of the switch. The specific obtaining method may use the log plug-in S1 to obtain the specific service log, which is not described herein again.
In this embodiment of the present invention, the determining, according to the service content, a functional range that needs to be controlled at the switch position includes: acquiring the service content of a service line; dividing the positions of the service lines according to the service contents of the service lines to obtain the service contents of different positions of the service lines; calculating matching values of the service contents of each position and a preset switch function range one by one; and selecting the service content at a position with the matching value larger than the preset matching value to determine the function range to be regulated and controlled at the switch position.
In detail, referring to fig. 2, the calculating the matching value of the switch function range preset by the service content at each position one by one includes:
s21, obtaining service text participles of service contents of each position of a service line, and converting the service text participles into service word vectors;
s22, obtaining functional text participles in a preset switch function range, and converting the functional text participles into functional word vectors;
and S23, calculating the matching value of the service word vector and the function word vector by using a matching degree calculation formula, namely calculating the matching value of the switch function range preset by the service content of each position.
Specifically, the method for calculating the degree of matching between a service word vector and a function word vector includes:
calculating the matching value of the service word vector and the function word vector by using the following matching degree algorithm, wherein the matching degree algorithm comprises the following steps:
Figure BDA0003762189160000061
wherein, P is the matching value, α is a service word vector converted from text participles of service content at any position, and β is a function word vector converted from text participles of a preset switch function range.
In the embodiment of the present invention, the functional range to be controlled at the switch position is determined according to the service content, for example, in a license plate recognition system, a service line for performing matching calculation on a processed license plate picture and characters in a preset character library by using a pattern matching algorithm is provided, and at this time, the switch needs to control when the matching calculation needs to be performed, so as to control the process of the whole pattern matching algorithm.
S3, selecting the service content in the function range as target service content, and configuring the target service content into a blank API in a preset switch management platform to obtain a service switch corresponding to the target service content;
in the embodiment of the invention, because the existing switches have too much configuration information, are difficult to manage and can have the phenomenon of repeated configuration, the switches can be uniformly managed by utilizing a preset platform for managing the switches, and the adaptability of the switches is improved.
In the embodiment of the present invention, the API (Application Programming Interface) is an Interface that can implement a specific function after being predefined or subjected to parameter assignment. Com, a request will appear on a hundred-degree remote server, and when a local browser receives a response, an API with a request response function will parse the code and present a hundred-degree web page.
In the embodiment of the present invention, as shown in fig. 3, the configuring the target service content into a blank API in a preset switch management platform to obtain a service switch corresponding to the target service content includes:
s31, configuring an interface debugger according to the target service content;
s32, generating an API interface document by using the interface debugger;
and S33, writing the target service content into the generated API interface document to obtain a service switch corresponding to the target service content.
Specifically, the interface debugger in the interface debugger configured according to the target service content may be a Swagger-like interface call web service.
In detail, the Swagger is a service that displays all interfaces in a project on a page and can perform interface debugging and testing, and interface calling can be directly performed through the Swagger page.
In another embodiment of the present invention, after configuring the target service content into a blank API in a preset switch management platform, the method further includes: acquiring configuration data of a service switch; writing the configuration data to caching middleware; landing the configuration data written to caching middleware to a library table.
Because the increase of the number of page users causes the increase of the concurrency, if the processing is not carried out, the system can frequently call the database, the page display speed is low, and the server and the database are in danger of crashing. Therefore, in order to increase the page display speed and reduce the load on the server, it is necessary to consider caching data in the middleware.
In detail, the cache is between the application and the physical data source, and the data in the cache is a copy of the data in the physical data source. Middleware is a storage system in many kinds.
S4, acquiring service data in the function range in real time, and judging whether the service data is in accordance with a preset switch starting condition corresponding to the service switch;
because the service line is working continuously, the service data in the function range is also changing continuously, so that the service data obtained by monitoring the service data in the function range in real time can be guaranteed to be the latest data on the current service line.
In the embodiment of the present invention, the acquiring, in real time, the service data within the functional range includes: a monitor is arranged in a service line where the switch position is located; configuring the service data in the function range as an event monitoring source of the monitor; and utilizing the monitor to monitor an event monitoring source in real time to obtain the service data in the functional range.
In this embodiment of the present invention, the preset switch-on condition corresponding to the service switch may be written into the system in advance, for example, the preset switch-on condition corresponding to the service switch may be "library management system is started at 8 am every day by 30", and when the listener monitors that the system service switch needs to be started at the moment by 8 am.
And S5, when the service data do not accord with the preset starting condition corresponding to the service switch, returning to the step of selecting the service content in the function range as the target service content.
In an actual application scenario of the present invention, the preset switch-on condition corresponding to the service switch may be "8 30am on every night", and when the monitor monitors that the current time is 8 am, the preset switch-on condition is not met, the step of selecting the service content within the function range as the target service content in S3 is returned, and the configuration management is performed on the service switch again.
S6, when the service data accords with a preset starting condition corresponding to the service switch, the switch is automatically started;
because the manual switch needs considerable manpower and material resources to detect, maintain and operate many times, and can not timely give feedback to the user, therefore, the preset opening condition corresponding to the service switch needs to be preset in advance, when the system detects that the condition is met, the service switch can be automatically opened, and a large amount of manpower is saved, and the time of the user is also saved.
In a practical application scenario of the present invention, for example, on a video website, after a user purchases a member, the user can view a member video. At the moment, the preset service switch starting condition is that the user buys a video member and has member video authority, when the situation that the user buys the member is detected, the corresponding member video service switch is automatically started, the user can immediately select the video to be watched, and the administrator does not need to wait for the service switch to be turned on.
Fig. 4 is a functional block diagram of a system-generic switch configuration apparatus according to an embodiment of the present invention.
The system-wide switch configuration apparatus 100 of the present invention can be installed in an electronic device. Depending on the implemented functions, the system-wide switch configuration apparatus 100 may include a filter switch position module 101, a function range determination module 102, a configuration API module 103, a judgment condition module 104, a return function module 105, and an automatic switch module 106. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and can perform a fixed function, and are stored in a memory of the electronic device.
In the present embodiment, the functions of the respective modules/units are as follows:
the switch position module 101 is configured to acquire service line information of each service line in a preset system, and screen out a switch position in the preset system according to a preset scene screening condition and the service line information;
a function range determining module 102, configured to obtain service content of a service line where the switch position is located, and determine a function range to be regulated and controlled at the switch position according to the service content;
the configuration API module 103 is configured to select service content in the function range as target service content, configure the target service content into a blank API in a preset switch management platform, and obtain a service switch corresponding to the target service content;
a judgment condition module 104, configured to obtain service data in the function range in real time, and judge whether the service data matches a preset switch-on condition corresponding to the service switch;
a return function module 105, configured to return to the step of selecting the service content in the function range as the target service content when the service data does not conform to the preset starting condition corresponding to the service switch;
and the automatic switch module 106 is configured to automatically switch on when the service data meets a preset turn-on condition corresponding to the service switch.
In detail, when the modules in the system-generic switch configuration apparatus 100 according to the embodiment of the present invention are used, the same technical means as the system-generic switch configuration method described in fig. 1 to 3 are adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device for implementing a method for configuring a system universal switch according to an embodiment of the present invention.
The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may further include a computer program, such as a system general switch configuration program, stored in the memory 11 and executable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing programs or modules (for example, executing a system general switch configuration program, etc.) stored in the memory 11 and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, and the like. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a system-generic switch configuration program, but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Only electronic devices having components are shown, and those skilled in the art will appreciate that the structures shown in the figures do not constitute limitations on the electronic devices, and may include fewer or more components than shown, or some components in combination, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions such as charge management, discharge management, and power consumption management are implemented through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The system-generic switch configuration program stored in the memory 11 of the electronic device 1 is a combination of instructions that, when executed in the processor 10, implement:
acquiring service line information of each service line in a preset system, and screening out a switch position in the preset system according to preset scene screening conditions and the service line information;
acquiring the service content of a service line where the switch position is located, and determining the functional range to be regulated and controlled under the switch position according to the service content;
selecting the service content in the function range as target service content, and configuring the target service content into a blank API in a preset switch management platform to obtain a service switch corresponding to the target service content;
acquiring service data in the function range in real time, and judging whether the service data is in accordance with a preset switch opening condition corresponding to the service switch;
when the service data does not accord with the preset starting condition corresponding to the service switch, returning to the step of selecting the service content in the function range as the target service content;
and when the service data accords with the preset starting condition corresponding to the service switch, the switch is automatically started.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to the drawing, and is not repeated here.
Further, the integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
acquiring service line information of each service line in a preset system, and screening out a switch position in the preset system according to preset scene screening conditions and the service line information;
acquiring the service content of a service line where the switch position is located, and determining the functional range to be regulated and controlled under the switch position according to the service content;
selecting the service content in the function range as target service content, and configuring the target service content into a blank API in a preset switch management platform to obtain a service switch corresponding to the target service content;
acquiring service data in the function range in real time, and judging whether the service data is in accordance with a preset switch starting condition corresponding to the service switch;
when the service data does not accord with the preset starting condition corresponding to the service switch, returning to the step of selecting the service content in the function range as the target service content;
and when the service data accords with the preset starting condition corresponding to the service switch, the switch is automatically started.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the same, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A method for configuring a switch for use in a system, the method comprising:
acquiring service line information of each service line in a preset system, and screening out a switch position in the preset system according to preset scene screening conditions and the service line information;
acquiring the service content of a service line where the switch position is located, and determining the functional range to be regulated and controlled under the switch position according to the service content;
selecting the service content in the function range as target service content, and configuring the target service content into a blank API in a preset switch management platform to obtain a service switch corresponding to the target service content;
acquiring service data in the function range in real time, and judging whether the service data is in accordance with a preset switch starting condition corresponding to the service switch;
when the service data does not accord with the preset starting condition corresponding to the service switch, returning to the step of selecting the service content in the function range as the target service content;
and when the service data accords with the preset starting condition corresponding to the service switch, the switch is automatically started.
2. The method for configuring the system-generic switch according to claim 1, wherein the obtaining the service line information of each service line in the preset system comprises:
performing parameter configuration on a preset log plug-in according to the service line information to be acquired to obtain a log monitoring process;
and performing log monitoring on each service line in the preset system by using the log monitoring process, and acquiring service line information returned by monitoring.
3. The method for configuring the system-generic switch according to claim 1, wherein the determining the functional range to be controlled in the switch position according to the service content comprises:
acquiring the service content of a service line;
dividing the positions of the service lines according to the service contents of the service lines to obtain the service contents of different positions of the service lines;
calculating matching values of the service contents of each position and a preset switch function range one by one;
and selecting the service content at a position with the matching value larger than the preset matching value to determine the function range to be regulated and controlled at the switch position.
4. The method for configuring the system-generic switch according to claim 3, wherein the calculating the matching value of the service content at each location with the preset switch function range one by one comprises:
acquiring service text word segmentation of service content at each position of a service line, and converting the service text word segmentation into a service word vector;
acquiring functional text participles in a preset switch function range, and converting the functional text participles into functional word vectors;
and calculating the matching value of the service word vector and the function word vector by using a matching degree calculation formula, namely calculating the matching value of the switch function range preset by the service content of each position.
5. The method for configuring a system universal switch according to claim 1, wherein the configuring the target service content into a blank API in a preset switch management platform to obtain a service switch corresponding to the target service content comprises:
configuring an interface debugger according to the target service content;
generating an API interface document by using the interface debugger;
and writing the target service content into the generated API interface document to obtain a service switch corresponding to the target service content.
6. The method for configuring a system-generic switch as claimed in claim 1, wherein after configuring the target service content into a blank API within a pre-defined switch management platform, the method further comprises:
acquiring configuration data of a service switch;
writing the configuration data to caching middleware;
landing the configuration data written to the caching middleware to a library table.
7. The method for configuring system universal switch according to any one of claims 1 to 6, wherein the obtaining the service data in the function scope in real time comprises:
a monitor is arranged in a service line where the switch position is located;
configuring the service data in the function range as an event monitoring source of the monitor;
and utilizing the monitor to monitor an event monitoring source in real time to obtain the service data in the functional range.
8. A system-wide switch configuration apparatus, the apparatus comprising:
the screening switch position module is used for acquiring service line information of each service line in a preset system and screening out a switch position in the preset system according to preset scene screening conditions and the service line information;
the function range determining module is used for acquiring the service content of the service line where the switch position is located and determining the function range to be regulated and controlled under the switch position according to the service content;
the configuration API module is used for selecting the service content in the function range as the target service content, and configuring the target service content into a blank API in a preset switch management platform to obtain a service switch corresponding to the target service content;
the judging condition module is used for acquiring the service data in the function range in real time and judging whether the service data is in accordance with the starting condition of a preset switch corresponding to the service switch;
a return function module, configured to return to the step of selecting the service content in the function range as the target service content when the service data does not conform to the preset starting condition corresponding to the service switch;
and the automatic switch module is used for automatically switching on the switch when the service data accords with the preset switching-on condition corresponding to the service switch.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of system-generic switch configuration of any of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the system-generic-switch-configuration method according to any one of claims 1 to 7.
CN202210875966.4A 2022-07-25 2022-07-25 System general switch configuration method, device, equipment and storage medium Active CN115190016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210875966.4A CN115190016B (en) 2022-07-25 2022-07-25 System general switch configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210875966.4A CN115190016B (en) 2022-07-25 2022-07-25 System general switch configuration method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115190016A true CN115190016A (en) 2022-10-14
CN115190016B CN115190016B (en) 2023-04-28

Family

ID=83520651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210875966.4A Active CN115190016B (en) 2022-07-25 2022-07-25 System general switch configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115190016B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153565A1 (en) * 2008-12-11 2010-06-17 Microsoft Corporation Connection management in line-of-business
US10536553B1 (en) * 2015-09-04 2020-01-14 Cadence Design Systems, Inc. Method and system to transfer data between components of an emulation system
CN111880950A (en) * 2020-07-30 2020-11-03 浪潮云信息技术股份公司 Cloud service API management method and system based on government affair cloud platform
WO2020232868A1 (en) * 2019-05-20 2020-11-26 平安科技(深圳)有限公司 Data transmission method and related device
CN112182552A (en) * 2020-09-22 2021-01-05 京东数字科技控股股份有限公司 Real-name authentication method and device, electronic equipment and storage medium
CN112540839A (en) * 2020-12-22 2021-03-23 平安银行股份有限公司 Information changing method, device, electronic equipment and storage medium
WO2022002146A1 (en) * 2020-06-30 2022-01-06 云丁网络技术(北京)有限公司 Smart device control method and system
CN114490135A (en) * 2022-02-15 2022-05-13 平安科技(深圳)有限公司 Task processing method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153565A1 (en) * 2008-12-11 2010-06-17 Microsoft Corporation Connection management in line-of-business
US10536553B1 (en) * 2015-09-04 2020-01-14 Cadence Design Systems, Inc. Method and system to transfer data between components of an emulation system
WO2020232868A1 (en) * 2019-05-20 2020-11-26 平安科技(深圳)有限公司 Data transmission method and related device
WO2022002146A1 (en) * 2020-06-30 2022-01-06 云丁网络技术(北京)有限公司 Smart device control method and system
CN111880950A (en) * 2020-07-30 2020-11-03 浪潮云信息技术股份公司 Cloud service API management method and system based on government affair cloud platform
CN112182552A (en) * 2020-09-22 2021-01-05 京东数字科技控股股份有限公司 Real-name authentication method and device, electronic equipment and storage medium
CN112540839A (en) * 2020-12-22 2021-03-23 平安银行股份有限公司 Information changing method, device, electronic equipment and storage medium
CN114490135A (en) * 2022-02-15 2022-05-13 平安科技(深圳)有限公司 Task processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115190016B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN110990053A (en) Method for creating and using machine learning scheme template and device
CN113918361A (en) Terminal control method, device, equipment and medium based on Internet of things rule engine
CN112084486A (en) User information verification method and device, electronic equipment and storage medium
CN114880368A (en) Data query method and device, electronic equipment and readable storage medium
CN114844792A (en) Dynamic monitoring method, device, equipment and storage medium based on LUA language
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN112580079A (en) Authority configuration method and device, electronic equipment and readable storage medium
CN111985194A (en) Data storage method and device, electronic equipment and storage medium
CN111858604A (en) Data storage method and device, electronic equipment and storage medium
CN115190016A (en) System general switch configuration method, device, equipment and storage medium
CN114897624A (en) Policy data merging method, device, equipment and storage medium
CN115022171A (en) Optimization method and device for updating interface, electronic equipment and readable storage medium
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN114124835A (en) Interface-based data transmission method, device, equipment and medium
CN114721952A (en) Method, device, equipment and storage medium for synchronously deploying multiple sets of test environments
CN113010129A (en) Virtual studio full-flow multi-terminal blackboard writing extraction method and device
CN113918305A (en) Node scheduling method and device, electronic equipment and readable storage medium
CN114185502A (en) Log printing method, device, equipment and medium based on production line environment
CN113935663A (en) Equipment combination analysis method, device, equipment and medium for panel product
CN114896270A (en) Function switch state modification method, device, equipment and storage medium
CN115934576B (en) Test case generation method, device, equipment and medium in transaction scene
CN115098366A (en) Test environment task scheduling processing method, device, equipment and storage medium
CN114579117A (en) Visual configuration method and device, electronic equipment and storage medium
CN112685259A (en) Data acquisition method and device based on buried points, electronic equipment and storage medium
CN115080898A (en) View updating method, device, equipment and medium based on front-end trigger scene

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