CN111104465A - CDN service data display method and device and electronic equipment - Google Patents

CDN service data display method and device and electronic equipment Download PDF

Info

Publication number
CN111104465A
CN111104465A CN201911298866.4A CN201911298866A CN111104465A CN 111104465 A CN111104465 A CN 111104465A CN 201911298866 A CN201911298866 A CN 201911298866A CN 111104465 A CN111104465 A CN 111104465A
Authority
CN
China
Prior art keywords
data
information
latest
user
calculation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911298866.4A
Other languages
Chinese (zh)
Inventor
苏芳芳
陈斌
郭小朋
夏志成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jinxun Ruibo Network Technology Co Ltd
Original Assignee
Beijing Jinxun Ruibo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jinxun Ruibo Network Technology Co Ltd filed Critical Beijing Jinxun Ruibo Network Technology Co Ltd
Priority to CN201911298866.4A priority Critical patent/CN111104465A/en
Publication of CN111104465A publication Critical patent/CN111104465A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/282Hierarchical databases, e.g. IMS, LDAP data stores or Lotus Notes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Abstract

The invention provides a CDN service data display method, a CDN service data display device and electronic equipment, which relate to the technical field of data display and comprise the steps of obtaining request information, wherein the request information comprises the level information of a target service; dividing a database in which target service source data are stored into different levels in advance, wherein the level information is the level of the target service in the database; determining a connection interface according to the corresponding relation between the level information and the source data, and acquiring the source data according to the connection interface; performing logic calculation on the source data to obtain the latest data in the current time period; and displaying the latest data and the trend thereof in the current time period. The method and the device can integrate and display the multi-source data, isolate the data in a faster and more convenient mode, and reduce the coupling among the data of each level.

Description

CDN service data display method and device and electronic equipment
Technical Field
The invention relates to the technical field of data display, in particular to a CDN service data display method, a CDN service data display device and electronic equipment.
Background
In the big data era, the quality of each service needs to be measured according to data analysis and statistical indexes. In order to more standardize and systematically display various service data, the data needs to be visualized. The CDN is called a ContentDelivery Network, i.e., a content delivery Network. The CDN is an intelligent virtual network constructed on the basis of the existing network, and by means of edge servers deployed in various places and functional modules of load balancing, content distribution, scheduling and the like of a central platform, a user can obtain required content nearby, network congestion is reduced, and the access response speed and hit rate of the user are improved. The functional entities included in the CDN network include a content cache device, a content switch, a content router, a CDN content management system, and the like. The content cache is a CDN network node, is positioned at a user access point, is content providing equipment facing an end user, can cache static Web content and streaming media content, and realizes edge propagation and storage of the content so as to facilitate the nearby access of the user. The content exchanger is at the user access centralized point, can balance the load of a plurality of content caching devices at a single point, and can carry out caching load balance and access control on the content. The content router is responsible for scheduling the user's request to the appropriate device. Content routing is usually realized through a load balancing system, load distribution of each content caching site is dynamically balanced, an optimal access site is selected for a user request, and meanwhile, the usability of a website is improved. Content routers may route based on a variety of factors, including proximity of sites to users, availability of content, network load, device conditions, etc. The load balancing system is the core of the entire CDN. The accuracy and efficiency of load balancing directly determine the efficiency and performance of the entire CDN. The content management system is responsible for management of the entire CDN, and is an optional component, and is used for content management, such as content injection and delivery, content distribution, content audit, content service, and the like. The basic principle of the CDN is to widely adopt various cache servers, distribute the cache servers to a region or a network where user access is relatively concentrated, when a user accesses a website, point the user access to a cache server that is closest to and works normally, and directly respond to a user request by using a global load technology.
With the development of the internet and the rise of 4G to 5G, the development of a CDN (Content Delivery Network) is unprecedented, and data of CDN services is exponentially increased. In order to monitor the data of the CDN more comprehensively, serve customers more perfectly, improve the utilization rate to a greater extent, and make data analysis and service statistics more complex and fine. The system needs to display data more comprehensively and more intuitively, and can quickly check and analyze the data.
However, currently, for the calculation and analysis of important data indexes, the data of multiple data sources are not systematically integrated and displayed, and the data cannot be integrated and segmented conveniently.
Disclosure of Invention
The invention aims to provide a CDN service data display method, a CDN service data display device and electronic equipment, which can integrate and display multi-source data, isolate data in a faster and more convenient mode and reduce the coupling among data of each level.
In a first aspect, an embodiment provides a CDN service data display method, where the method includes:
acquiring request information, wherein the request information comprises the level information of a target service; dividing a database in which target service source data are stored into different levels in advance, wherein the level information is the level of the target service in the database;
determining a connection interface according to the corresponding relation between the level information and the source data, and acquiring the source data according to the connection interface;
performing logic calculation on the source data to obtain the latest data in the current time period;
and displaying the latest data and the trend thereof in the current time period.
In an alternative embodiment, the method further comprises:
and displaying the change trend of the granularity data at different times according to the request information.
In an optional embodiment, the displaying the variation trend of the granularity data at different times according to the request information includes:
determining a time weight function according to the request information; the time weight function is a function of the corresponding relation between the time with a high weight value in the current time period and the time with a low weight value in the long-term time period and the weight value;
and adjusting the time shaft distance according to the time weight function to show the variation trend of the granularity data at different times.
In an alternative embodiment, the latest data comprises offline calculation data and real-time calculation data respectively stored in a database; the off-line calculation data is first calculation result data, and the real-time calculation data is latest calculation result data; the display of the latest data and the trend thereof in the current time period comprises the following steps:
judging whether the latest data is a normal result;
if yes, displaying the real-time calculation data and the trend thereof; and if not, reading the offline calculation data from the database, and displaying the offline calculation data and the trend thereof.
In an optional embodiment, the request information further includes user right information, where the user right information includes a page right, an operation right, and a data right; the method further comprises the following steps:
acquiring a user authority list from a right control center, and matching the user authority information with the user authority list to obtain the latest user authority;
and limiting the displayed latest data and the trend thereof in the current time period according to the latest user authority.
In an optional embodiment, obtaining a user right list from a right control center, and matching the user right information with the user right list to obtain the latest user right includes:
acquiring authentication information from the request information;
acquiring a user authority list corresponding to the authentication information from an authority control center according to the authentication information;
matching the user authority information with the user authority list, and judging whether the matching is successful; if yes, obtaining the latest user authority according to the matching result; otherwise, the user logs in the interface.
In a second aspect, an embodiment provides a CDN service data presentation device, including:
the information acquisition module is used for acquiring request information, and the request information comprises the level information of the target service; the method comprises the steps that a database is divided into different levels in advance, and level information is the level of a target service in the database;
the logic calculation module is used for acquiring source data in a database according to the request information, and performing logic calculation on the source data to obtain the latest data in the current time period;
and the display module is used for displaying the latest data and the trend thereof in the current time period.
In an optional embodiment, the system further comprises a time granularity display module;
and the time granularity display module is used for displaying the change trend of the granularity data at different times according to the request information.
In a third aspect, an embodiment provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method of any one of the foregoing embodiments when executing the computer program.
In a fourth aspect, embodiments provide a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method of any of the preceding embodiments.
According to the CDN service data display method, the CDN service data display device and the electronic equipment, the database is divided into different levels, the level information of the target service is attached to the obtained request information, and the database is segmented according to the level information, so that data of multiple data sources can be obtained; the invention can completely separate different data sources, reduce the coupling between different levels of data, facilitate increasing or reducing the data sources of each level, and ensure the uniformity of calculation logic and data viewing.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a CDN service data presentation method according to an embodiment of the present invention;
fig. 2 is an architecture schematic diagram of a CDN service data presentation method according to an embodiment of the present invention;
fig. 3 is a continuous normal distribution function curve diagram of the CDN service data display method according to the embodiment of the present invention;
fig. 4 is a time weight function graph of a power function of the CDN service data presentation method according to the embodiment of the present invention;
fig. 5 is a discrete time weight function graph of the CDN service data display method according to the embodiment of the present invention;
fig. 6 is a flowchart of data acquisition in the CDN service data presentation method according to the embodiment of the present invention;
fig. 7 is a sequence diagram of a method for displaying CDN service data according to a request for data via user right information according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a CDN service data display device according to an embodiment of the present invention;
FIG. 9 is a flowchart of a method for controlling access according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a rights control unit according to an embodiment of the present invention;
fig. 11 is a schematic diagram of an electronic device provided by an embodiment of the invention.
Icon: 81-an information acquisition module; 82-a logical calculation module; 83-a display module; 91-a receiving module; 92-a return module; 110-an electronic device; 111-a communication interface; 112-a processor; 113-a memory; 114-bus.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as meaning either a fixed connection, a detachable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
With unprecedented growth of CDN development space, CDN data needs to be monitored and displayed in an all-around manner so as to better serve customers. At present, the data display system has the following problems:
when the current data display system displays a chart, all data are displayed as equidistant time axis charts in a range selected by a user, and the granularity of the time axis can be dynamically adjusted according to the viewing time range. And the data viewing time range is displayed in the time period by manually selecting the time period. However, in the equidistant time axis chart, all data are viewed identically, and are not distinguished according to importance, such as importance of data in different time periods. When a user checks the recent data floating change detail searching problem, the checking time range is generally narrowed, and the user is concentrated on the detail; when a user views the trend change of long-term data and studies the wind direction change, the viewing time range is generally lengthened, and the whole situation is viewed. The display mode of simple listing of the data can check the data with different granularities after manual intervention for many times, a user needs to spend a large amount of time to search the most valuable data, then the most valuable data in different time periods can not be displayed in a brief mode through summarizing analysis or problem searching, and the value of the data can not be intuitively sensed. In short, it is the data that is full but not emphasized.
At present, a home page is used for displaying current data and a trend change chart of all important indexes, and when the current data of the important indexes is displayed, if the current data cannot be acquired, a blank page condition occurs, or normal display of the page is ensured according to local cache data. For users, if the appearance of blank pages is obviously unacceptable, they cannot perceive the reason of the blank pages; if the data is displayed according to the local cache data, on one hand, the data cannot be displayed if the user does not have the local cache, and on the other hand, even if the user has the local cache data, the consistency of the data displayed by all the users through the local cache cannot be guaranteed. When data fails, many systems consider server performance first, rather than data quality and consistency; however, for data presentation of important indexes, it is desired that the quality of data is more important than the performance and stress of a server. Therefore, for data display of important indexes, the quality requirement is high, and the correctness and consistency of the data need to be ensured.
Generally, in order to consider business data more thoroughly and comprehensively, the data presentation system extracts data from a plurality of data sources for analysis and presentation. For variable business levels, the underlying data sources also need to be changed, but the data presentation system needs to adapt to the presentation and switching of data of different levels. However, for the calculation and analysis of important data indexes, the current data display system does not systematically display the data of multiple data sources in an integrated manner, and cannot integrate and segment conveniently.
The user authority granularity of many internal systems is coarse, and for important data, the authority control of data level is not achieved, which is not beneficial to the safety protection of sensitive data. On the other hand, the storage of important data is not encrypted, and data leakage is easily caused by plaintext transmission. Or the data in the authority is loosely displayed, and the information of the data cannot be intensively observed.
Based on the method, the device and the electronic equipment for displaying the CDN service data, the dynamically generated visual chart can realize time drilling, can check the change trend of data with finer granularity and can check the change trend of data with different time granularities; writing the cache data into a database, and pulling the cache data from the database for display when the data fails, so as to ensure that a user can see the latest data; the hierarchy writing of bottom data is realized, the data can be isolated in a faster and more convenient mode, and the coupling between the data of each hierarchy is reduced; chart content can be dynamically generated according to user rights. The present invention will be described in detail by way of examples.
Referring to fig. 1, the CDN service data display method provided in this embodiment includes the following steps:
s110, acquiring request information, wherein the request information comprises the hierarchy information of the target service; the method comprises the steps that a database in which target service source data are stored is divided into different levels in advance, and level information is the level of a target service in the database;
s120, determining a connection interface according to the corresponding relation between the hierarchical information and the source data, and acquiring the source data according to the connection interface; performing logic calculation on the source data to obtain the latest data in the current time period;
and S130, displaying the latest data and the trend thereof in the current time period.
Specifically, the present embodiment requires that the database be divided into different hierarchies in advance, and the hierarchies are divided according to the data. For source data of different levels extracted from a database, when a front end sends request information for requesting data display, the level of the multi-source data can be obtained through level information attached to the request information.
Referring to fig. 2, data is stored in a back-end database, which is divided into different hierarchies: level a, level B and level C; the upper layer of the database is a logic calculation layer which is used for the logic calculation of data; the upper layer of the logic calculation layer is a front end and is used for page display and can be switched to level display.
Since the request information includes the hierarchy information, the logical computation layer can acquire the desired source data through the hierarchy information when acquiring the source data.
Then, the back-end data layer switches the connection of the database according to the hierarchical information; and the back-end logic layer performs logic calculation according to the data provided by the back-end data layer to obtain the latest data and returns the latest data to the front end. And then, the front end receives the latest data sent by the back end, and shows the latest data and the trend of the data in a chart form.
During data analysis, in order to analyze a certain project, the indexes are designed from different angles and different emphasis points, and the progress and achievement of the project are measured. Meanwhile, in order to ensure the quality and the omnibearing of the analysis data, the analysis can be carried out on the basis of different source data. To fully examine the index, analysis is performed on all data sources. The data source here includes not only data from different sources, but also segmentations of different dimensions, where different dimensions refer to different angles, for example, the angle of a user, and the angle of a CDN service provider. The data sources will also change with the change of the business content or architecture, so that how to switch the hierarchical display of different data sources more conveniently will affect the flexibility and stability of the system under the same index system.
In the embodiment, the hierarchy information is attached when the front end requests data, and the direct connection between the logic calculation layer and the database is realized through different connection interfaces; and switching of databases of different levels is realized through switching the connection interface. Therefore, the correspondence with the source data is determined based on the hierarchy information, and the connection interface is determined based on this correspondence, so that the source data can be acquired from the connection interface. The back end divides a data connection layer and a logic calculation layer, the logic calculation layer is dedicated to logic calculation, switching of a bottom data source does not need to be considered, switching of the data source is separated from the logic calculation, coupling of the logic calculation and hierarchy switching is reduced, and development complexity of newly-added logic calculation is reduced.
In the embodiment, all the bottom layer data are pluged, hot plugging is supported, and all the bottom layer data are switched in a mode of switching the bottom layer database. The data are isolated in a faster and more convenient mode, and the coupling between the data of all levels is reduced. The data sources of all levels can be increased or reduced conveniently, and the uniformity of computing logic and data viewing is ensured.
Optionally, the CDN service data display method according to the embodiment further includes the following steps:
and displaying the variation trend of the granularity data at different times through the unequal interval time axis according to the request information.
Specifically, the time axes of the graphs shown in the present embodiment are not equally spaced, so that the data of the important time periods can be highlighted. The granularity of the time axis is defined in the request information, for example, data showing the current day and the current month, that is, data specific to which granularity level is shown, needs to be determined according to user needs. In this embodiment, the specific expression of the unequal-pitch time axis used is as follows:
Figure BDA0002318031060000101
when the data are displayed, the data analysis display of the time drill-down is carried out according to the user requirement. The data change can be visually checked from the time axis, the general trend of history can be seen, and the fluctuation details of recent data can also be observed, so that the data information can be integrally and comprehensively integrated, problems and rules can be found more quickly and accurately, and strategies can be guided.
It is understood that, in the implementation, the data of the important month and the whole year in the historical time period can be displayed according to the needs of the user, and is not limited to displaying the data of the current date, such as the data of the current day-the current month and the data of the current month-the current year.
In specific implementation, the database of this embodiment is partitioned by time, which is beneficial to improving the data pulling speed, sending the data to the front end, and performing data folding at the front end.
According to the method for chart display through the unequal-interval time axis, the data with the optimal value in different time periods are displayed to the user, the information in the data is received most intuitively and simply, and the data are more concentrated on.
Optionally, the displaying the variation trend of the granularity data at different times through the unequal interval time axis according to the request information in the embodiment includes the following steps:
determining a time weight function according to the request information; the time weight function is a function of the corresponding relation between the time with a high weight value in the current time period and the time with a low weight value in the long-term time period and the weight value;
and adjusting the time shaft distance according to the time weight function to show the variation trend of the granularity data at different times.
Specifically, the present embodiment implements a graph display of an unequal interval time axis by setting a time weight function. When the time weight is a continuous value, the time weight function may be a normal distribution function, a power function, a time forgetting curve, or the like.
Figure BDA0002318031060000111
y=e-|x|+0.1 (3)
Figure BDA0002318031060000112
In equations (2), (3) and (4), x is time, y is time weight, μ is position parameter, and σ is scale parameter. (2) The formula is a continuous normal distribution function, as shown in fig. 3; (3) the formula is a power function, as shown in FIG. 4; (4) the formula is a time weighting function of a discrete formula, as shown in fig. 5.
And adjusting the distance on the time axis according to the time weight distribution so as to achieve the purpose of checking important data in different time periods.
According to the embodiment, the most valuable data are extracted from the angle of the timeline by adopting the unequal-interval time axis diagram display according to the key principle, so that the most valuable data are visually displayed for the user, the time for the user to search the data is saved, the gold content of the data is improved, and the data viewing efficiency is improved.
Optionally, the latest data in the above embodiment includes offline calculation data and real-time calculation data respectively stored in the database; the off-line calculation data is first calculation data, and the real-time calculation data is latest calculation result data; the step S130 in the above embodiment includes the steps of:
judging whether the latest data is a normal result;
if yes, displaying the real-time calculation data and the trend thereof; and if not, reading the offline calculation data from the database, and displaying the offline calculation data and the trend thereof.
Specifically, when the latest data of the schedule time is displayed, whether the latest data has a data fault or not is judged, and if the latest data cannot be acquired due to the current data fault, the display is replaced according to the latest data already stored in the database no matter whether the latest data is due to data quality or missing or other reasons. It should be noted that if the reason is the network reason, no operation is performed, and the user may rather refresh the acquired data to ensure the data quality.
The specific data acquisition flow chart is shown in fig. 6, when data is requested, real-time calculation is performed on source data and offline calculation is acquired from a database, whether a normal result is calculated or not is judged, and if the normal result is calculated, real-time calculation result data is returned; if not, the latest saved result data is obtained from the database and returned. And sending the returned data to the front end for showing.
In the embodiment, when the database stores the latest data, the offline calculation data and the real-time calculation data are respectively stored. The off-line calculation data stored in the database is stored in a non-manual intervention mode, the first calculation data is stored, and the subsequent display is directly obtained from the database; and the real-time calculation data stored in the database stores the latest calculation result data. When the latest data is displayed and the offline calculation data needs to be displayed due to data failure, the offline calculation data is directly read from the database; and when the data is calculated in real time, the back end directly returns the calculation result.
When the latest data is stored, the data is respectively stored as offline calculation data and real-time calculation data, and when the current data cannot be acquired, no matter the data is due to data quality or missing, the data is displayed instead according to the latest data already stored in the database, so that the data quality is ensured.
Optionally, the request information in the above embodiment further includes user right information, where the user right information includes a page right, an operation right, and a data right; the CDN service data display method in the above embodiment further includes the following steps:
acquiring a user authority list from a right control center, and matching the user authority information with the user authority list to obtain the latest user authority;
and limiting the displayed latest data and the trend thereof in the current time period according to the latest user authority. Specifically, when a user logs in, user authority is obtained; when the front end acquires the request information, attaching user authority information; the back end matches the user list obtained from the right control center according to the user right to generate all visible data results, and returns the visible data results to the front end; the front end dynamically generates a suitable chart according to the data quantity and the type of the fed back data.
Optionally, the obtaining a user right list from the right control center in the above embodiment, and matching the user right information with the user right list to obtain the latest user right includes:
acquiring authentication information from the request information;
acquiring a user authority list corresponding to the authentication information from an authority control center according to the authentication information;
matching the user authority information with the user authority list, and judging whether the matching is successful; if yes, obtaining the latest user authority according to the matching result; otherwise, the user logs in the interface.
The specific steps are shown in fig. 7:
s210, the front end requests chart data;
when the front end sends request information, the front end attaches user authority information;
s220, the back end analyzes the digest (authentication information) in the cookie (the state information transmitted between the back end and the front end);
s230, the back end requests the user authority from the authority control center according to the digest;
s240, the authority control center returns a user authority list;
after returning the user authority, the back end matches the user authority information with the user authority list to obtain the latest user authority;
s250, the back-end authentication fails;
s260, turning to a login page;
s270, successfully authenticating, calculating data according to the latest user authority and returning;
s280, returning chart data;
and S290, adjusting the format of the display chart according to the returned data.
The user authority data of the embodiment is placed in the authority control center, the front end and the back end are isolated from the authority, and the back end acquires the user authority from the authority control center in real time when the front end requests data from the back end every time. The user authority is placed in an authority control center, so that the authority of an important index can be divided into very fine data, and the most fine data can be obtained in a data level; and all the important indexes visible to the user are displayed on the home page, a chart needs to be dynamically generated according to the user authority, and the consistency of the format and the isolation of data are ensured.
The user all authority list comprises page authority, operation authority, data authority and the like. After acquiring a user permission list, the back end sends a matched latest permission list to the front end, wherein the latest permission list contains visible page information; when the front end requests the chart data, the back end limits the type of data indexes, the display form of the data, the service level of the data and the calculation logic in the chart data according to the latest authority list, namely the calculation logic of which the back end can control the data granularity level.
And the front end receives the chart data fed back by the back end, and adjusts the size, the type and the like of a front-end display chart, namely the chart display form of the front-end control data according to the data index type, the display mode and the service level defined in the latest authority list.
The user authority of the embodiment is uniformly configured by the authority control center, and the configuration with higher degree of freedom is provided for the authority control, so that the coupling of the authority and the service logic is reduced. After the authority is subdivided, chart data and a format need to be dynamically generated, and the data is more flexibly displayed. When the method is specifically implemented, data are encrypted and stored and encrypted for transmission, and data security is improved.
In summary, the CDN service data display method provided in this embodiment considers a principle that a home page displays important data; a data quality protection means is added when data fails; the authority with finer granularity is divided, so that a visual chart is dynamically generated; drilling down time, and performing three-dimensional analysis on data; the business data are displayed in an all-around mode, multi-source index reference is increased, and the business levels are switched in a one-key mode.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a CDN service data display device according to an embodiment of the present invention, and as shown in fig. 8, the CDN service data display device includes:
an information obtaining module 81, configured to obtain request information, where the request information includes level information of a target service; the method comprises the steps that a database in which target service source data are stored is divided into different levels in advance, and level information is the level of a target service in the database;
a logic calculation module 82, configured to determine a connection interface according to a correspondence between the hierarchical information and source data, and obtain the source data according to the connection interface; performing logic calculation on the source data to obtain the latest data in the current time period;
and the display module 83 is used for displaying the latest data and the trend thereof in the current time period.
Optionally, the CDN service data display device in the above embodiment further includes the following modules:
and the time weight module is used for displaying the change trend of the data with different time granularities through the unequal interval time axes according to the request information.
Optionally, the time weighting module in the above embodiment includes the following modules:
the time weight function module is used for determining a time weight function according to the request information; the time weight function is a function of the corresponding relation between the time with a high weight value in the current time period and the time with a low weight value in the long-term time period and the weight value;
and the adjusting module is used for adjusting the time shaft distance according to the time weight function so as to show the variation trend of the data with different time granularities.
Optionally, the latest data in the above embodiment includes offline calculation data and real-time calculation data respectively stored in the database; the off-line calculation data is first calculation result data, and the real-time calculation data is latest calculation result data; the display module 83 in the above embodiment includes the following modules:
the judging module is used for judging whether the latest data is a normal result or not;
the fault display module displays the real-time calculation data and the trend thereof if the fault exists; and if not, reading the offline calculation data from the database, and displaying the offline calculation data and the trend thereof.
Optionally, the request information in the above embodiment further includes user right information, where the user right information includes a page right, an operation right, and a data right; the CDN service data display device in the above embodiment further includes the following modules:
the authority matching module is used for sending the user authority information to the authority control center for matching to obtain the latest user authority;
and the permission display module is used for limiting the displayed latest data and the trend thereof in the current time period according to the latest user permission returned by the permission control center.
Optionally, the permission matching module in the above embodiment includes the following modules:
the authentication information acquisition module is used for acquiring authentication information from the request information;
the user authority list acquisition module is used for acquiring a user authority list corresponding to the authentication information from the authority control center according to the authentication information;
the matching module is used for matching the user authority information with the user authority list and judging whether the matching is successful or not; if yes, obtaining the latest user authority according to the matching result; otherwise, the user logs in the interface.
Referring to fig. 9, fig. 9 is a flowchart illustrating a method for controlling a right according to an embodiment of the present invention. As shown in fig. 9, the method may include the steps of:
s310, receiving information which is sent by a database and requests user permission;
and S320, returning a user authority list to the database according to the information of the requested user authority.
Referring to fig. 10, fig. 10 is a schematic structural diagram of another authorization control device according to an embodiment of the present invention. As shown in fig. 10, the apparatus may include the following modules:
a receiving module 91, configured to receive information requesting user permission sent by a database;
and the returning module 92 returns the user authority list to the database according to the information of the requested user authority.
Referring to fig. 11, an embodiment of the present invention further provides an electronic device 110, which includes a communication interface 111, a processor 112, a memory 113, and a bus 114, where the processor 112, the communication interface 111, and the memory 113 are connected by the bus 114; the memory 113 is used for storing a computer program that supports the processor 112 to execute the CDN service data exposure method, and the processor 112 is configured to execute the program stored in the memory 113.
Optionally, an embodiment of the present invention further provides a computer-readable medium having a non-volatile program code executable by a processor, where the program code causes the processor to execute the CDN service data exhibition method in the foregoing embodiment.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A CDN service data display method is characterized by comprising the following steps:
acquiring request information, wherein the request information comprises the level information of a target service; dividing a database in which target service source data are stored into different levels in advance, wherein the level information is the level of the target service in the database;
determining a connection interface according to the corresponding relation between the level information and the source data, and acquiring the source data according to the connection interface; performing logic calculation on the source data to obtain the latest data in the current time period;
and displaying the latest data and the trend thereof in the current time period.
2. The method of claim 1, further comprising:
and displaying the change trend of the granularity data at different times according to the request information.
3. The method of claim 2, wherein presenting trends in changes in different time-granular data based on the request information comprises:
determining a time weight function according to the request information; the time weight function is a function of the corresponding relation between the time with a high weight value in the current time period and the time with a low weight value in the long-term time period and the weight value;
and adjusting the time shaft distance according to the time weight function to show the variation trend of the granularity data at different times.
4. The method of claim 1, wherein the latest data comprises offline calculation data and real-time calculation data respectively stored in a database; the off-line calculation data is first calculation result data, and the real-time calculation data is latest calculation result data; the display of the latest data and the trend thereof in the current time period comprises the following steps:
judging whether the latest data is a normal result;
if yes, displaying the real-time calculation data and the trend thereof; and if not, reading the offline calculation data from the database, and displaying the offline calculation data and the trend thereof.
5. The method of claim 1, wherein the request information further comprises user rights information, the method further comprising:
acquiring a user authority list from a right control center, and matching the user authority information with the user authority list to obtain the latest user authority;
and limiting the displayed latest data and the trend thereof in the current time period according to the latest user authority.
6. The method of claim 5, wherein obtaining a user rights list from a rights control center, matching the user rights information with the user rights list, and obtaining the latest user rights comprises:
acquiring authentication information from the request information;
acquiring a user authority list corresponding to the authentication information from an authority control center according to the authentication information;
matching the user authority information with the user authority list, and judging whether the matching is successful; if yes, obtaining the latest user authority according to the matching result; otherwise, the user logs in the interface.
7. A CDN service data presentation device is characterized by comprising:
the information acquisition module is used for acquiring request information, and the request information comprises the level information of the target service; dividing a database in which target service source data are stored into different levels in advance, wherein the level information is the level of the target service in the database;
the logic calculation module is used for determining a connection interface according to the corresponding relation between the hierarchy information and the source data and acquiring the source data according to the connection interface; performing logic calculation on the source data to obtain the latest data in the current time period;
and the display module is used for displaying the latest data and the trend thereof in the current time period.
8. The apparatus of claim 7, further comprising a time granularity presentation module;
and the time granularity display module is used for displaying the change trend of the granularity data at different times according to the request information.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any of the preceding claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1 to 6.
CN201911298866.4A 2019-12-13 2019-12-13 CDN service data display method and device and electronic equipment Pending CN111104465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911298866.4A CN111104465A (en) 2019-12-13 2019-12-13 CDN service data display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911298866.4A CN111104465A (en) 2019-12-13 2019-12-13 CDN service data display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111104465A true CN111104465A (en) 2020-05-05

Family

ID=70422484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911298866.4A Pending CN111104465A (en) 2019-12-13 2019-12-13 CDN service data display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111104465A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380220A (en) * 2020-11-18 2021-02-19 深圳市极致科技股份有限公司 Data display method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100287146A1 (en) * 2009-05-11 2010-11-11 Dean Skelton System and method for change analytics based forecast and query optimization and impact identification in a variance-based forecasting system with visualization
CN107038200A (en) * 2016-12-15 2017-08-11 平安科技(深圳)有限公司 Business data processing method and system
CN108512711A (en) * 2017-02-24 2018-09-07 合网络技术(北京)有限公司 Obtain the method, apparatus and equipment of instantaneous interface acess control amount
CN109062936A (en) * 2018-06-15 2018-12-21 中国平安人寿保险股份有限公司 A kind of data query method, computer readable storage medium and terminal device
CN109670980A (en) * 2017-10-17 2019-04-23 深圳智链物联科技有限公司 A kind of processing method, system and the equipment of the business datum that charges
WO2021197432A1 (en) * 2020-04-02 2021-10-07 北京京东振世信息技术有限公司 Routing method and apparatus for database cluster

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100287146A1 (en) * 2009-05-11 2010-11-11 Dean Skelton System and method for change analytics based forecast and query optimization and impact identification in a variance-based forecasting system with visualization
CN107038200A (en) * 2016-12-15 2017-08-11 平安科技(深圳)有限公司 Business data processing method and system
CN108512711A (en) * 2017-02-24 2018-09-07 合网络技术(北京)有限公司 Obtain the method, apparatus and equipment of instantaneous interface acess control amount
CN109670980A (en) * 2017-10-17 2019-04-23 深圳智链物联科技有限公司 A kind of processing method, system and the equipment of the business datum that charges
CN109062936A (en) * 2018-06-15 2018-12-21 中国平安人寿保险股份有限公司 A kind of data query method, computer readable storage medium and terminal device
WO2021197432A1 (en) * 2020-04-02 2021-10-07 北京京东振世信息技术有限公司 Routing method and apparatus for database cluster

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380220A (en) * 2020-11-18 2021-02-19 深圳市极致科技股份有限公司 Data display method, device and equipment

Similar Documents

Publication Publication Date Title
US10841241B2 (en) Intelligent placement within a data center
US8180782B2 (en) Online ranking metric
US9443197B1 (en) Predicting user navigation events
US8725891B2 (en) Aggregation across cloud providers
US8600921B2 (en) Predicting user navigation events in a browser using directed graphs
KR20210053823A (en) Multimedia resource recommendation method and device, electronic equipment and storage medium
US8843477B1 (en) Onsite and offsite search ranking results
US9058210B2 (en) Weighted request rate limiting for resources
US8954524B1 (en) Access to network content
US20120317266A1 (en) Application Ratings Based On Performance Metrics
US20120005584A1 (en) System and method for providing a cloud computing graphical user interface
CN103383655A (en) Performance interference model for managing consolidated workloads in qos-aware clouds
US10885009B1 (en) Generating aggregate views for data indices
US20200252281A1 (en) System performance using semantic graph data
US10402465B1 (en) Content authority ranking using browsing behavior
CN106372069B (en) A kind of electric energy quality monitoring method and system
Tu et al. An optimized cluster storage method for real-time big data in Internet of Things
CN111104465A (en) CDN service data display method and device and electronic equipment
US11327969B2 (en) Term vector modeling of database workloads
CN110278250B (en) Terminal selection method, device and storage medium
US11327937B1 (en) Determining indexing progress for a table in a distributed data store
US10282076B1 (en) Techniques for rendering user interface displays
JP6706701B1 (en) Information processing apparatus, information processing method, and information processing program
US11108661B1 (en) Apparatus and method for processing streaming data and forming visualizations thereof
US20220100329A1 (en) System for selection and display of syndicated content

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