CN115190016B - 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
CN115190016B
CN115190016B CN202210875966.4A CN202210875966A CN115190016B CN 115190016 B CN115190016 B CN 115190016B CN 202210875966 A CN202210875966 A CN 202210875966A CN 115190016 B CN115190016 B CN 115190016B
Authority
CN
China
Prior art keywords
service
switch
preset
content
service 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.)
Active
Application number
CN202210875966.4A
Other languages
Chinese (zh)
Other versions
CN115190016A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to artificial intelligence technology, and discloses a system general switch configuration method, 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 service content of a switch position, and determining a functional range to be regulated and controlled by a switch according to the service content; selecting service content in a functional 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 functional range, and judging whether the service data accords with a preset switch starting condition of a service switch or not; if not, returning to the step of selecting the service content in the functional range as the target service content; if so, the switch is automatically turned on. In addition, the invention also relates to a block chain technology, and the business content and the business data can be stored in the nodes of the block chain. The invention also provides a system general switch configuration device, electronic equipment and a storage medium. The invention can improve the practicability of the system switch configuration.

Description

System general switch configuration method, device, equipment and storage medium
Technical Field
The present invention relates to the field of artificial intelligence technologies, and in particular, to a method and apparatus for configuring a general switch of a system, an electronic device, and a computer readable storage medium.
Background
With the continuous development of the technology level, the service functions of the system are continuously refined, so that in order to save the maintenance operation cost of the system and reduce the burden of system configuration, a system generalized switch configuration is needed for uniformly managing and maintaining the system switch, and the use steps of the system switch are simplified.
In order to make the system operate smoothly, the conventional system switch configuration has to repeat a large number of configuration switches in the use process, and the configuration operation is complicated, so that the use of the system switch is more and more complicated. In actual life, the switching of the system switch is not convenient, and the 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 system general switch configuration method, a device and a computer readable storage medium, which mainly aim to solve the problem of low system switch configuration practicability.
In order to achieve the above object, the present invention provides a system general switch configuration method, 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 service content of a service line where the switch position is located, and determining a functional range to be regulated and controlled at the switch position according to the service content;
selecting the service content in the functional 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 functional range in real time, and judging whether the service data accords with a preset switch starting condition corresponding to the service switch or not;
returning to the step of selecting the service content in the functional range as the target service content when the service data is not matched with the preset starting condition corresponding to the service switch;
and when the service data accords with a preset starting condition corresponding to the service switch, the switch is automatically started.
Optionally, the acquiring service line information of each service line in the preset system includes:
carrying out parameter configuration on a preset log plug-in according to service line information to be acquired to obtain a log monitoring process;
and carrying out 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 the functional range to be regulated and controlled at the switch position according to the service content includes:
acquiring 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 service contents of all positions and a preset switch function range one by one;
and selecting the business content at a position with the matching value larger than the preset matching value to determine the functional range to be regulated and controlled at the switch position.
Optionally, the calculating the matching value of the preset switch function range of the service content of each position one by one includes:
acquiring service text word segmentation of service contents of each position of a service line, and converting the service text word segmentation into service word vectors;
acquiring a function text word segmentation of a preset switch function range, and converting the function text word segmentation into a function word vector;
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 preset switch function range of the service content of each position to carry out the matching value.
Optionally, the configuring the target service content to 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 the service switch corresponding to the target service content.
Optionally, after the configuring the target service content into a blank API in the preset switch management platform, the method further includes:
acquiring configuration data of a service switch;
writing the configuration data into a cache middleware;
and landing the configuration data written into the cache middleware to a library table.
Optionally, the acquiring, in real time, the service data within the functional range includes:
setting a monitor in a service line where the switch position is located;
configuring service data in the functional range as an event monitoring source of the monitor;
and monitoring the event monitoring source in real time by utilizing the monitor to obtain the service data in the functional range.
In order to solve the above-mentioned problems, the present invention also provides a system general switch configuration device, the device comprising:
the screening switch position module is used for acquiring service line information of each service line in a preset system, and screening switch positions in the preset system according to preset scene screening conditions and the service line information;
the function range determining module is used for acquiring service content of a service line where the switch position is located and determining a function range to be regulated and controlled at the switch position according to the service content;
the configuration API module is used for selecting the service content in the functional 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 service data in the functional range in real time and judging whether the service data accords with a preset switch starting condition corresponding to the service switch or not;
a return function module, configured to return to a step of selecting the service content in the functional range as a target service content when the service data does not conform to a preset opening 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 a preset switching-on condition corresponding to the service switch.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the system universal switch configuration method described above.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the above-mentioned system general-purpose switch configuration method.
According to the embodiment of the invention, the position of the switch in the system is screened out by analyzing the service information of each service line in the processing system, the specific regulation and control function range of the switch on the service line is determined according to the service content of the service line where the switch position is located, the service content in the regulation and control function range of the switch is obtained, the system switch is uniformly configured and managed according to the service content, whether the switch needs to be automatically opened or not is judged according to the preset switch opening condition, the system switch configuration is not redundant, the availability of the system switch configuration is improved, and the dependence of the system switch configuration on human resources is reduced. Therefore, the system general switch configuration method, the device, the electronic equipment and the computer readable storage medium can solve the problem of low practical usability of system switch configuration.
Drawings
Fig. 1 is a flow chart of a general switch configuration method of a system according to an embodiment of the invention;
FIG. 2 is a flow chart of matching value calculation according to an embodiment of the present invention;
FIG. 3 is a flow chart of a configuration API according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a general switch configuration device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing the method for configuring a general switch of the system according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a system general switch configuration method. The execution subject of the system general switch configuration method includes, but is not limited to, at least one of a server, a terminal, and the like, which can be configured to execute the method provided by the embodiment of the application. In other words, the system general switch configuration method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end 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 cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (ContentDelivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Referring to fig. 1, a flow chart of a system universal switch configuration method according to an embodiment of the invention is shown. In this embodiment, the system general switch configuration method includes:
s1, 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;
because the business lines in the system are numerous, the business information of each business line is different, so the switch position of the system is not well determined, and therefore, the business line information needs to be screened through computer simulation and presetting of a certain scene, and the operation difficulty is simplified.
In the embodiment of the present invention, the acquiring service line information of each service line in the preset system includes: carrying out parameter configuration on a preset log plug-in according to service line information to be acquired to obtain a log monitoring process; and carrying out 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, and the service line information can be acquired through a flash.
In detail, the flash is a distributed, reliable and highly available system for collecting, aggregating and transmitting massive logs, and can collect various forms of source data such as files, socket data packets and the like and store the collected information in an external storage system.
In the embodiment of the invention, the switch position in the preset system is selected according to the preset scene screening condition and the service line information, for example, the preset scene is that the switch position in the preset system is selected in the library management system, a plurality of service lines with complex functions are arranged in the library management system, for example, an administrator logs in the service line, a user logs in the service line, the service line of the administrator managing the book information, and the like, and a switch is added on the service lines needing switch control.
S2, acquiring service content of a service line where the switch position is located, and determining a functional range to be regulated and controlled at the switch position according to the service content;
in the embodiment of the invention, the service content is a main function of a service line, for example, a service line for managing course information is arranged on an online education platform website, the information such as course names, course categories, course content and the like can be modified on the service line, when an administrator logs in the platform, the switch needs to identify login personnel information, the administrator is distinguished from a common user, and the function range which needs to be regulated and controlled under the condition that different management authorities are opened is determined.
In detail, because the service content on the service line is complicated and the service functions are overlapped, the specific position of the switch can not be determined, and the functional range of the switch to be regulated can not be defined. Therefore, to acquire the service content of the service line where the switch position is located, according to the service content of each position of the service line, the service content is analyzed and determined to determine the functional range to be regulated and controlled at the switch position, so that the specific position of the switch is determined. The specific acquiring method can acquire the specific service log by using the log plug-in the S1, which is not described herein.
In the embodiment of the present invention, the determining the functional range to be regulated and controlled at the switch position according to the service content includes: acquiring 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 service contents of all positions and a preset switch function range one by one; and selecting the business content at a position with the matching value larger than the preset matching value to determine the functional range to be regulated and controlled at the switch position.
In detail, referring to fig. 2, the calculating the matching value of the preset switch function range of the service content of each position includes:
s21, acquiring service text word segmentation of service contents of each position of a service line, and converting the service text word segmentation into a service word vector;
s22, obtaining a functional text word segmentation of a preset switch function range, and converting the functional text word segmentation into a functional word vector;
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 a switch function range preset by service content of each position.
Specifically, the calculating a matching value of a business word vector and a function word vector by using the matching degree calculating method includes:
calculating the matching value of the business word vector and the function word vector by using the following matching degree algorithm, wherein the matching value comprises the following steps:
Figure BDA0003762189160000061
wherein P is the matching value, alpha is the text word of the business content at any position and converted into a business word vector, and beta is a functional word vector converted from the text word of the preset switch functional range.
In the embodiment of the invention, the functional range to be regulated and controlled at the switch position is determined according to the service content, for example, in a license plate recognition system, a service line for carrying out matching calculation on the processed license plate picture and characters in a preset character library by using a pattern matching algorithm is arranged, and at the moment, when the switch needs to regulate and control the matching calculation, the process of the whole pattern matching algorithm is controlled.
S3, selecting the service content in the functional 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, the existing switch is difficult to manage due to excessive configuration information, and repeated configuration is possible, so that a preset platform for managing the switch can be utilized to uniformly manage the switch and improve the suitability of the switch.
In the embodiment of the present invention, the API (Application Programming Interface ) is an interface that can implement a specific function after performing a predefined or parameter assignment. For example, when www.baidu.com is input into the browser, a request will appear on a hundred degrees remote server, and when the local browser receives a response, the API with the request response function will parse the code and present a hundred degrees web page.
In the embodiment of the present invention, referring to fig. 3, the configuring the target service content to 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 business 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 the service switch corresponding to the target service content.
In particular, the interface debugger in the interface debugger configured according to the target business content can be an interface call web service similar to Swagger.
In detail, the Swagger is a service that presents all interfaces in the 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 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 into a cache middleware; and landing the configuration data written into the cache middleware to a library table.
As the number of page users is increased to increase the concurrency, if the system does not process, the system can frequently call the database, the page display speed is low, and the server and the database are both in danger of breakdown. 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 interposed between the application and the physical data source, and the data within the cache is a copy of the data in the physical data source. There are many kinds of middleware, which is a storage system.
S4, acquiring service data in the functional range in real time, and judging whether the service data is consistent with a preset switch starting condition corresponding to the service switch;
because the service line is continuously operated, the service data in the functional range is also continuously changed, and therefore, the obtained service data can be ensured to be the latest data on the current service line only by monitoring the service data in the functional range in real time.
In the embodiment of the present invention, the acquiring, in real time, service data within the functional range includes: setting a monitor in a service line where the switch position is located; configuring service data in the functional range as an event monitoring source of the monitor; and monitoring the event monitoring source in real time by utilizing the monitor to obtain the service data in the functional range.
In the embodiment of the present invention, the preset switch-on condition corresponding to the service switch may be written in the system in advance, for example, the preset switch-on condition corresponding to the service switch may be "8:30 on a morning of a library management system every day", and when the monitor monitors that the current 8:30 on the morning, it is determined whether the service switch of the system needs to be turned on at this time.
And S5, returning to the step of selecting the service content in the functional range as the target service content when the service data does not accord with the preset starting condition corresponding to the service switch.
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 day", when the monitor monitors that the current switch-on condition is 8:30 a.m., the preset switch-on condition is not met, the step of selecting the service content within the functional range in S3 as the target service content is returned, and configuration management is performed on the service switch again.
S6, when the service data and the preset opening conditions corresponding to the service switch are met, the switch is automatically opened;
because quite a lot of manual switches need considerable manpower and material resources to detect maintenance operation and can not feed back to users in time, preset starting conditions corresponding to the service switches need to be preset in advance, and when the system detects that the system meets the conditions, the service switches can be automatically started, so that a large amount of manpower is saved, and the time of the users is saved.
In a practical application scenario of the present invention, for example, on a video website, a user may watch a member video after purchasing a member. At this time, the preset service switch starting condition is "buy video member, possess member class video authority", when detecting that the user purchases member, the corresponding member class video service switch will be automatically started, the user can select the video to be watched immediately, and does not need to wait for the manager to start the service switch.
Fig. 4 is a functional block diagram of a system universal switch configuration device according to an embodiment of the present invention.
The system universal switch configuration device 100 of the present invention may be installed in an electronic apparatus. Depending on the functions implemented, the system generic switch configuration device 100 may include a filter switch position module 101, a determine function range module 102, a configure API module 103, a judge condition module 104, a return function module 105, and an automatic switch module 106. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the switch position module 101 is configured to obtain service line information of each service line in a preset system, and screen a switch position in the preset system according to preset scene screening conditions and the service line information;
the function range determining module 102 is 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 the service content in the functional range as a target service content, and configure 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;
a judging condition module 104, configured to acquire service data in the functional range in real time, and judge whether the service data conforms to a preset switch opening condition corresponding to the service switch;
a return function module 105, configured to return to a step of selecting the service content in the functional range as a target service content when the service data does not conform to a preset opening 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 switch-on condition corresponding to the service switch.
In detail, each module in the system general switch configuration device 100 in the embodiment of the present invention adopts the same technical means as the system general switch configuration method described in fig. 1 to 3, and can produce the same technical effects, which are not described herein.
Fig. 5 is a schematic structural diagram of an electronic device implementing a system universal switch configuration method according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a system general-purpose switch configuration program, stored in the memory 11 and executable on the processor 10.
The processor 10 may be formed by an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be formed by a plurality of integrated circuits packaged with the same function or different functions, including one or more central processing units (Central Processing unit, CPU), a microprocessor, a digital processing chip, a graphics processor, a combination of various control chips, and so on. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, executes or executes programs or modules (e.g., a system general-purpose switch configuration program, etc.) stored in the memory 11, and invokes data stored in the memory 11 to perform various functions of the electronic device and process data.
The memory 11 includes at least one type of readable storage medium including flash memory, a removable hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, such as a mobile hard disk of the electronic device. The memory 11 may in other embodiments also be an external storage device of the electronic device, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are 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 for storing application software installed in an electronic device and various types of data, such as codes of a system general-purpose switch configuration program, but also for temporarily storing data that has been output or is to be output.
The communication bus 12 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
The communication interface 13 is used for communication between the electronic device and other devices, including 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.), 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), or alternatively 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, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
Only an electronic device having components is shown, and it will be understood by those skilled in the art that the structures shown in the figures do not limit the electronic device, and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power source (such as a battery) for supplying power to the respective components, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device may further include various sensors, bluetooth modules, wi-Fi modules, etc., which are not described herein.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The system-generic switch configuration program stored in the memory 11 in the electronic device 1 is a combination of instructions that, when executed in the processor 10, can 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 service content of a service line where the switch position is located, and determining a functional range to be regulated and controlled at the switch position according to the service content;
selecting the service content in the functional 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 functional range in real time, and judging whether the service data accords with a preset switch starting condition corresponding to the service switch or not;
returning to the step of selecting the service content in the functional range as the target service content when the service data is not matched with the preset starting condition corresponding to the service switch;
and when the service data accords with a preset starting condition corresponding to the service switch, the switch is automatically started.
In particular, the specific implementation method of the above instructions by the processor 10 may refer to the description of the relevant steps in the corresponding embodiment of the drawings, which is not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a 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, can 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 service content of a service line where the switch position is located, and determining a functional range to be regulated and controlled at the switch position according to the service content;
selecting the service content in the functional 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 functional range in real time, and judging whether the service data accords with a preset switch starting condition corresponding to the service switch or not;
returning to the step of selecting the service content in the functional range as the target service content when the service data is not matched with the preset starting condition corresponding to the service switch;
and when the service data accords with a preset starting condition corresponding to the service switch, the switch is automatically started.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
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 characteristics 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 blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. A system universal switch configuration method, 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 service content of a service line where the switch position is located, and determining a functional range to be regulated and controlled at the switch position according to the service content;
selecting the service content in the functional 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 functional range in real time, and judging whether the service data accords with a preset switch starting condition corresponding to the service switch or not;
returning to the step of selecting the service content in the functional range as the target service content when the service data is not matched with the preset starting condition corresponding to the service switch;
and when the service data accords with a preset starting condition corresponding to the service switch, the switch is automatically started.
2. The method for configuring a system universal switch according to claim 1, wherein the obtaining service line information of each service line in the preset system comprises:
carrying out parameter configuration on a preset log plug-in according to service line information to be acquired to obtain a log monitoring process;
and carrying out 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 a system universal switch according to claim 1, wherein determining a functional range to be regulated under the switch position according to the service content comprises:
acquiring 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 service contents of all positions and a preset switch function range one by one;
and selecting the business content at a position with the matching value larger than the preset matching value to determine the functional range to be regulated and controlled at the switch position.
4. The system general switch configuration method as in claim 3, wherein said calculating the matching value of the service contents of each location and the preset switch function range one by one comprises:
acquiring service text word segmentation of service contents of each position of a service line, and converting the service text word segmentation into service word vectors;
acquiring a function text word segmentation of a preset switch function range, and converting the function text word segmentation into a function word vector;
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 preset switch function range of the service content of each position to carry out the matching value.
5. The method for configuring the 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 the 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 the service switch corresponding to the target service content.
6. The system universal switch configuration method of claim 1, wherein after said configuring said target business content into a blank API within a preset switch management platform, said method further comprises:
acquiring configuration data of a service switch;
writing the configuration data into a cache middleware;
and landing the configuration data written into the cache middleware to a library table.
7. The system general switch configuration method according to any one of claims 1 to 6, wherein the acquiring, in real time, service data within the functional range includes:
setting a monitor in a service line where the switch position is located;
configuring service data in the functional range as an event monitoring source of the monitor;
and monitoring the event monitoring source in real time by utilizing the monitor to obtain the service data in the functional range.
8. A system universal switch configuration device, the device comprising:
the screening switch position module is used for acquiring service line information of each service line in a preset system, and screening switch positions in the preset system according to preset scene screening conditions and the service line information;
the function range determining module is used for acquiring service content of a service line where the switch position is located and determining a function range to be regulated and controlled at the switch position according to the service content;
the configuration API module is used for selecting the service content in the functional 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 functional range in real time and judging whether the service data accords with the preset switch starting condition corresponding to the service switch or not;
a return function module, configured to return to a step of selecting the service content in the functional range as a target service content when the service data does not conform to a preset opening 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 a preset switching-on condition corresponding to the service switch.
9. An electronic device, the electronic device comprising:
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 system generic switch configuration method of any one of claims 1 to 7.
10. A computer readable storage medium storing a computer program, wherein the computer program when 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 CN115190016A (en) 2022-10-14
CN115190016B true 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* 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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115190016A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN111897548B (en) Front-end resource issuing method and device, electronic equipment and computer storage medium
CN112506559B (en) Gray release method and device based on gateway, electronic equipment and storage medium
CN113297287B (en) Automatic user policy deployment method and device and electronic equipment
CN106600082A (en) Processing method and device of task in service system, and service system construction system
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN111651524B (en) Auxiliary implementation method and device for on-line prediction by using machine learning model
CN112948275A (en) Test data generation method, device, equipment and storage medium
CN114844792A (en) Dynamic monitoring method, device, equipment and storage medium based on LUA language
CN112667638B (en) Dynamic report generation method and device, terminal equipment and readable storage medium
CN117193975A (en) Task scheduling method, device, equipment and storage medium
CN114691782B (en) Database table increment synchronization method, device and storage medium
CN115190016B (en) System general switch configuration method, device, equipment and storage medium
CN112085611A (en) Asynchronous data verification method and device, electronic equipment and storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN114185502B (en) Log printing method, device, equipment and medium based on production line environment
CN112527655B (en) Software version quality abnormality detection method and device, electronic equipment and storage medium
CN115022171A (en) Optimization method and device for updating interface, electronic equipment and readable storage medium
CN112686759A (en) Account checking monitoring method, device, equipment and medium
CN113704109B (en) Front-end and back-end data interaction method and device, electronic equipment and storage medium
CN112000945B (en) Authorization method, device, equipment and medium based on artificial intelligence
CN115964307B (en) Automatic test method, device, equipment and medium for transaction data
CN116662027A (en) Remote office system resource detection method, device, equipment and storage medium
CN115098366A (en) Test environment task scheduling processing method, device, equipment and storage medium
CN115454610A (en) Real-time progress feedback method and device, electronic equipment and computer readable storage medium
CN116843219A (en) Buried data analysis method, buried data analysis device, buried data analysis equipment and storage medium

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