Movatterモバイル変換


[0]ホーム

URL:


CN105100203B - Show the method and terminal of monitoring data - Google Patents

Show the method and terminal of monitoring data
Download PDF

Info

Publication number
CN105100203B
CN105100203BCN201510324393.6ACN201510324393ACN105100203BCN 105100203 BCN105100203 BCN 105100203BCN 201510324393 ACN201510324393 ACN 201510324393ACN 105100203 BCN105100203 BCN 105100203B
Authority
CN
China
Prior art keywords
monitoring data
interface
address
web browser
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510324393.6A
Other languages
Chinese (zh)
Other versions
CN105100203A (en
Inventor
何泽钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co LtdfiledCriticalBeijing Jingdong Century Trading Co Ltd
Priority to CN201510324393.6ApriorityCriticalpatent/CN105100203B/en
Publication of CN105100203ApublicationCriticalpatent/CN105100203A/en
Application grantedgrantedCritical
Publication of CN105100203BpublicationCriticalpatent/CN105100203B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses the methods and terminal that show monitoring data, wherein this method comprises: operation batch processing script, starts the local web browser for showing monitoring data;Receive the interface IP address that user inputs in the web browser;Monitoring data is obtained from third party's interface according to the interface IP address of input;It arranges according to setting format to the monitoring data of acquisition;Monitoring data after showing arrangement.The present invention program can be improved the displaying efficiency of monitoring data, and show more flexible.

Description

Show the method and terminal of monitoring data
Technical field
The present invention relates to network communication technologies, more particularly to show the method and terminal of monitoring data.
Background technique
In network communication technology, often it is related to that specified business information is monitored and is shown;Such as it is a certain to providingThe performance of the server of specific transactions is monitored.
Currently, showing the scheme of monitoring data are as follows:
Monitor supervision platform sends to monitoring server and shows request about the monitoring of a certain business information;Monitoring server receivesAfter monitoring displaying request, required monitoring data is obtained from third-party platform, storage is arrived local;Prison of the monitoring server to acquisitionAfter control data are handled, feeds back to monitor supervision platform and be shown.
The exhibition scheme of existing monitoring data has the following deficiencies:
When the number of users of access monitoring server is larger, access speed is slow, in this case monitoring serverProcessing load is heavier, will occur network paralysis when serious, can not get monitoring data, causes to show failure;And then can not yetOperation is performed the next step based on monitoring data, causes follow-up work that can not carry out.
Summary of the invention
The present invention provides a kind of method for showing monitoring data, this method can be improved the displaying efficiency of monitoring data,And it shows more flexible.
The present invention provides a kind of terminal for showing monitoring data, which can be improved the displaying efficiency of monitoring data,And it shows more flexible.
A method of showing monitoring data, this method comprises:
Batch processing script is run, the local web browser for showing monitoring data is started;
Receive the interface IP address that user inputs in the web browser;
Monitoring data is obtained according to third party's interface that the interface IP address of input is provided from third-party platform;
It arranges according to setting format to the monitoring data of acquisition;
Monitoring data after showing arrangement.
A kind of terminal showing monitoring data, the terminal include starting trigger unit and web browser;
The starting trigger unit;Batch processing script is run, the web browser for showing monitoring data is started;
The web browser after starting, receives the interface IP address that user inputs in the web browser;According to connecing for inputThird party's interface that port address is provided from third-party platform obtains monitoring data;According to setting format to the monitoring data of acquisition intoRow arrangement;Monitoring data after showing arrangement.
From above scheme as can be seen that in the present invention, batch processing script is run, the local for showing monitoring data is startedWeb browser;Receive the interface IP address that user inputs in the web browser;According to the interface IP address of input from third party's interfaceObtain monitoring data;It arranges according to setting format to the monitoring data of acquisition;Monitoring data after showing arrangement.UsingThe present invention program directly obtains monitoring data from third party's interface by local web browser, without via monitoring server intoRow obtain, reduce the burden of monitoring server, avoid because number of users is larger, high concurrent access when cause show slowly orThe problem of failure, improve the displaying efficiency of monitoring data;Also, after obtaining monitoring data, according to setting format to acquisitionMonitoring data is arranged, and keeps exhibition method more flexible.
Detailed description of the invention
Fig. 1 is the method schematic flow chart that the present invention shows monitoring data;
Fig. 2 is the method flow diagram example that the present invention shows monitoring data;
Fig. 3 is the monitoring data interface schematic diagram example that the present invention is shown;
Fig. 4 is the terminal structure schematic diagram that the present invention shows monitoring data.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below with reference to embodiment and attached drawing, to thisInvention is further described.
In the present invention, monitoring data is directly obtained from third party's interface by local web browser, without taking via monitoringBusiness device is obtained, and to reduce the burden of monitoring server, is avoided slow because causing to show when number of users is larger, high concurrent accessesThe problem of slow or failure.Referring to Fig. 1, the method schematic flow chart of monitoring data is shown for the present invention comprising following steps:
Step 101, batch processing script is run, the local web browser for showing monitoring data is started.
Batch processing (bat) script is run, other programs can be called.Specifically, in this step, batch processing is runScript, for starting local web browser, the web browser for realizing monitoring data displaying.The visit of the web browserAsk that address is local address, the other users in same local area network can access local web browser by the local address.
After determining the concrete function that web browser to be realized, generating and providing the web browser of the function is this fieldWhat technical staff was easily achieved, it seldom repeats here.
Step 102, the interface IP address that user inputs in the web browser is received.
In the present invention, web browser provides the input entrance of interface IP address, and user can enter rear input interface address.
Step 103, monitoring data is obtained from third party's interface according to the interface IP address of input.
The interface IP address of input directly corresponds to third party's interface, and web browser is according to interface IP address from corresponding third partyInterface obtains monitoring data.
Step 104, it arranges according to setting format to the monitoring data of acquisition.
The setting format can be the format of web browser default, and user can also as required carry out setting formatAdjustment.
Step 105, the monitoring data after arrangement is shown.
In the present invention, batch processing script is run, the local web browser for showing monitoring data is started;Receive userThe interface IP address inputted in the web browser;Monitoring data is obtained from third party's interface according to the interface IP address of input;According to settingThe formula that fixes arranges to the monitoring data of acquisition;Monitoring data after showing arrangement.Using the present invention program, by localWeb browser directly obtains monitoring data from third party's interface, without being obtained via monitoring server, reduces monitoring clothesThe burden of business device avoids because of the problem of causing to show slowly or fail when number of users is larger, high concurrent accesses, improves prisonControl the displaying efficiency of data;Also, after obtaining monitoring data, arranges, make to the monitoring data of acquisition according to setting formatExhibition method is more flexible.
The present invention program can be shown for the monitoring data of various data formats;A certain specific data can also be directed toThe monitoring data of format is shown, such as is only shown to the monitoring data of JSON data format, specifically:
In Fig. 1 process, after step 103 obtains monitoring data, this method further include: judge whether monitoring data is JSONData format, if it is, executing described the step of arranging according to setting format to the monitoring data of acquisition;Otherwise, it mentionsShow that user re-enters, returns to step 102.
JSON, that is, JavaScript object representation (JavaScript Object Notation), JSON data format isA kind of data interchange format of lightweight is easy to the parsing and generation of machine, net using the text formatting for being totally independent of languageNetwork transmission speed is fast, and more and more data-interfaces are carried out data transmission using JSON format.The prison obtained from third party's interfaceWhen control data are JSON data format, only by standard data format, wherein including the representation of key-value pair, it cannot make oneIntuitively know its data information.Therefore, for the monitoring data of JSON format, the present invention uses following implementation:
Pre-establish the mapping relations between key-value pair and ip alias;
After step 103 obtains monitoring data, this method further include: extract the key-value pair in monitoring data;It is closed according to mappingSystem determines ip alias corresponding with key-value pair;
Described to show that the monitoring data after arrangement includes: corresponding each ip alias shows the monitoring data after arrangement.
Further, the present invention can also preset the corresponding parameter threshold of parameters, and parameter threshold write-in is matchedSet file;After step 103 obtains monitoring data, this method further include:
Judge whether the parameters data in monitoring data are greater than corresponding parameter threshold, if it is, generating alarmInformation shows warning message.
Further, the present invention can also preset the periodic refreshing time, and configuration file is written in the periodic refreshing time;After the monitoring data shown after arranging, this method further include:
Start the timer about the periodic refreshing time, judge whether the periodic refreshing time reaches, is held if it is, returningThe step of row interface IP address according to input obtains monitoring data from third party's interface.
The present invention can also be added interface IP address, to show the monitoring data of more interface elements, specifically:
Trap address addition request;
The address element that user inputs in local web browser is received, the address element includes that need to add at leastOne interface IP address;
Step 103-105 can be then executed, to show the monitoring data obtained from the interface element of addition.
The monitoring data of displaying is varied, can obtain as needed, for example, performance data of server, commodity parameter numberAccording to or weather temperature supplemental characteristic.
The content of parameter that the performance data of server includes is, for example, CPU usage, memory usage, disk occupancyWith at least one in network inputs output information.
In Fig. 1 process step 104, the rule that can be defaulted according to web browser arranges to monitoring data, it is also possible thatThe monitoring data of acquisition is arranged using hypertext markup language (HTML, HyperText Markup Language) 5 standardsCloth.
HTML 5 has canvas element drag function, can be using one section of HTML code as a unity element, in painting canvasUpper any dragging, addition and duplication, realize diversified displaying, and can realize the topology diagram between element.
Below by the process of Fig. 2, the method for showing monitoring data to the present invention is illustrated comprising following stepIt is rapid:
Step 201, batch processing script is run.
In this example, batch processing script is run, for starting local web browser.Start web browser need it is some itPreceding additional step, comprising: after operation bat script, call main method, calculate port occupancy situation of current computer etc.;It opensDynamic web browser, and the configuration data defaulted in loading configuration file, are stored in memory as global variable.
Step 202, start the local web browser for showing monitoring data.
In this example, preset periodic refreshing time and the corresponding parameter threshold of parameters, by parameter threshold andConfiguration file is written in the periodic refreshing time;It is written the global variable in update memory about web browser after configuration file, usesThreshold decision is carried out in subsequent step.This example also pre-establishes the mapping relations between key-value pair and ip alias, such as wrapsInclude: key-value pair { ip: " 172.17.24.205 " corresponding alias is " shop ", key-value pair { ip: " 172.17.34.79 " correspondingAlias be " special topic ", key-value pair { ip: " 172.17.26.67 " corresponding alias is " backstage ", key-value pair { ip: "172.22.205.74 " corresponding alias is " front end processor ".
Step 203, the interface IP address that inputs in the web browser of user is received, according to the interface IP address of input from thirdSquare interface obtains monitoring data.
The monitoring data of this case-based system is that JSON format correspondingly in this step, inputs http agreement to be treatedJSON data format interface URL.
Step 204, judge whether monitoring data is JSON data format, if so, thening follow the steps 205;Otherwise, it promptsUser re-enters, and returns to step 203.
Step 205, the key-value pair in monitoring data is extracted, determines that ip corresponding with key-value pair is other according to mapping relationsName.
Step 206, trap address addition request receives the address element that user inputs in local web browser, describedAddress element includes at least one interface IP address that need to be added.
Element is the address of the objects such as server, some commodity, the city of required monitoring.
After receiving address element, it can be executed according to step 203-205, to obtain monitoring data and determine ip alias.
Step 207, it arranges according to setting format to the monitoring data of acquisition.
If obtaining the monitoring data of multiple interface IP addresses, it is directed to each interface IP address, is extracted from monitoring dataParameters data arrange to parameters data according to setting format.
The setting format can be the format of web browser default, and user can also as required carry out setting formatAdjustment.For example, for the case where monitoring data is performance data of server comprising CPU usage, memory usage, diskThe multiple parameters such as occupancy and network inputs output information, the sequencing of the settable parameter arrangement of user.
Step 208, the monitoring data after arrangement is shown.
In this example, the data topology figure of monitoring data is generated using 5 standard of HTML, shows the data topology figure of generation.As shown in figure 3, monitoring data is performance data of server for the monitoring data example shown.The interface Fig. 3 current presentation is prisonData are controlled, user can also click " threshold value setting ", " refreshing setting " on interface as needed, to carry out parameter threshold and timingThe setting of refresh time.
Step 209, judge whether the parameters data in monitoring data are greater than corresponding parameter threshold, if it is,Warning message is generated, shows warning message.
Parameter values within a certain range when just it is paid close attention to, corresponding threshold value has been arranged in advance.Such as monitoring cpuUtilization rate, parameter threshold 80%;If it exceeds 80%, then alarm is shown on displayed page.
Step 210, timer of the starting about the periodic refreshing time, judges whether the periodic refreshing time reaches, if so,Then feedback step 203;Otherwise it continues waiting for.
The periodic refreshing time is the time interval that monitoring data refreshes, and what is refreshed is obtained from third party's interfaceJson data.
The object of monitoring may include:
1. server performance monitor
According to different server ip address is inputted, added for information such as the CPU of server, memory, disk, network I/OsThreshold values is monitored, can intuitively check the current behaviour in service of each server.
2. Article Surveillance
According to different SKU (SPU) IP address is inputted, monitoring valve is added for information such as promotion price, the market prices of commodityValue, can intuitively check the current information of commodity.Wherein, SKU, that is, commodity stocks unit is Stock Keeping UnitAbbreviation, SPU, that is, standardized product unit is the abbreviation of Standard Product Unit.
3. weather temperature monitors
According to IP address of the input about different cities, obtain to the Weather information under Yingcheng City, for temperature, humidity,The threshold values (just needing to pay close attention to when to some range or critical point) of the information such as wind speed addition monitoring, can intuitively check each cityThe weather integral status in city.
In this example, http protocol is accessed by Http client, interface data can be obtained in batches, and parse JSON dataFormat;Compatible all JSON formatted data interfaces, lightweight green application, decompression.By reading local profile, thanCompared with the state of the corresponding interface data and threshold values, and realize the periodic refreshing function of the topological diagram on painting canvas or table.Also, it realizesLocalization client carries out the starting of weblication, realizes that the change of configuration comes into force without restarting.
Referring to fig. 4, the terminal structure schematic diagram of monitoring data is shown for the present invention, which includes starting trigger unitAnd web browser;
The starting trigger unit;Batch processing script is run, the web browser for showing monitoring data is started;
The web browser after starting, receives the interface IP address that user inputs in the web browser;According to connecing for inputPort address obtains monitoring data from third party's interface;It arranges according to setting format to the monitoring data of acquisition;Show arrangementMonitoring data afterwards.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the inventionWithin mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

CN201510324393.6A2015-06-122015-06-12Show the method and terminal of monitoring dataActiveCN105100203B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510324393.6ACN105100203B (en)2015-06-122015-06-12Show the method and terminal of monitoring data

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510324393.6ACN105100203B (en)2015-06-122015-06-12Show the method and terminal of monitoring data

Publications (2)

Publication NumberPublication Date
CN105100203A CN105100203A (en)2015-11-25
CN105100203Btrue CN105100203B (en)2019-03-15

Family

ID=54579720

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510324393.6AActiveCN105100203B (en)2015-06-122015-06-12Show the method and terminal of monitoring data

Country Status (1)

CountryLink
CN (1)CN105100203B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105701151B (en)*2015-12-292019-09-24浪潮(北京)电子信息产业有限公司A kind of system information acquisition method and device
CN105608617A (en)*2016-01-062016-05-25广州唯品会信息科技有限公司Linked display method and system of detailed commodity page
CN107562606A (en)*2017-08-292018-01-09郑州云海信息技术有限公司A kind of alarm monitoring data display method and device
CN109697075A (en)*2017-10-202019-04-30北京京东尚科信息技术有限公司File updating method, system and device
CN110827937B (en)*2019-09-202023-11-24万达信息股份有限公司Data display method and system applied to medical field
CN115914504A (en)*2022-11-252023-04-04杭州当虹科技股份有限公司 Realize the method of clipping and stripping video files in HTML5 page

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101257501A (en)*2008-04-112008-09-03杭州华三通信技术有限公司Data leading-in method, system as well as Web server
CN101282365A (en)*2008-06-042008-10-08腾讯科技(深圳)有限公司System and method for obtaining point-to-point data
CN102902745A (en)*2012-09-172013-01-30国家基础地理信息中心Web service integration method of geographic information
CN103488508A (en)*2013-09-182014-01-01贝壳网际(北京)安全技术有限公司Browser working method, browser and terminal equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101883131B (en)*2010-03-252013-09-04艾默生网络能源有限公司Environmental data collector
WO2014011858A1 (en)*2012-07-132014-01-16Why Not Innovations, LlcExercise monitoring system and method of use

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101257501A (en)*2008-04-112008-09-03杭州华三通信技术有限公司Data leading-in method, system as well as Web server
CN101282365A (en)*2008-06-042008-10-08腾讯科技(深圳)有限公司System and method for obtaining point-to-point data
CN102902745A (en)*2012-09-172013-01-30国家基础地理信息中心Web service integration method of geographic information
CN103488508A (en)*2013-09-182014-01-01贝壳网际(北京)安全技术有限公司Browser working method, browser and terminal equipment

Also Published As

Publication numberPublication date
CN105100203A (en)2015-11-25

Similar Documents

PublicationPublication DateTitle
CN105100203B (en)Show the method and terminal of monitoring data
CN101442515B (en)Remote control method based on browser
US20170187842A1 (en)Capturing and replaying application sessions using resource files
US8245125B1 (en)Hybrid rendering for webpages
US11334224B2 (en)Determining variations of single-page applications
CN104598513B (en)A kind of method of data flow control and system based on web page frame
US20210337015A1 (en)Method and system of application development for multiple device client platforms
CN110209966B (en)Webpage refreshing method, webpage system and electronic equipment
CN105786455B (en)Data processing method and device and terminal
CN109740081B (en)Page loading method and device
KR20150009996A (en)Method and device for displaying pushed information
JP6404816B2 (en) Method and apparatus for responding to web page access request
AU2018203252A1 (en)Systems and methods for processing web page data
CN115309470B (en)Method, device, equipment and storage medium for loading widget
CN114491354B (en) A page generation method, device and computer readable storage medium
WO2020143159A1 (en)User interface processing method and device
CN112486797B (en) Interface testing methods and devices
CN114218890A (en)Page rendering method and device, electronic equipment and storage medium
CN105677678B (en)Method and system for determining first screen position of webpage and displaying webpage information
CN107317788A (en)Real time data method for pushing and device
CN114968528A (en)Policy-based information processing method, electronic device, and storage medium
CN112650959A (en)Page loading duration statistical method, device, equipment and storage medium
CN108038150B (en)Webpage opening method and device and terminal equipment
CN114518924A (en)Page display method, device, equipment and storage medium for mobile client
CN107341234A (en)Display methods, device and the computer-readable recording medium of the page

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp