Data display method and device
By performing abnormal checks on display data and replacing emergency display data, alarm signals are generated, and customer complaints and data recovery time caused by data errors in the prior art are solved, and the stability and rapid recovery of data display are achieved.
Patent Information
- Application Number
- CN202411266149.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-17
AI Technical Summary
Existing data display methods will directly display error information when data errors are wrong, resulting in long customer complaints and data recovery time, which cannot meet the stability needs of data display.
By performing abnormal checks on the display data, determining the emergency display data according to the preset downgrade strategy, and generating alarm signals to ensure that external audiences are not perceived when the data is abnormal, quickly resolve problems, and ensure the stability of data display.
It realizes unsensed display when data is abnormal, avoids customer complaints, and quickly restores normal data display, which improves the stability and reliability of data display.
Smart Images

Figure CN119149284A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for data display. Background Art
[0002] In the scenario of large-screen visualization, existing data display methods usually directly connect the data of the underlying data source to the large-screen visualization, or perform personalized processing and packaging on the data source as needed and then connect it to the large-screen visualization.
[0003] In the process of implementing the present invention, the inventors found that the prior art has the following problems:
[0004] The existing method of connecting data or encapsulated data to a visualization screen will directly display the erroneous data on the visualization screen when an error occurs in the data. This will not only provide erroneous information to the audience and cause customer complaints, but also the back-end R&D personnel will not discover the abnormality in the first time, resulting in slow data recovery time, which cannot meet the stability requirements of data display. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method and device for data display, which realizes data display with an error-proofing mechanism. When the data is abnormal, external viewers will not perceive it, avoiding the risk of customer complaints due to abnormal data displayed on a large visual screen. At the same time, by generating an alarm signal, the problem can be quickly solved and restored to normal, ensuring the stability and reliability of data display.
[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for data presentation is provided, including:
[0007] In response to receiving the data display request, obtaining the data to be displayed;
[0008] An abnormality check is performed on the data to be displayed. When an abnormality occurs in the data to be displayed, emergency display data is determined according to a preset degradation strategy, the emergency display data is displayed, and an alarm signal is generated to obtain normal data to be displayed for data display.
[0009] Optionally, in response to receiving a data display request, obtaining the data to be displayed includes: determining a target interface to be accessed according to the received data display request; generating an access request to access the target interface through domain name conversion; and obtaining the data to be displayed by obtaining a response result of the access request.
[0010] Optionally, before performing anomaly checking on the data to be displayed, the method further includes: configuring data checking rules; performing anomaly checking on the data to be displayed, including: checking whether anomaly occurs in the data to be displayed according to the data checking rules.
[0011] Optionally, emergency display data is determined according to a preset downgrade strategy, including: when the downgrade strategy is a default downgrade strategy, selecting target data whose generation time is closest to the generation time of the data to be displayed from historical normal data of the data to be displayed as emergency display data; when the downgrade strategy is to generate simulation data, generating emergency display data according to a preset simulation strategy.
[0012] Optionally, the emergency display data is stored in multiple caches; displaying the emergency display data includes: obtaining the emergency display data from a default cache and displaying it; if the emergency display data cannot be obtained from the default cache, obtaining the emergency display data from other caches among the multiple caches except the default cache.
[0013] Optionally, the method further includes: in response to monitoring that the interface to which the data to be displayed belongs returns normal data to be displayed, canceling the emergency display data and displaying the normal data to be displayed.
[0014] Optionally, the data display method is implemented by an independent data gateway, which is deployed inside the system and located between an internal data source and an internal data interaction interface of a data display device.
[0015] According to a second aspect of an embodiment of the present invention, a data display device is provided, including:
[0016] A data acquisition module, configured to acquire data to be displayed in response to receiving a data display request;
[0017] The data display module is used to perform an abnormality check on the data to be displayed. When an abnormality occurs in the data to be displayed, emergency display data is determined according to a preset degradation strategy, the emergency display data is displayed, and an alarm signal is generated to obtain normal data to be displayed for data display.
[0018] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for displaying data, including:
[0019] one or more processors;
[0020] a storage device for storing one or more programs,
[0021] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.
[0022] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0023] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided. A computer program product of an embodiment of the present application includes a computer program, and when the program is executed by a processor, the method for data display provided in the embodiment of the present application is implemented.
[0024] An embodiment of the invention has the following advantages or beneficial effects: by responding to receiving a data display request, the data to be displayed is obtained; the data to be displayed is checked for abnormalities, and when an abnormality occurs in the data to be displayed, emergency display data is determined according to a preset degradation strategy, the emergency display data is displayed, and an alarm signal is generated, so as to obtain a technical solution for data display with normal data to be displayed, thereby realizing a stable and reliable data display method with an error-proof mechanism. When the data is abnormal, external audiences will not perceive it, thus avoiding the risk of customer complaints due to abnormal data displayed on a large visual screen. At the same time, by generating an alarm signal, the problem can be quickly resolved and restored to normal, ensuring that data display is performed when normal data to be displayed is obtained, thereby improving the stability and reliability of data display. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0026] Figure 1 is a schematic diagram of the main process of the method for data display according to an embodiment of the present invention;
[0027] Figure 2 is a schematic diagram of the principle of the data display method of an embodiment of the present invention;
[0028] Figure 3 is a schematic diagram of an overall system for data display according to an embodiment of the present invention;
[0029] Figure 4 is a schematic diagram of main modules of a device for data display according to an embodiment of the present invention;
[0030] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0031] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0032] It should be noted that in the technical solution of the present invention, the collection / collection, update, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by national regulatory authorities. Necessary measures should be taken for user personal information to selectively block the use or access to personal information data to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. In addition, once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0033] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0034] The existing method of connecting data or encapsulated data to a visualization screen will directly display the erroneous data on the visualization screen when an error occurs in the data. This will not only provide erroneous information to the audience and cause customer complaints, but also the back-end R&D personnel will not discover the abnormality in the first time, resulting in slow data recovery time, which cannot meet the stability requirements of data display.
[0035] In order to solve the above problems existing in the prior art, the present invention proposes a method for data display, which performs an abnormality check on the acquired data to be displayed. If an abnormality occurs, the data to be displayed is replaced with the determined emergency display data for data display, and an alarm signal is generated. A stable and reliable data display method with an error-proof mechanism is implemented. When an abnormality occurs in the data to be displayed, the external audience will not perceive it, avoiding the risk of customer complaints due to abnormal data displayed on a large visual screen. At the same time, by generating an alarm signal, the problem can be quickly solved and restored to normal, ensuring the stability and reliability of data display.
[0036] In the introduction to the embodiments of the present invention, the terms and their meanings are as follows:
[0037] JVM cache: the built-in cache of the Java Virtual Machine;
[0038] SQL: Structured Query Language;
[0039] Mock data: refers to a technology used to simulate actual data during the software development process.
[0040] Figure 1 is a schematic diagram of the main process of the method for data display according to an embodiment of the present invention, such as Figure 1 As shown, the data display method of the embodiment of the present invention includes the following steps S101 to S103.
[0041] Step S101: in response to receiving a data display request, obtaining data to be displayed.
[0042] Specifically, the data display request of the visualization large screen is usually triggered by the power-on status of the large screen. The data display request is triggered when the large screen is detected to be powered on. The data display request will call the pre-configured data source of the content to be displayed, that is, the data source. The display processing system receives the data display request and obtains the data to be displayed from the data source according to the data source specified in the data display request.
[0043] According to one embodiment of the present invention, in response to receiving a data display request, obtaining the data to be displayed includes: determining a target interface to be accessed according to the received data display request; generating an access request to access the target interface through domain name conversion; and obtaining the data to be displayed by obtaining a response result of the access request.
[0044] Specifically, usually, each underlying data source exchanges data with the outside in the form of a data interface. The display processing system obtains the target interface to be accessed based on the interface information contained in the received data display request. The data display request is transmitted to the display processing system through an HTTP access request. The display processing system determines the target domain name based on the target interface, and then performs domain name conversion to generate an access request to access the target interface. After the target interface receives the access request sent by the display processing system, it returns the data currently used for display on the visualization screen to the display processing system so that the display processing system can obtain the data to be displayed.
[0045] Step S102: performing an abnormality check on the data to be displayed. When an abnormality occurs in the data to be displayed, emergency display data is determined according to a preset degradation strategy, the emergency display data is displayed, and an alarm signal is generated to obtain normal data to be displayed for data display.
[0046] Specifically, in addition to obtaining the data to be displayed through the target interface as mentioned above, the data can also be obtained by calling SQL statements. When checking the data to be displayed for abnormalities, it is possible to check whether the target interface or the called SQL statement has a return value. If there is a return value, check whether the data type or data value range of the data to be displayed as the return value is normal. When it is determined that the data to be displayed is abnormal, the emergency display data is determined according to the preset downgrade strategy, and the data to be displayed is replaced with the emergency display data, and the emergency display data is displayed on the visualization large screen. At the same time, according to the abnormal information of the abnormal data to be displayed, for example, the return value of the access request is not received, the data type of the received return value is abnormal, etc., combined with the preset alarm signal generation rules, or the abnormal code corresponding to the abnormal information, an alarm signal is generated, and the alarm signal is sent to the internal operation personnel or R&D personnel. The audience will neither perceive the abnormal data nor the alarm signal, and the audience will not perceive it at all. Specific alarm signals can be sent to operations or R&D via phone, email, or instant messaging software. Operations will make a preliminary judgment on the abnormal problem and then hand it over to R&D, or directly notify relevant R&D personnel. R&D personnel can know the abnormality at the first time, repair the abnormality, and ensure that the display processing system can obtain normal data to be displayed for data display as soon as possible.
[0047] According to an embodiment of the present invention, before performing anomaly check on the data to be displayed, the method further includes: configuring data check rules; performing anomaly check on the data to be displayed, including: checking whether anomaly occurs in the data to be displayed according to the data check rules.
[0048] Specifically, in order to ensure good compatibility and scalability of the display processing system, the embodiment of the present invention sets a configuration center, and the configuration center is used to uniformly configure and manage various rules and policies therein. Before the data to be displayed is checked for abnormalities, the data inspection rules are configured through the configuration center. Since the data displayed on the visualization large screen may come from multiple underlying data sources or multiple underlying encapsulated data sources, and these underlying data sources or underlying encapsulated data sources interact with the display processing system through external interfaces, the data inspection rules of each interface can be finely configured in the configuration center according to business needs. The specific data inspection rules can adopt historical data comparison rules to check whether the data is abnormal by comparing the similarity between the current data and the historical data. Logic inspection rules can also be set to check whether the data is abnormal by the logical relationship (sequence, association, constraint, etc.) between the data. The specific data inspection rules are not limited. Then, in the subsequent data abnormality check, the inspection rules configured for each interface or the default inspection rules configured by the configuration center are used to check whether the data to be displayed is abnormal.
[0049] It can be understood that the display processing system is connected to the external interface of the underlying data. When a new interface application interacts with the display processing system, that is, when a new interface application is accessed, in response to receiving the interface access request, the interface access operation is performed by configuring the data inspection rules of the interface, and other logics are uniformly encapsulated by the display processing system, thus ensuring good scalability. In addition, the configuration center of the embodiment of the present invention supports dynamic configuration, that is, the configured rules can take effect immediately without the need for manual program restart, thereby improving the processing efficiency of the display data.
[0050] It can be understood that the display processing system can not only be used to process and degrade the data to be displayed, but also provide a platform for debugging by R&D personnel. In response to receiving an interface debugging request, a pre-configured interface debugging rule is obtained from the configuration center for configuring the data inspection rule, and interface debugging is performed by calling the inspection service for performing abnormal inspection on the data to be displayed according to the interface debugging rule.
[0051] According to another embodiment of the present invention, emergency display data is determined according to a preset downgrade strategy, including: when the downgrade strategy is a default downgrade strategy, selecting target data whose generation time is closest to the generation time of the data to be displayed from historical normal data of the data to be displayed as emergency display data; when the downgrade strategy is to generate simulation data, generating the emergency display data according to a preset simulation strategy.
[0052] Specifically, the above-mentioned configuration center can not only configure data inspection rules, but also configure downgrade strategies. The downgrade strategies in the embodiments of the present invention are mainly divided into two categories, one is the default downgrade strategy, and the other is the strategy for generating simulated data, that is, the strategy for generating mock data. Usually, the default downgrade strategy is to select the target data closest to the current time from the historical normal data of the interface corresponding to the abnormal data to be displayed as the emergency display data. As for generating mock data, the embodiments of the present invention provide a variety of solutions for generating mock data. By configuring the simulation strategy to determine the specific emergency display data, the specified data can be mocked, and the historical data of the specified time can be mocked. For example, configure the historical data of 10 o'clock on the 1st of last month to mock, and then obtain the historical data from the cache as the emergency display data. It can be understood that the simulation strategies of each interface may also be different. The embodiments of the present invention can configure the simulation strategies of each interface in a fine-grained manner.
[0053] Accordingly, when a new interface applies for access, in response to receiving the interface access request, the interface access operation is performed by configuring the downgrade policy of the interface. In summary, the configuration of the above-mentioned data inspection rules and downgrade policies are all implemented through the configuration center. It can be seen that the data display method of the embodiment of the present invention is easier to operate, all configurations are concentrated in the configuration center, and the data inspection rules and downgrade policies in the configuration center have default configurations, that is, in general scenarios, they can be implemented without configuration.
[0054] Furthermore, when determining the emergency display data, the display processing system determines whether to use the default downgrade strategy or the simulation data generation strategy according to the downgrade strategy of the configuration center. For the simulation data generation strategy, the emergency display data that meets the requirements is generated according to the simulation strategy.
[0055] According to another embodiment of the present invention, the emergency display data is stored in multiple caches; displaying the emergency display data includes: obtaining the emergency display data from a default cache and displaying it; if the emergency display data cannot be obtained from the default cache, obtaining the emergency display data from other caches among the multiple caches except the default cache.
[0056] Specifically, after the emergency display data is generated, the emergency display data is stored in multiple caches. In order to avoid data loss, the embodiment of the present invention uses a multi-cache storage mechanism of Redis cache and JVM cache, and Redis cache is used as the default cache. When displaying the emergency display data, the emergency display data of the abnormal data to be displayed is obtained from the Redis cache, and the emergency display data is displayed on the visualization large screen. If the emergency display data cannot be obtained from the Redis cache, the emergency display data is obtained from the JVM cache to further improve the reliability of data display.
[0057] According to another embodiment of the present invention, the method further includes: in response to monitoring that the interface to which the data to be displayed belongs returns normal data to be displayed, canceling the emergency display data and displaying the normal data to be displayed.
[0058] Specifically, when the R&D personnel within the system receive an alarm signal, they will troubleshoot the problem, restore the interface where the exception occurred as soon as possible, and display the processing system to monitor the status of the interface to which the abnormal data to be displayed belongs in real time, and check whether the data returned by the interface is normal. When it is monitored that the interface returns normal data to be displayed, the emergency display data currently in use will be revoked, and the normal data to be displayed will be displayed on the large visualization screen.
[0059] Through data anomaly checking, determination of emergency display data, and alarm mechanism, a closed loop of abnormal problems and a closed loop of data are achieved, thus achieving control over the display data.
[0060] According to another embodiment of the present invention, the data display method is implemented by an independent data gateway, which is deployed inside the system and located between the internal data source and the internal data interaction interface of the data display device.
[0061] Specifically, the data display method implemented by the present invention can be implemented through an independent data gateway, which is deployed inside the system, specifically between the internal underlying data source and the internal data interaction interface of the data display device, and the domain name conversion, data anomaly check, determination of emergency display data, multiple cache mechanism, and alarm mechanism involved in the access are integrated into the data gateway, and the data gateway completes the processing function of data display. This is not only easy to transplant, but also can improve the security of the entire system. By utilizing the security interception attribute of the gateway, when receiving an external access request for data display, the security of the access request is judged. If the access request is risky, the access request can be intercepted to prevent the acquisition of the underlying data, thereby avoiding the leakage of data from the underlying data source to the requesting party with security risks.
[0062] Figure 2 It is a principle diagram of the method for data display of an embodiment of the present invention. The data gateway receives a data display request, uses the internal domain name conversion to generate an access request for accessing the target interface, and obtains the data to be displayed through the external interfaces (RPC interface, HTTP interface, etc.) of the underlying data sources or the return value of the SQL statement. Based on the data inspection rules configured in advance by the configuration center, the data anomaly inspection module is used to check the data to be displayed. If an exception occurs in the data to be displayed, an alarm signal is generated according to the abnormal information of the abnormal data to be displayed, such as the return value of the access request not being received, the data type of the received return value being abnormal, etc., combined with the preset alarm signal generation rules, or the abnormal code corresponding to the abnormal information. Further, the data gateway starts the alarm mechanism to trigger the alarm center to send an alarm signal to the operator or R&D personnel. At the same time, the emergency display data determination module queries the corresponding downgrade strategy from the configuration center to determine the emergency display data, and uses the multi-caching mechanism to store the emergency display data in multiple caches, and then pulls the emergency display data from the default cache (Redis cache center) to display it on the visualization screen.
[0063] Figure 3This is a schematic diagram of the overall system for data display in an embodiment of the present invention. A data gateway with data display processing capabilities is deployed inside the system, specifically between the internal underlying data encapsulation layer / data layer and the internal data interaction interface of the visualization screen. The internal data interaction interface entrance of the visualization screen is in the gateway, and the underlying external interaction interfaces are all located in the lower layer of the gateway, that is, the data gateway is connected to the external interfaces of all underlying data, so as to ensure that the data gateway manages the data to be displayed and does not display abnormal data to be displayed on the visualization screen.
[0064] The embodiment of the present invention integrates the processing function of data display in the data gateway, and performs stable and reliable data display through the data gateway that is independent of the visualization large screen and the underlying data layer. Not only can the abnormal data to be displayed be shielded and not displayed on the visualization large screen, but also diversified and personalized emergency display data can be obtained to replace the abnormal data to be displayed, and the emergency display data is displayed on the visualization large screen until normal data to be displayed is monitored. This ensures that when the data is abnormal, the audience will not feel it, and internal R&D personnel can quickly discover the abnormality and solve the problem to restore normal. In addition, since the embodiment of the present invention realizes the management and control of data display through an independent data gateway, it is easier to transplant to other projects and has good portability.
[0065] Figure 4 Schematic diagram of the main modules of the device for data display according to an embodiment of the present invention. Figure 4 As shown, the data display device 400 mainly includes a data acquisition module 401 and a data display module 402 .
[0066] The data acquisition module 401 is used to acquire the data to be displayed in response to receiving the data display request;
[0067] The data display module 402 is used to perform an abnormality check on the data to be displayed. When an abnormality occurs in the data to be displayed, emergency display data is determined according to a preset degradation strategy, the emergency display data is displayed, and an alarm signal is generated to obtain normal data to be displayed for data display.
[0068] According to one embodiment of the present invention, the data acquisition module 401 is also used to: determine the target interface to be accessed based on the received data display request; generate an access request to access the target interface through domain name conversion; and obtain the data to be displayed by obtaining the response result of the access request.
[0069] According to another embodiment of the present invention, the data display device 400 also includes a configuration module (not shown in the figure), which is used to: configure data checking rules before performing anomaly checking on the data to be displayed; the data display module 402 is also used to: check whether the data to be displayed has any anomalies according to the data checking rules.
[0070] According to another embodiment of the present invention, the data display module 402 is further used for: when the downgrade strategy is a default downgrade strategy, selecting target data whose generation time is closest to the generation time of the data to be displayed from the historical normal data of the data to be displayed as emergency display data; when the downgrade strategy is to generate simulation data, generating emergency display data according to a preset simulation strategy.
[0071] According to another embodiment of the present invention, the emergency display data is stored in multiple caches; the data display module 402 is further used to: obtain the emergency display data from a default cache and display it; if the emergency display data cannot be obtained from the default cache, obtain the emergency display data from other caches among the multiple caches except the default cache.
[0072] According to another embodiment of the present invention, the data display device 400 also includes a display recovery module (not shown in the figure), which is used to: in response to monitoring that the interface to which the data to be displayed belongs returns normal data to be displayed, cancel the emergency display data and display the normal data to be displayed.
[0073] According to another embodiment of the present invention, the data display method is implemented by an independent data gateway, which is deployed inside the system and located between the internal data source and the internal data interaction interface of the data display device.
[0074] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention can be applied.
[0075] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0076] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications, such as data display applications, etc., can be installed on terminal devices 501, 502, 503 (only as an example).
[0077] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0078] The server 505 may be a server that provides various services, such as a background management server (only as an example) that provides support for data display by users using terminal devices 501, 502, and 503. The background management server may obtain the data to be displayed in response to receiving a data display request; perform an abnormality check on the data to be displayed, and in the case of an abnormality in the data to be displayed, determine emergency display data according to a preset degradation strategy, display the emergency display data, and generate an alarm signal to obtain normal data to be displayed for data display and other processing.
[0079] It should be noted that the data display method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the data display device is generally set in the server 505 .
[0080] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0081] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. Figure 6 The terminal device or server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0082] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0083] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0084] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0085] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination thereof.
[0086] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0087] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be arranged in a processor, for example, it may be described as follows: a processor includes: a data acquisition module and a data display module.
[0088] The names of these modules do not constitute a limitation on the modules themselves in certain cases. For example, the data acquisition module can also be described as “a module for acquiring data to be displayed in response to receiving a data display request”.
[0089] On the other hand, the present invention also provides a computer-readable medium, which may be included in the device described in the embodiment; or may exist independently without being assembled into the device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by a device, the device includes: in response to receiving a data display request, obtaining the data to be displayed; performing an abnormality check on the data to be displayed, and in the case of an abnormality in the data to be displayed, determining emergency display data according to a preset degradation strategy, displaying the emergency display data, and generating an alarm signal to obtain normal data to be displayed for data display.
[0090] The technical solution according to the embodiment of the present invention has the following advantages or beneficial effects: by responding to receiving a data display request, the data to be displayed is obtained; the data to be displayed is checked for abnormalities, and when an abnormality occurs in the data to be displayed, emergency display data is determined according to a preset degradation strategy, the emergency display data is displayed, and an alarm signal is generated, so as to obtain normal data to be displayed for data display. A technical solution is implemented that has an error-proof mechanism and is stable and reliable for data display. When the data is abnormal, external viewers will not perceive it, thereby avoiding the risk of customer complaints due to abnormal data displayed on a large visual screen. At the same time, by generating an alarm signal, the problem can be quickly resolved and restored to normal, ensuring that data display is performed when normal data to be displayed is obtained, thereby improving the stability and reliability of data display.
[0091] The specific implementation methods described herein do not constitute limitations on the scope of protection of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included in the scope of protection of the present invention.
Claims
1. A method for data presentation, characterized in that: include: In response to receiving the data display request, obtaining the data to be displayed; An abnormality check is performed on the data to be displayed. When an abnormality occurs in the data to be displayed, emergency display data is determined according to a preset degradation strategy, the emergency display data is displayed, and an alarm signal is generated to obtain normal data to be displayed for data display.
2. The method according to claim 1, characterized in that In response to receiving the data display request, obtaining the data to be displayed includes: Determine the target interface to be accessed according to the received data display request; Generate an access request for accessing the target interface through domain name conversion; The data to be displayed is obtained by obtaining the response result of the access request.
3. The method according to claim 1, characterized in that Before performing anomaly checking on the data to be displayed, the method further includes: configuring data checking rules; Performing an abnormality check on the data to be displayed includes: checking whether an abnormality occurs in the data to be displayed according to the data checking rule.
4. The method according to claim 1, characterized in that Determine emergency display data according to the preset degradation strategy, including: In the case where the degradation strategy is the default degradation strategy, target data whose generation time is closest to the generation time of the data to be displayed is selected from the historical normal data of the data to be displayed as the emergency display data; When the degradation strategy is to generate simulation data, the emergency display data is generated according to a preset simulation strategy.
5. The method according to claim 1 or 4, characterized in that: The emergency display data is stored in a variety of caches; Displaying the emergency display data, including: Obtaining the emergency display data from the default cache and displaying it; In the case that the emergency display data cannot be obtained from the default cache, the emergency display data is obtained from other caches among the multiple caches except the default cache.
6. The method according to claim 1, characterized in that The method further comprises: In response to monitoring that the interface to which the data to be displayed belongs returns normal data to be displayed, the emergency display data is cancelled and the normal data to be displayed is displayed.
7. The method according to any one of claims 1 to 6, characterized in that: The data display method is implemented by an independent data gateway, which is deployed inside the system and located between the internal data source and the internal data interaction interface of the data display device.
8. A device for displaying data, characterized in that: include: A data acquisition module, configured to acquire data to be displayed in response to receiving a data display request; The data display module is used to perform an abnormality check on the data to be displayed. When an abnormality occurs in the data to be displayed, emergency display data is determined according to a preset degradation strategy, the emergency display data is displayed, and an alarm signal is generated to obtain normal data to be displayed for data display.
9. A mobile electronic device terminal, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
