CN110351105B - Sampling configuration method and device - Google Patents
Sampling configuration method and device Download PDFInfo
- Publication number
- CN110351105B CN110351105B CN201810284923.2A CN201810284923A CN110351105B CN 110351105 B CN110351105 B CN 110351105B CN 201810284923 A CN201810284923 A CN 201810284923A CN 110351105 B CN110351105 B CN 110351105B
- Authority
- CN
- China
- Prior art keywords
- picture
- request
- client
- log
- response
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides a sampling configuration method and a device, comprising a client sends a first log reporting request to a server; and receiving a response which is returned by the server and added with the picture, and configuring the sampling rate by the client according to the attribute information of the picture in the response. According to the method and the device, the first log reporting request sent to the server by the client can be used, and after the server determines that the first log reporting request is a request for requesting the configuration of the sampling rate, the server directly responds to the request in a picture returning mode, so that the client configures the sampling rate according to the attribute information of the picture in the response, the problem that the request for pulling and configuring once needs to be sent is solved, the process of sampling configuration is simplified, the use threshold is reduced, and the application range is expanded.
Description
Technical Field
The present application relates to the field of information technologies, and in particular, to a method and an apparatus for sample configuration.
Background
When a user accesses internet services, the whole access process can be roughly divided into three stages: page generation, page loading, and page running. The front end monitors the states of the loaded pages and the running pages of the key monitoring pages, specifically, logs uploaded by the client are obtained and analyzed to determine whether the front end access is abnormal, but as the service level of the front end monitoring system is higher and higher, the front end logs need to be sampled in a certain proportion to save bandwidth and machine operation cost.
At present, there are two schemes for acquiring logs in front-end monitoring, where the scheme is as follows: the method comprises the steps that a client side makes a head request to a server to inform the server that logs are about to be uploaded, then the client side sends a sampling rate configuration acquisition request to the server through an application reporting Kit (SDK), after the server acquires the request, a sampling rate configuration file is returned to the client side, so that the client side can upload logs in a certain proportion to the server according to corresponding sampling rate samples, wherein the mode of returning the sampling rate configuration file is realized by utilizing an Ajax (Asynchronous Javascript And XML) technology, And the Ajax is a technology for realizing Asynchronous data updating between a browser And the server. Scheme II: the client uploads all generated logs to the server, and the server selects logs in a certain proportion for analysis according to a preset sampling rate.
However, in the current scheme, the first scheme requires the client to additionally send a sampling rate configuration acquisition request to the server, the sampling configuration process is complicated, and therefore the waste of broadband and machine cost is caused, and the second scheme requires the client to upload a large amount of non-sampled logs to the server, and also the waste of broadband and machine cost is caused.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present application provide a sampling configuration method to send a first log reporting request to a server by a client; and the client configures the sampling rate according to the attribute information of the picture in the response, thereby solving the problem of the prior art that the sampling configuration process is more complicated, which causes the waste of broadband and machine cost.
Correspondingly, the embodiment of the application also provides a sampling configuration device, which is used for ensuring the realization and the application of the method.
In order to solve the above problem, an embodiment of the present application discloses a client-side sample configuration method, including:
sending a first log reporting request to a server;
receiving a response returned by the server; a picture is added to the response;
and configuring the sampling rate according to the attribute information of the pictures in the response.
The embodiment of the application also discloses a sampling configuration method at the server side, which comprises the following steps:
receiving a first log reporting request sent by a client;
after determining that a sampling rate configuration operation needs to be performed for the first log reporting request, adding a picture in a response to the first log reporting request;
And returning the response to the client so that the client configures the sampling rate according to the attribute information of the picture in the response.
Correspondingly, the embodiment of the present application further discloses a client-side sampling configuration device, which includes:
a first sending module, configured to send a first log reporting request to a server;
the first receiving module is used for receiving a response returned by the server; pictures are added in the response;
and the configuration module is used for configuring the sampling rate according to the attribute information of the pictures in the response.
Correspondingly, the embodiment of the present application further discloses a sampling configuration device on the server side, which includes:
the second receiving module is used for receiving a first log reporting request sent by the client;
a determining module, configured to determine that the first log reporting request is a request for requesting sample rate configuration;
a generating module, configured to add a picture in a response to the first log reporting request;
and the third sending module is used for returning the response to the client so that the client can configure the sampling rate according to the attribute information of the picture in the response.
Correspondingly, this application embodiment still discloses a device, its characterized in that includes:
One or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform a client-side sample configuration method.
Accordingly, embodiments of the present application also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform a client-side sample configuration method.
Correspondingly, this application embodiment still discloses a device, its characterized in that includes:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform a server-side sample configuration method.
Accordingly, embodiments of the present application also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform a server-side sample configuration method.
The embodiment of the application has the following advantages:
the embodiment of the application comprises the following steps: sending a first log reporting request to a server by a client; and receiving the response added with the picture returned by the server, and configuring the sampling rate by the client according to the attribute information of the picture in the response. According to the method and the device, the first log reporting request sent to the server by the client can be used, and after the server determines that the first log reporting request is a request for requesting the configuration of the sampling rate, the server directly responds to the request in a picture returning mode, so that the client configures the sampling rate according to the attribute information of the picture in the response, the problem that the request for pulling and configuring once needs to be sent is solved, the process of sampling configuration is simplified, the use threshold is reduced, and the application range is expanded.
Drawings
FIG. 1 is an architecture diagram of a sampling configuration system according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating steps of a sample configuration method at a system level according to an embodiment of the present application;
fig. 3 is a flowchart illustrating specific steps of a method for sample configuration at a system level according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating steps of a client-side sample configuration method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating steps of a method for server-side sampling configuration according to an embodiment of the present application;
fig. 6 is a block diagram of a client-side sampling configuration apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of a server-side sampling configuration apparatus according to an embodiment of the present application;
fig. 8 is a specific structural diagram of a client-side sampling configuration apparatus according to an embodiment of the present application;
fig. 9 is a specific structural diagram of a server-side sampling configuration apparatus according to an embodiment of the present application;
FIG. 10 is a block diagram of a sampling configuration system according to an embodiment of the present application;
fig. 11 is a schematic hardware structure diagram of an apparatus according to another embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
In the embodiment of the application, when a user accesses an application page through a client, the client generates logs related to page loading and running, and front-end monitoring refers to monitoring states of the page loading and the page running, specifically, a log collection server obtains logs reported by the client, and the logs are analyzed through a server to determine whether the front-end access is abnormal.
Further, referring to fig. 1, an architecture diagram of a sampling configuration system in an embodiment of the present application is shown. The method comprises the following steps: the server 10 may be a log collection server, configured to receive a log reported by the client 20 through a transmission channel, and analyze the log, and the client 20 may be a mobile terminal, a computer, or the like installed with an application, and may respond to a corresponding page according to an operation of a user in the application of the client 20. In addition, the transmission channel can transmit instructions, and also can transmit pictures or files in other formats in a mode of establishing picture objects to create labels. The client 20 may be a mobile phone client or a personal computer client, and the embodiments of the present application do not limit the present application.
In the embodiment of the present application, the method supports an example of a picture format, the server 10 may set the sampling configuration to the picture format, the attribute information of the picture expresses the sampling rate, the server 10 creates a tag through an object corresponding to the picture and returns the picture to the client 20, and the client 20 may determine the sampling rate by analyzing the attribute information in the picture, and the file sending and obtaining thresholds of the picture format are low, and the usage scenarios are also wide, for example, the browser and the mailbox can both send pictures, and the Ajax mode can only be used in a browser.
In this embodiment of the present application, when performing a log acquisition loop of front-end monitoring, a client 20 may generate a first log reporting request supporting a picture format and send the first log reporting request to a server 10, after receiving the first log reporting request, the server 10 determines whether a sampling rate configuration operation needs to be performed for the first log reporting request, and if the first log reporting request is received, a response is performed, where the response operation is: configuring the sampling rate into attribute information of the picture, returning the picture to the client 20, configuring the sampling rate by the client 20 according to the received attribute information of the picture, extracting logs in a corresponding proportion according to the configured sampling rate, and reporting the logs to the server 10 for analysis.
Compared with the prior art, the method and the device have the advantages that the sampling rate is configured through the picture format which occupies a smaller space, the broadband flow can be saved, and compared with the prior art that the sampling configuration can only be operated in the browser environment, the sampling configuration can be operated in other environments, such as a mail mode, the operation environment is not limited to the browser environment, and the sampling configuration can be operated in other environments.
Therefore, the client can send the first log reporting request to the server once through the client, and directly respond to the request in a picture returning mode by the server after the server determines that the first log reporting request is a request for requesting the sampling rate configuration, so that the client configures the sampling rate according to the attribute information of the picture in the response, the problem that the request for pulling configuration needs to be sent once in the prior art is solved, the process of sampling configuration is simplified, the machine cost is reduced, the sampling configuration is obtained in a picture transmission mode, the use threshold is reduced, and the application range is expanded.
Referring to fig. 2, a flowchart illustrating steps of a system-level sample configuration method provided in the present application is shown, which may specifically include the following steps:
Step 101, a client sends a first log reporting request to a server.
In the embodiment of the application, a client sends a first log reporting request to a server to start a log reporting process, and the first log reporting request is used for informing the server of starting the log reporting process and enabling the server to trigger a step of returning a picture response.
It should be noted that, since the server may return the picture response to the client in the form of a picture, the first log reporting request may support a picture format, for example, the first log reporting request may include a get request in an http protocol, and a head request and a post request in the http protocol cannot be used as the first log reporting request, because the get request in the http protocol may support the picture format, and the head request and the post request may not support the picture format.
Step 102, a server receives a first log reporting request sent by a client.
In the embodiment of the application, after receiving a first log reporting request sent by a client, a server actively triggers a log reporting process, and then the server feeds back sampling configuration to the client, so that the client selectively reports logs according to a sampling rate corresponding to the sampling configuration, thereby saving broadband traffic and improving the efficiency of front-end monitoring.
Step 103, the server determines that the first log reporting request is a request for requesting sample rate configuration.
In the embodiment of the application, when the client reports the log for the first time, the sampling rate of the client generally needs to be configured, and the server can judge whether the log is reported for the first time through cookie or session information in a session corresponding to the client, and can directly report the log according to the original sampling rate if the log is not reported for the first time. In addition, when the first log reporting request is a set type request, the server may determine that the first log reporting request is a request for requesting sample rate configuration. For example, when the first log report request is a get request in the http protocol, it may be determined that the first log report request is a request for requesting sample rate configuration, and when the first log report request is a head request and a post request, it may not be determined that the first log report request is a request for requesting sample rate configuration.
And step 104, adding pictures in a response aiming at the first log reporting request by the server.
In this step, in the prior art, the client feeds back the sampling configuration file to the server by using the Ajax technology through the application reporting SDK, where an additional SDK needs to be used for implementation, an application environment of the Ajax technology is limited to a browser environment, and when the configuration file is transmitted by using Ajax, a format of the configuration file is an Object markup language format (JSON, JavaScript Object notification), and a file in the format is difficult to parse, so that a creation cost is high.
Compared with the prior art, in the embodiment of the present application, the sampling rate may be configured by using a picture file with a lower transmission threshold and a lower creation threshold, specifically, the sampling rate may be set as attribute information of a picture, and the picture may be a picture preset in a server, for example, a newly created picture according to a sampling rate of an actual requirement for a worker.
For example, a picture file with a sampling rate of ten percent may be stored in the server, specifically, the width parameter (width) or the height parameter (height) of the picture is set to 10, and after receiving the first log reporting request, the server adds the picture to a response and returns the response to the client.
For example, after the server receives the first log report request, when the sampling rate of the actual demand is fifteen percent, the server may create a new picture, set the width parameter (width) or the height parameter (height) of the picture to 15, and add the picture to the response and return the picture to the client.
Step 105, the server returns the response to the client.
In this step, since the transmission threshold of the response including the picture is low and other execution environments including the browser environment, such as mail, are supported, the server can return the response including the picture to the client with a low threshold.
For example, a picture may be transferred by establishing a new image () tag, a new image (width, height) is defined by setting a picture path, which is equivalent to caching one picture, and then a response including the picture is returned to the client by a transfer operation of the tag.
In addition, the picture can be returned to the client in the form of a mail.
And 106, the client receives a response returned by the server, wherein the response is added with the picture.
In this step, the client receives the response returned by the server, which is equivalent to the client receiving a configuration file of the sampling rate, and the configuration file is expressed in the form of a picture.
And 107, the client configures the sampling rate according to the attribute information of the pictures in the response.
In the step, the client analyzes the received picture to obtain the attribute information of the picture, and configures the sampling rate according to the sampling rate information expressed by the attribute information, so that the subsequent log uploading operation can be performed according to the updated sampling rate.
Certainly, in the embodiment of the present application, the client and the server may agree on a resolution rule for a width or a height of the picture in advance, for example, agree on a sampling rate corresponding to the width or agree on a sampling rate corresponding to the height. Then after receiving the response, the width or height is analyzed according to the agreed analysis rule, so as to obtain the sampling rate.
For example, the width of the picture obtained by analysis is 20, so that the sampling rate can be determined to be 20%, at this time, the client can call a setting interface corresponding to the application, the log uploading sampling rate is set to be 20%, and the subsequent client can extract 20% of all logs generated by the front end to upload.
To sum up, the sampling configuration method provided by the embodiment of the present application includes sending, by a client, a first log reporting request to a server; and receiving a response which is returned by the server and added with the picture, and configuring the sampling rate by the client according to the attribute information of the picture in the response. According to the method and the device, the first log reporting request sent to the server by the client can be sent, and after the server determines that the first log reporting request is a request for requesting the configuration of the sampling rate, the server directly responds to the request in a picture returning mode, so that the client configures the sampling rate according to the attribute information of the picture in the response, the problem that the request for pulling the configuration needs to be sent additionally is solved, the process of sampling configuration is simplified, the use threshold is reduced, and the application range is expanded.
Referring to fig. 3, a flowchart illustrating specific steps of a sampling configuration method provided in the present application is shown, which may specifically include the following steps:
step 201, the client sends a first log reporting request to the server.
This step can refer to step 101 described above, and is not described here.
Optionally, the first log reporting request supports a picture format. Since the transmission threshold of the response including the picture is low and other execution environments including the browser environment, such as mail, are supported, the server can return the response including the picture to the client with a low threshold.
Optionally, the first log reporting request includes a get request in an http protocol.
In practical applications, the first log reporting request may support a picture format, and therefore, in the http protocol, the first log reporting request may support a picture formatThe report-logging request may include a get request in the http protocol, and, in contrast, a head request and a post request in the http protocol cannot be supported by the first report-logging request, because the get request in the http protocol may support a picture format, and the head request and the post request may not support the picture format. For example, the get request may be:http://log.server.com/ r.pngtype=xx。
step 202, the server receives a first log reporting request sent by the client.
This step can refer to step 102, which is not described herein.
Step 203, the server determines that the first log reporting request is a request for requesting sample rate configuration.
This step can refer to step 103, which is not described herein.
Optionally, step 203 may include sub-step 2031 and sub-step 2032.
Substep 2031, determining the first log reporting request as a request for requesting sample rate configuration when determining that the first log reporting request is the log reporting request received for the first time through the session corresponding to the client.
In this step, when the client reports the log for the first time, the client needs to configure the sampling rate, the server may determine whether the log is reported for the first time through a cookie or session information in a session corresponding to the client, if the log is not reported for the first time, the server may directly report the log according to the original sampling rate, and if the log is determined to be reported for the first time, the server may add a picture to a response of the first log reporting request, so that the client configures the sampling rate according to attribute information of the picture in the response.
Sub-step 2032, when the first log reporting request is a set type of request, determining that the first log reporting request is a request for requesting a sample rate configuration.
In this step, when the first log reporting request is a set type of request, the server may also determine that the first log reporting request is a request for requesting a sample rate configuration. For example, when the first log reporting request is a get request in the http protocol, it may be determined that the first log reporting request is a request for requesting sample rate configuration, and when the first log reporting request is a head request and a post request, it may not be determined that the first log reporting request is a request for requesting sample rate configuration. Because the get request in the http protocol can support the picture format, while the head request and the post request do not support the picture format. For example, the get request may be: http:// log.server.com/r.pngtype ═ xx.
Step 204, the server adds the picture in the response to the first log reporting request.
For example, the server generates a response to the get request, and then adds a new image () tag to the response, by which a picture of width or height corresponding to the sampling rate is added.
This step can refer to step 104 described above, and is not described here.
Optionally, the picture comprises a blank picture.
In the present application, in order to save broadband traffic as much as possible and reduce the size of the picture, the picture may be set as a blank picture, so that the occupied space of the picture and the transmission cost are further reduced, and the blank picture does not affect the configuration of the sampling rate with respect to the picture size.
Optionally, the resolution of the picture is smaller than a preset threshold.
Similarly, in the present application, in order to save broadband traffic as much as possible and reduce the size of the picture, a resolution preset threshold may be set, so that the resolution of the picture is smaller than the preset threshold, and the occupied space and transmission cost of the picture are further reduced, and the picture with lower resolution does not affect the configuration of the sampling rate relative to the picture size.
Optionally, the attribute information of the picture includes a width of the picture or a height of the picture.
In the embodiment of the application, the setting cost and the difficulty of the width of the picture and the height of the picture are low, and the width of the picture and the height of the picture are adapted to the picture object to create the label, so that the machine cost of the whole scheme is low.
For example, the width parameter (width) or height parameter (height) of the picture is set to 10, and after the client parses the picture, the sampling rate can be determined to be 10%.
Optionally, step 204 may include sub-steps 2041, 2042.
In substep 2041, the server generates a response to the first log reporting request and sets a picture object creation tag in the response.
In this step, the transmission of the picture may be performed using a picture object creation tag (new image) in the scripting language (JS, javascript), which can be widely applied to other execution environments including a browser environment, such as mail, and thus, the server may return a response including the picture to the client with a low threshold.
In sub-step 2042, the server adds the picture by creating a tag through the picture object.
In this step, a picture file may be stored in the server, the picture may be transmitted by establishing a new image () tag, a storage path of the picture in the server is set, and a new image (width, height) is defined, which corresponds to caching one picture, and then a response including the picture is returned to the client through a transmission operation of the tag.
Optionally, step 204 may further include sub-steps 2043 and 2044.
In sub-step 2043, the server determines the sampling rate that needs to be configured at the client.
In the embodiment of the present application, the requirement of the front-end monitoring on the sampling rate may be variable, for example, when the load of the server is less than a certain threshold, the sampling rate may be increased so as to increase the accuracy of the front-end monitoring, and when the load of the server is too large, the sampling rate may be decreased so as to enable the efficiency of the front-end monitoring to be provided, so that the server may determine the sampling rate that needs to be configured at the client according to the load state of the server.
Substep 2044, the server adds the picture corresponding to the attribute information to the response according to the attribute information corresponding to the sampling rate.
In this embodiment, the server may also create a new picture file according to the actually required sampling rate instead of storing the picture file, for example, after the server receives the first log reporting request, when the actually required sampling rate is fifteen percent, the server may create a new picture, set the width parameter (width) or height parameter (height) of the picture to 15, add the picture to the response, and return the response to the client.
Step 205, the server returns the response to the client.
This step can refer to step 105, which is not described herein.
In step 206, the client receives a response returned by the server, and the response is added with the picture.
This step may refer to step 106, which is not described herein again.
Step 207, the client configures the sampling rate according to the attribute information of the picture in the response.
This step can refer to step 107 described above, and will not be described herein.
Optionally, step 207 may further include substep 2071, substep 2072, and substep 2073.
Substep 2071, acquiring the attribute information of the picture.
In this step, the client analyzes the received picture, and the attribute information of the picture can be acquired.
And a substep 2072 of converting the attribute information into a sampling rate according to a preset rule.
For example, since the width of the picture obtained by over-analysis is 20%, the sampling rate can be determined to be 20%.
Substep 2073, configuring according to the sampling rate.
The client can call a setting interface corresponding to the application to set the sampling rate, for example, if the width of the picture obtained by analysis is 20, the log uploading sampling rate is set to be 20%, and the subsequent client can extract 20% of all logs generated by the front end to upload.
And 208, the client sends a second log reporting request to the server according to the configuration of the sampling rate.
In the step, after the client updates and completes the configuration of the sampling rate, the client can sample the log according to the updated sampling rate, then generates a second log reporting request aiming at the sampled log, and sends the second log reporting request to the server for log reporting.
Specifically, the first log reporting request may include a head request in an http protocol, for example, the head request may be:http://log.server.com/r.pngtype=xx。
step 209, the server receives a second log reporting request sent by the client according to the sampling rate, and stores information in the second log reporting request.
In the step, the server receives a second log reporting request sent by the client according to the sampling rate, and stores and analyzes information in the second log reporting request to determine whether the application front end is abnormal.
In the application, the sampling operation for the front end log is completed by the client side, and the resource of the server is not occupied, so that the machine cost is reduced.
To sum up, the sampling configuration method provided by the embodiment of the present application includes sending, by a client, a first log reporting request to a server; and receiving a response which is returned by the server and added with the picture, and configuring the sampling rate by the client according to the attribute information of the picture in the response. According to the method and the device, the first log reporting request sent to the server by the client can be sent, and after the server determines that the first log reporting request is a request for requesting the configuration of the sampling rate, the server directly responds to the request in a picture returning mode, so that the client configures the sampling rate according to the attribute information of the picture in the response, the problem that the request for pulling the configuration needs to be sent additionally is solved, the process of sampling configuration is simplified, the use threshold is reduced, and the application range is expanded.
Referring to fig. 4, a flow chart showing specific steps of a sample configuration method at a client side of the present application is shown, including:
Optionally, step 303 may further include sub-steps 3031, 3032, and 3033.
Substep 3031, obtaining attribute information of the picture.
In this step, the client analyzes the received picture, and the attribute information of the picture can be acquired.
Sub-step 3032, converting the attribute information into a sampling rate according to a preset rule.
For example, since the width of the picture obtained by the over-analysis is 20%, the sampling rate can be determined to be 20%.
Sub-step 3033, configuring according to said sampling rate.
Optionally, the picture comprises a blank picture.
Optionally, the resolution of the picture is smaller than a preset threshold.
Optionally, the attribute information of the picture includes a width of the picture or a height of the picture.
Optionally, the first log reporting request includes a get request in an http protocol.
To sum up, the sampling configuration method provided by the embodiment of the present application includes sending, by a client, a first log reporting request to a server; and receiving a response which is returned by the server and added with the picture, and configuring the sampling rate by the client according to the attribute information of the picture in the response. According to the method and the device, the first log reporting request sent to the server by the client can be sent, and after the server determines that the first log reporting request is a request for requesting the configuration of the sampling rate, the server directly responds to the request in a picture returning mode, so that the client configures the sampling rate according to the attribute information of the picture in the response, the problem that the request for pulling the configuration needs to be sent additionally is solved, the process of sampling configuration is simplified, the use threshold is reduced, and the application range is expanded.
Referring to fig. 5, a flowchart illustrating specific steps of a sample configuration method on the server side of the present application is shown, including:
In the embodiment of the application, a client sends a first log reporting request to a server to start a log reporting process, and the first log reporting request is used for informing the server of starting the log reporting process and enabling the server to trigger a step of returning a picture response.
Optionally, step 402 further includes substeps 4021 and 4022.
In sub-step 4021, when it is determined that the first log reporting request is the log reporting request received for the first time through the session corresponding to the client, it is determined that the first log reporting request is a request for requesting sampling rate configuration.
This step may refer to step 2031, which is not described herein again.
Sub-step 4022, determining the first log reporting request as a request for requesting a sample rate configuration when the first log reporting request is a set type of request.
This step may refer to step 2032, which is not described herein again.
Optionally, the first log reporting request supports a picture format.
Optionally, the picture comprises a blank picture.
Optionally, the resolution of the picture is smaller than a preset threshold.
Optionally, the attribute information of the picture includes a width of the picture or a height of the picture.
Optionally, the first log reporting request includes a get request in an http protocol.
Optionally, step 403 may include sub-step 4031, sub-step 4032.
In substep 4031, the server generates a response to the first log report request and sets a picture object creation tag in the response.
This step can refer to step 2041, which is not described herein again.
Substep 4032, the server creates a label to add the picture through the picture object.
This step can refer to step 2042, which is not described herein again.
Optionally, step 403 may further include sub-step 4033, sub-step 4034.
Substep 4033, the server determines the sample rate that needs to be configured at the client.
This step can refer to step 2043, which is not described herein again.
And a substep 4034, the server adds the picture corresponding to the attribute information to the response according to the attribute information corresponding to the sampling rate.
This step can refer to step 2044, which is not described herein again.
Optionally, after step 404, the method may further include: and receiving a second log reporting request sent by the client according to the sampling rate, and storing information in the second log reporting request.
In the embodiment of the application, the server can perform asynchronous interaction with the client at any time, so that the client can acquire the configuration pictures of the sampling rate from the server, wherein the server can store a plurality of preset sampling rate configuration pictures for the client to select and use, and in addition, the server can also generate the picture files corresponding to the sampling rate in real time according to actual requirements instead of storing the sampling rate configuration pictures for the client to use, thereby greatly improving the applicability of sampling configuration.
To sum up, the sampling configuration method provided by the embodiment of the present application includes sending, by a client, a first log reporting request to a server; and receiving a response which is returned by the server and added with the picture, and configuring the sampling rate by the client according to the attribute information of the picture in the response. According to the method and the device, the first log reporting request sent to the server by the client can be used, and after the server determines that the first log reporting request is a request for requesting the configuration of the sampling rate, the server directly responds to the request in a picture returning mode, so that the client configures the sampling rate according to the attribute information of the picture in the response, the problem that the request for pulling and configuring once needs to be sent is solved, the process of sampling configuration is simplified, the use threshold is reduced, and the application range is expanded.
Referring to fig. 6, a block diagram of another sampling configuration apparatus in a specific example of the present application is shown, which includes a client 500.
Client 500 may include the following modules:
a first sending module 501, configured to send a first log reporting request to a server.
A first receiving module 502, configured to receive a response returned by the server; a picture is added to the response.
A configuration module 503, configured to configure the sampling rate according to the attribute information of the picture in the response.
Referring to fig. 7, a block diagram of a sampling configuration apparatus in a specific example of the present application is shown, including a server 600.
The server 600 may include the following modules:
the second receiving module 601 is configured to receive a first log reporting request sent by a client.
A determining module 602, configured to determine that the first log reporting request is a request for requesting sample rate configuration.
A generating module 603, configured to add a picture to a response to the first log reporting request after determining that a sampling rate configuration operation needs to be performed for the first log reporting request.
A third sending module 604, configured to return the response to the client, so that the client configures a sampling rate according to attribute information of a picture in the response.
To sum up, the sampling configuration device provided by the embodiment of the present application includes a client sending a first log reporting request to a server; and receiving a response which is returned by the server and added with the picture, and configuring the sampling rate by the client according to the attribute information of the picture in the response. According to the method and the device, the first log reporting request sent to the server by the client can be sent, and after the server determines that the first log reporting request is a request for requesting the configuration of the sampling rate, the server directly responds to the request in a picture returning mode, so that the client configures the sampling rate according to the attribute information of the picture in the response, the problem that the request for pulling the configuration needs to be sent additionally is solved, the process of sampling configuration is simplified, the use threshold is reduced, and the application range is expanded.
Referring to fig. 8, a specific block diagram of a sampling configuration apparatus in a specific example of the present application is shown, which includes a client 700.
The client 700 may include the following modules:
a first sending module 701, configured to send a first log reporting request to a server.
A first receiving module 702, configured to receive a response returned by the server; a picture is added to the response.
A configuration module 703, configured to configure the sampling rate according to the attribute information of the picture in the response.
Optionally, the configuration module 703 may include:
and the obtaining submodule is used for obtaining the attribute information of the picture.
And the conversion sub-module is used for converting the attribute information into a sampling rate according to a preset rule.
And the configuration submodule is used for configuring according to the sampling rate.
A second sending module 704, configured to send a second log reporting request to the server according to the configuration of the sampling rate.
Referring to fig. 9, a detailed block diagram of a sampling configuration apparatus in a specific example of the present application is shown, including a server 800.
The server 800 may include the following modules:
a second receiving module 801, configured to receive a first log reporting request sent by a client.
A determining module 802, configured to determine that the first log reporting request is a request for requesting sample rate configuration.
Optionally, the determining module 802 may include:
a report confirmation submodule, configured to determine that the first log report request is a request for requesting sample rate configuration when it is determined that the first log report request is an initially received log report request through a session corresponding to the client; or, when the first log reporting request is a set type request, determining that the first log reporting request is a request for requesting sample rate configuration.
A generating module 803, configured to add a picture to a response to the first log reporting request.
Optionally, the generating module 803 may include:
and the label creating submodule is used for generating a response aiming at the first log reporting request and setting a picture object creating label in the response.
And the first picture adding sub-module is used for adding the picture through the picture object creation label.
And the determining submodule is used for determining the sampling rate which needs to be configured at the client.
And the second picture adding sub-module is used for adding the picture corresponding to the attribute information into the response according to the attribute information corresponding to the sampling rate.
A third sending module 804, configured to return the response to the client, so that the client configures a sampling rate according to attribute information of a picture in the response.
A third receiving module 805, configured to receive a second log reporting request sent by the client according to the sampling rate, and store information in the second log reporting request.
Referring to fig. 10, a detailed block diagram of a sampling configuration system in a specific example of the present application is shown, including a server 900 and a client 1000.
The server 900 includes:
a second receiving module 901, configured to receive the first log reporting request sent by the client.
A determining module 902, configured to determine that the first log reporting request is a request for requesting sample rate configuration.
A generating module 903, configured to add a picture in a response to the first log reporting request.
A third sending module 904, configured to return the response to the client, so that the client configures a sampling rate according to attribute information of a picture in the response.
A third receiving module 905, configured to receive a second log reporting request sent by the client according to the sampling rate, and store information in the second log reporting request.
The client 1000 includes:
a first sending module 1001, configured to send a first log reporting request to a server.
A first receiving module 1002, configured to receive a response returned by the server; a picture is added to the response.
A configuration module 1003, configured to configure a sampling rate according to the attribute information of the picture in the response.
A second sending module 1004, configured to send a second log reporting request to the server according to the configuration of the sampling rate.
To sum up, the sampling configuration device provided by the embodiment of the present application includes a client sending a first log reporting request to a server; and receiving a response which is returned by the server and added with the picture, and configuring the sampling rate by the client according to the attribute information of the picture in the response. According to the method and the device, the first log reporting request sent to the server by the client can be sent, and after the server determines that the first log reporting request is a request for requesting the configuration of the sampling rate, the server directly responds to the request in a picture returning mode, so that the client configures the sampling rate according to the attribute information of the picture in the response, the problem that the request for pulling the configuration needs to be sent additionally is solved, the process of sampling configuration is simplified, the use threshold is reduced, and the application range is expanded.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present application. Referring to FIG. 11, a server 1100 may be used to implement the sample configuration method provided in the embodiments described above. The server 1100 may vary widely in configuration or performance and may include one or more Central Processing Units (CPUs) 1122 (e.g., one or more processors) and memory 1132, one or more storage media 1130 (e.g., one or more mass storage devices) storing applications 1142 or data 1144. Memory 1132 and storage medium 1130 may be, among other things, transitory or persistent. The program stored on the storage medium 1130 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 1122 may be provided in communication with the storage medium 1130 to execute a series of instruction operations in the storage medium 1130 on the server 1100.
The server 1100 may also include one or more power supplies 1126, one or more wired or wireless network interfaces 1150, one or more input-output interfaces 1158, one or more keyboards 1156, and/or one or more operating systems 1141, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc. The central processor 1122 can execute the following instructions on the server 1100:
sending a first log reporting request to a server;
receiving a response returned by the server; a picture is added to the response;
and configuring the sampling rate according to the attribute information of the pictures in the response.
The present application provides an apparatus, one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform a sample configuration method of the aforementioned server or client side.
The present application also provides one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform a sample configuration method on the server or client side as previously described.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present application.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "include", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or terminal device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or terminal equipment comprising the element.
The foregoing detailed description is directed to a sampling configuration method and apparatus provided by the present application, and specific examples are applied herein to explain the principles and embodiments of the present application, where the descriptions of the foregoing examples are only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (38)
1. A sample configuration method, comprising:
sending a first log reporting request to a server;
reporting the log according to the original sampling rate under the condition that the server determines that the client does not report the log for the first time;
receiving a response returned by the server through a mail running environment under the condition that the server determines that the client is the first log report; pictures are added in the response;
and configuring the sampling rate according to the attribute information of the pictures in the response.
2. The method of claim 1, wherein the step of configuring the sampling rate based on the attribute information of the picture in the response comprises:
acquiring attribute information of the picture;
converting the attribute information into a sampling rate according to a preset rule;
and configuring according to the sampling rate.
3. The method according to claim 1 or 2, wherein the attribute information of the picture comprises a width of the picture or a height of the picture.
4. The method of claim 1, wherein the picture comprises a blank picture.
5. The method of claim 1, wherein the resolution of the picture is less than a preset threshold.
6. The method of claim 1, wherein the first log reporting request comprises a get request in http protocol.
7. The method of claim 1, further comprising, after the step of configuring the sampling rate according to the attribute information of the picture in the response:
and sending a second log reporting request to the server according to the configuration of the sampling rate.
8. A sample configuration method, comprising:
receiving a first log reporting request sent by a client;
under the condition that the client is judged not to report the primary log, the client is enabled to report the log according to the original sampling rate;
when the server determines that the client is the first log reporting, determining that the first log reporting request is a request for requesting sample rate configuration, and adding a picture in a response to the first log reporting request;
and returning the response to the client through a mail running environment so that the client configures the sampling rate according to the attribute information of the picture in the response.
9. The method according to claim 8, wherein the step of adding a picture in the response to the first log reporting request comprises:
Generating a response aiming at the first log reporting request and setting a picture object creating label in the response;
and creating a label through the picture object to add the picture.
10. The method according to claim 8, wherein the step of adding a picture in the response to the first log reporting request comprises:
determining a sampling rate that needs to be configured at the client;
and adding the picture corresponding to the attribute information into the response according to the attribute information corresponding to the sampling rate.
11. The method of claim 8, wherein the step of determining that the first log reporting request is a request for sample rate configuration comprises:
when the first log reporting request is determined to be a log reporting request received for the first time through a session corresponding to the client, determining that the first log reporting request is a request for requesting sample rate configuration;
or, when the first log reporting request is a set type request, determining that the first log reporting request is a request for requesting sample rate configuration.
12. The method of claim 8, wherein the first log reporting request supports a picture format.
13. The method of claim 8, wherein the picture comprises a blank picture.
14. The method of claim 8, wherein the resolution of the picture is less than a preset threshold.
15. The method of claim 8, wherein the attribute information of the picture comprises a width of the picture or a height of the picture.
16. The method of claim 8, wherein the first journaling request comprises a get request in http protocol.
17. The method of claim 8, further comprising:
and receiving a second log reporting request sent by the client according to the sampling rate, and storing information in the second log reporting request.
18. A sample configuration device, comprising:
the first sending module is used for sending a first log reporting request to the server;
the first receiving module is used for receiving a response returned by the server through the mail running environment under the condition that the server determines that the client is the first log report; a picture is added to the response;
the configuration module is used for configuring the sampling rate according to the attribute information of the pictures in the response;
Wherein the apparatus is further configured to:
and reporting the log according to the original sampling rate under the condition that the server determines that the client does not report the log for the first time.
19. The apparatus of claim 18, wherein the configuration module comprises:
the obtaining sub-module is used for obtaining the attribute information of the picture;
the conversion submodule is used for converting the attribute information into a sampling rate according to a preset rule;
and the configuration sub-module is used for configuring according to the sampling rate.
20. The apparatus according to claim 18 or 19, wherein the attribute information of the picture comprises a width of the picture or a height of the picture.
21. The apparatus of claim 18, wherein the picture comprises a blank picture.
22. The apparatus of claim 18, wherein the resolution of the picture is less than a preset threshold.
23. The apparatus of claim 18, wherein the first journaling request comprises a get request in http protocol.
24. The apparatus of claim 18, further comprising:
and the second sending module is used for sending a second log reporting request to the server according to the configuration of the sampling rate.
25. A sampling configuration device, comprising:
the second receiving module is used for receiving a first log reporting request sent by the client;
a determining module, configured to determine that the first log reporting request is a request for requesting sample rate configuration;
a generating module, configured to add a picture to a response to the first log reporting request when the server determines that the client is performing initial log reporting;
the third sending module is used for returning the response to the client through a mail running environment so that the client can configure the sampling rate according to the attribute information of the pictures in the response;
the apparatus is further configured to:
and under the condition that the client is judged not to report the primary log, the client reports the log according to the original sampling rate.
26. The apparatus of claim 25, wherein the generating module comprises:
a label creating submodule, configured to generate a response to the first log reporting request, and set a picture object creating label in the response;
and the first picture adding sub-module is used for creating a label through the picture object and adding the picture.
27. The apparatus of claim 25, wherein the generating module comprises:
the determining submodule is used for determining the sampling rate required to be configured at the client;
and the second picture adding sub-module is used for adding the picture corresponding to the attribute information into the response according to the attribute information corresponding to the sampling rate.
28. The apparatus of claim 25, wherein the determining module comprises:
a report confirming sub-module, configured to, when it is determined that the first log report request is an initially received log report request through a session corresponding to the client, determine that the first log report request is a request for requesting sample rate configuration; or, when the first log reporting request is a set type request, determining that the first log reporting request is a request for requesting sample rate configuration.
29. The apparatus of claim 25, wherein the first log reporting request supports a picture format.
30. The apparatus of claim 25, wherein the picture comprises a blank picture.
31. The apparatus of claim 25, wherein the resolution of the picture is less than a preset threshold.
32. The apparatus of claim 31, wherein the attribute information of the picture comprises a width of the picture or a height of the picture.
33. The apparatus of claim 31, wherein the first log reporting request comprises a get request in http protocol.
34. The apparatus of claim 31, further comprising:
and the third receiving module is used for receiving a second log reporting request sent by the client according to the sampling rate and storing information in the second log reporting request.
35. A sample configuration device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the method of any of claims 1-7.
36. One or more machine-readable media having instructions stored thereon that, when executed by one or more processors, perform the method of any of claims 1-7.
37. A sampling configuration device, comprising:
one or more processors; and
One or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the method of any of claims 8-17.
38. One or more machine-readable media having instructions stored thereon that, when executed by one or more processors, perform the method of any of claims 8-17.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810284923.2A CN110351105B (en) | 2018-04-02 | 2018-04-02 | Sampling configuration method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810284923.2A CN110351105B (en) | 2018-04-02 | 2018-04-02 | Sampling configuration method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110351105A CN110351105A (en) | 2019-10-18 |
CN110351105B true CN110351105B (en) | 2022-07-19 |
Family
ID=68173447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810284923.2A Active CN110351105B (en) | 2018-04-02 | 2018-04-02 | Sampling configuration method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110351105B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107480277A (en) * | 2017-08-22 | 2017-12-15 | 北京京东尚科信息技术有限公司 | Method and device for web log file collection |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10101983B2 (en) * | 2014-11-07 | 2018-10-16 | Open Text Sa Ulc | Client application with embedded server |
US9983853B2 (en) * | 2015-04-29 | 2018-05-29 | Facebook Inc. | Controlling data logging based on a lifecycle of a product |
CN106020777B (en) * | 2016-04-29 | 2018-08-07 | 杭州华橙网络科技有限公司 | A kind of data processing method, apparatus and system |
CN107247637A (en) * | 2017-07-27 | 2017-10-13 | 广州云测信息技术有限公司 | A kind of APP fault determination methods and device |
-
2018
- 2018-04-02 CN CN201810284923.2A patent/CN110351105B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107480277A (en) * | 2017-08-22 | 2017-12-15 | 北京京东尚科信息技术有限公司 | Method and device for web log file collection |
Also Published As
Publication number | Publication date |
---|---|
CN110351105A (en) | 2019-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110300050B (en) | Message pushing method and device, computer equipment and storage medium | |
CN105718540B (en) | Data loading method and device | |
CN111092877B (en) | Data processing method and device, electronic equipment and storage medium | |
US20150227496A1 (en) | Method and system for microblog resource sharing | |
CN107766509B (en) | Method and device for static backup of webpage | |
CN105024971A (en) | Communication protocol conversion method and communication protocol conversion device | |
CN112765103B (en) | File analysis method, system, device and equipment | |
CN111200523B (en) | Method, device, equipment and storage medium for configuring middle platform system | |
CN102098330A (en) | Method, device and system for asynchronous transmission based on json data format | |
CN103729380A (en) | Data processing method, system and device | |
CN109151056B (en) | Method and system for pushing messages based on Canal | |
WO2013013556A1 (en) | Data reporting method and device | |
US20130138770A1 (en) | Apparatus and method for sharing web contents using inspector script | |
CN106933623B (en) | Operation method, device and system of installation-free application | |
TWI673983B (en) | Data compression transmission method and system, terminal and server thereof | |
CN114741261A (en) | Distributed link tracking method, device, equipment and storage medium | |
US9270776B2 (en) | Dynamically adjusting delivery of content between terminal device and server | |
CN110351105B (en) | Sampling configuration method and device | |
CN108924773B (en) | Message processing method and device | |
US10771578B2 (en) | Webpage loading method and apparatus | |
CN115002097B (en) | Application image display method and device, storage medium and electronic device | |
CN110602194B (en) | IOT message subscription method, IOT message subscription device and computer readable storage medium | |
CN112306791B (en) | Performance monitoring method and device | |
CN116545942B (en) | Data transmission method, device, electronic equipment and storage medium | |
CN111027300A (en) | Method and device for generating report form in user-defined mode |
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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40015642 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |