


技术领域technical field
本发明实施例涉及计算机应用技术领域,尤其涉及一种打点方法、装置、终端及存储介质。The embodiments of the present invention relate to the technical field of computer applications, and in particular to a dot marking method, device, terminal and storage medium.
背景技术Background technique
随着网络技术发展以及业务扩展的需要,对用户行为数据的收集和分析也就日益重要。打点是常用的数据统计的方式之一,是客户端上用于统计用户对感兴趣区域的操作行为的数据上报给服务器的动作。服务器可以根据客户端上报的数据进行统计,以便根据统计的数据进行数据挖掘。With the development of network technology and the needs of business expansion, the collection and analysis of user behavior data is becoming increasingly important. Pointing is one of the commonly used data statistics methods, and it is an action on the client to report the data of the user's operation behavior on the area of interest to the server. The server can perform statistics according to the data reported by the client, so as to perform data mining according to the statistical data.
目前,常用的打点方案是直接在应用程序的业务代码中进行埋点,即在目标事件的后代代码中嵌套打点代码,当触发目标事件时,通过与该目标事件对应的打点代码封将封装好的数据包上报给服务器,完成该目标事件的打点。由于每个目标事件都需要设置打点代码,很容易造成代码数据冗余。而且一旦增加或者删减数据点,则需要对应地增加或者删除埋点,维护相当麻烦,且开发测试都比较麻烦,极易出错。At present, the commonly used dot scheme is to embed directly in the business code of the application, that is, to nest the dot code in the descendant code of the target event. When the target event is triggered, the dot code corresponding to the target event is used to seal the package. Good data packets are reported to the server to complete the management of the target event. Since each target event needs to set the dot code, it is easy to cause code data redundancy. Moreover, once data points are added or deleted, buried points need to be added or deleted accordingly, which is quite cumbersome to maintain, and development and testing are both cumbersome and error-prone.
发明内容Contents of the invention
本发明实施例提供了一种打点方法装置、终端及存储介质,以解决现有打点方法中打点代码冗余、维护不便且易出错等技术问题,避免复杂的代码维护,实现便捷式打点。The embodiment of the present invention provides a dotting method device, a terminal and a storage medium to solve technical problems such as redundant dot codes, inconvenient maintenance and error-prone in the existing dot method, avoid complicated code maintenance, and realize convenient dot.
第一方面,本发明实施例提供了一种打点方法,该方法包括:In a first aspect, an embodiment of the present invention provides a dotting method, the method comprising:
当检测到目标事件时,于本地存储的打点记录表中查询并获取与所述目标事件对应的键,并获取所述键对应的值,其中,所述键包括与所述目标事件对应的属性字段;When the target event is detected, query and obtain the key corresponding to the target event in the locally stored dotting record table, and obtain the value corresponding to the key, wherein the key includes the attribute corresponding to the target event field;
以所述键和所述值为参数,调用预先构建的打点函数将与所述目标事件对应的打点信息上报给至少一台目标服务器。Using the key and the value as parameters, calling a pre-built dotting function to report the dotting information corresponding to the target event to at least one target server.
进一步地,在所述于本地存储的打点记录表中查询并获取与所述目标事件对应的键之前,包括:Further, before querying and obtaining the key corresponding to the target event in the locally stored record table, the method includes:
根据至少一服务器所下发的打点配置文件预先建立打点记录表,并将所述打点记录表存储于本地中。A dotting record table is pre-established according to the dotting configuration file delivered by at least one server, and the dotting record table is stored locally.
进一步地,所述的方法还包括:Further, the method also includes:
定期或不定期获取所述至少一台服务器的当前打点配置文件,并根据所述当前打点配置文件更新所述打点记录表。Obtaining the current dotting configuration file of the at least one server regularly or irregularly, and updating the dotting record table according to the current dotting configuration file.
进一步地,所述的方法还包括:Further, the method also includes:
当接收到所述目标事件的打点信息上报失败的提示信息时,根据所述提示信息修改所述打点记录表中有所述目标事件对应的表项,其中,所述修改包括添加、更改或删除。When receiving a prompt message indicating that the reporting of the target event’s dotting information fails, modify the entry corresponding to the target event in the dot recording table according to the prompt information, wherein the modification includes adding, changing or deleting .
进一步地,在所述将与所述目标事件对应的打点信息上报给至少一台目标服务器之前,还包括:Further, before reporting the point information corresponding to the target event to at least one target server, it also includes:
根据各目标事件与各目标服务器之间的对应关系确定与所述目标事件对应的目标服务器。The target server corresponding to the target event is determined according to the correspondence between each target event and each target server.
第二方面,本发明实施例提供了一种打点装置,该装置包括:In a second aspect, an embodiment of the present invention provides a dotting device, the device comprising:
检测模块,用于当检测到目标事件时,于本地存储的打点记录表中查询并获取与所述目标事件对应的键,并获取所述键对应的值,其中,所述键包括与所述目标事件对应的属性字段;The detection module is used to query and obtain the key corresponding to the target event in the locally stored dotting record table when the target event is detected, and obtain the value corresponding to the key, wherein the key includes the key corresponding to the The attribute field corresponding to the target event;
上报模块,用于以所述键和所述值为参数,调用预先构建的打点函数将与所述目标事件对应的打点信息上报给至少一台目标服务器。The reporting module is configured to use the key and the value as parameters to call a pre-built dotting function to report the dotting information corresponding to the target event to at least one target server.
进一步地,所述的装置还包括:Further, the described device also includes:
打点记录表建立模块,用于在所述于本地存储的打点记录表中查询并获取与所述目标事件对应的键之前,根据至少一服务器所下发的打点配置文件预先建立打点记录表,并将所述打点记录表存储于本地中。A point management record table building module, used to pre-establish a point management record table according to the point management configuration file issued by at least one server before querying and obtaining the key corresponding to the target event in the locally stored point record table, and Store the dotted record table locally.
进一步地,所述的装置还包括:Further, the described device also includes:
修改模块,用于当接收到所述目标事件的打点信息上报失败的提示信息时,根据所述提示信息修改所述打点记录表中有所述目标事件对应的表项,其中,所述修改包括添加、更改或删除。A modifying module, configured to modify the entry corresponding to the target event in the dot recording table according to the prompt information when receiving the prompt information that the dot information reporting of the target event fails, wherein the modification includes Add, change or delete.
第三方面,本发明实施例还提供了一种终端,所述终端包括:In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序;memory for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本发明任一实施例所述的打点方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the dot marking method according to any embodiment of the present invention.
第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明任一实施例所述的打点方法。In the fourth aspect, the embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the dotting method as described in any embodiment of the present invention is implemented.
本发明实施例的技术方案,当检测到目标事件时,通过于本地存储的打点记录表中查询并获取与所述目标事件对应的键,并获取所述键对应的值;以所述键和所述值为参数,调用预先构建的打点函数将与所述目标事件对应的打点信息上报给至少一台目标服务器,即直接通过查询打点记录表的方式即可避免在每个目标事件中设置打点代码的操作,解决了现有打点方法中打点代码冗余、维护不便且易出错等技术问题,避免复杂的代码维护,实现了便捷式打点;而且在后期维护时只需要对打点记录表进行维护,十分简单方便,节省了维护时间,提高了维护效率。In the technical solution of the embodiment of the present invention, when the target event is detected, the key corresponding to the target event is obtained by querying and obtaining the key corresponding to the target event in the local storage; and the value corresponding to the key is obtained; with the key and The value is a parameter, call the pre-built dot function to report the dot information corresponding to the target event to at least one target server, that is, directly query the dot record table to avoid setting dot in each target event The operation of the code solves the technical problems of redundant dot code, inconvenient maintenance and error-prone in the existing dot method, avoids complicated code maintenance, and realizes convenient dot; and only needs to maintain the dot record table in the later maintenance , very simple and convenient, saving maintenance time and improving maintenance efficiency.
附图说明Description of drawings
为了更加清楚地说明本发明示例性实施例的技术方案,下面对描述实施例中所需要用到的附图做一简单介绍。显然,所介绍的附图只是本发明所要描述的一部分实施例的附图,而不是全部的附图,对于本领域普通技术人员,在不付出创造性劳动的前提下,还可以根据这些附图得到其他的附图。In order to illustrate the technical solutions of the exemplary embodiments of the present invention more clearly, the following briefly introduces the drawings used in describing the embodiments. Apparently, the drawings introduced are only the drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. Those of ordinary skill in the art can also obtain the Other attached drawings.
图1是本发明实施例一所提供的一种打点方法的流程图;Fig. 1 is a flow chart of a kind of dotting method provided by Embodiment 1 of the present invention;
图2是本发明实施例三所提供的一种打点装置的结构图;Fig. 2 is a structural diagram of a dotting device provided by Embodiment 3 of the present invention;
图3是本发明实施例四中的一种终端的结构示意图。FIG. 3 is a schematic structural diagram of a terminal in Embodiment 4 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
实施例一Embodiment one
图1为本发明实施例一所提供的一种打点方法的流程图,本实施例不仅可适用于对单个数据库实例下线的情况还可适用于对多个数据库实例进行批量下线的情况,该方法可以由打点装置来执行,该装置可通过硬件和/或软件的方式实现,并一般可由终端和服务器配合来实现本实施例的方法。Fig. 1 is a flow chart of a dotting method provided by Embodiment 1 of the present invention. This embodiment is not only applicable to the offline situation of a single database instance, but also applicable to the batch offline situation of multiple database instances. The method can be executed by a marking device, which can be realized by means of hardware and/or software, and generally, the method of this embodiment can be realized by cooperation of a terminal and a server.
具体地,本实施例的方法包括:Specifically, the method of this embodiment includes:
S110、当检测到目标事件时,于本地存储的打点记录表中查询并获取与所述目标事件对应的键,并获取所述键对应的值。S110. When the target event is detected, query and obtain the key corresponding to the target event in the locally stored dot recording table, and obtain the value corresponding to the key.
示例性地,目标事件可以是对目标区域的点击事件,具体可以是用户对目标区域内的按钮或者链接的点击事件。其中,目标区域可以是大数据统计所需要的区域或者用户感兴趣的区域,以一个网页界面或者应用程序的界面为例,目标区域可以是头像区域,也可以是标题区域,还可以是界面中不同分区等。需要说明的是,触发目标事件的具体方式可以根据实际需求进行设置,如鼠标的悬停等,在此不做限定。Exemplarily, the target event may be a click event on the target area, and specifically may be a user click event on a button or a link in the target area. Among them, the target area can be the area required by big data statistics or the area that the user is interested in. Taking a web interface or application program interface as an example, the target area can be the avatar area, the title area, or the Different partitions etc. It should be noted that the specific way of triggering the target event can be set according to actual needs, such as mouse hovering, etc., which is not limited here.
其中,所述键包括与所述目标事件对应的属性字段。属性字段用于表征目标事件是什么,可以是预先设置好的指定字段。为了满足个性化的统计需求,键还可以包括打点相关参数,如位置position、ID和/或用户名user_name等。所述打点记录表用于存储与所述目标事件对应的键。Wherein, the key includes an attribute field corresponding to the target event. The attribute field is used to represent what the target event is, and may be a preset specified field. In order to meet personalized statistical requirements, the key may also include related parameters such as position, ID, and/or user_name. The dotting record table is used to store keys corresponding to the target events.
以获取map集合中的键和值为例,获取所述键对应的值的方法可以是直接根据键找值,或者根据键值对对象找键和值。具体地,根据键值对对象找键和值可以是,创建集合对象,然后创建元素并添加到集合,获取所有键值对对象的集合;遍历键值对对象的集合,得到每一个键值对对象;根据键值对对象获得键和值。Taking obtaining the key and value in the map collection as an example, the method of obtaining the value corresponding to the key can be to find the value directly according to the key, or to find the key and value according to the key-value pair object. Specifically, to find the key and value according to the key-value pair object can be to create a collection object, then create an element and add it to the collection to obtain a collection of all key-value pair objects; traverse the collection of key-value pair objects to obtain each key-value pair Object; get the key and value from the key-value pair object.
S120、以所述键和所述值为参数,调用预先构建的打点函数将与所述目标事件对应的打点信息上报给至少一台目标服务器。S120. Using the key and the value as parameters, call a pre-built dotting function to report the dotting information corresponding to the target event to at least one target server.
可选是,预先构建打点函数,并将所述打点函数进行封装后存储于封装工具库中。进而,将与目标事件对应的键和值作为参数,通过打点接口从封装工具库中调用所述打点函数,将与所述目标事件对应的打点信息进行上报。可以理解的是,打点函数可以是由用户根据实际需求进行个性化构建。Optionally, the dot function is pre-built, and the dot function is packaged and stored in the packaging tool library. Furthermore, using the key and value corresponding to the target event as parameters, the dot function is called from the encapsulation tool library through the dot interface, and the dot information corresponding to the target event is reported. It can be understood that the dot function can be personalized and constructed by the user according to actual needs.
考虑到可能有一台、两台或者多台服务器都需要对同一个打点信息进行统计,即将各服务器需求的与所述目标事件对应的打点信息发送给服务器存储。因此上报时,可以根据各目标事件与各目标服务器之间的对应关系确定与所述目标事件对应的目标服务器。可以理解的是,目标服务器的数量可以是一台、两台或多台。Considering that there may be one, two or more servers that need to count the same dotting information, that is, the dotting information required by each server and corresponding to the target event is sent to the server for storage. Therefore, when reporting, the target server corresponding to the target event may be determined according to the correspondence between each target event and each target server. It can be understood that the number of target servers can be one, two or more.
另外,考虑到各服务器对应的数据格式可能不同,在将打点信息上报给目标服务器之前还可以包括:将打点信息的数据格式转换为目标服务器所对应的数据格式。可以理解的是,当同一条打点信息需要上报至两个及两个以上的目标服务器时,需要分别确定各目标服务器的数据格式,以进行数据格式转换。因此,可能会存在同一条打点信息需要封装成多种数据格式,分别上报给不同服务器的情况。In addition, considering that the data formats corresponding to each server may be different, before reporting the point management information to the target server, it may further include: converting the data format of the point management information into a data format corresponding to the target server. It can be understood that when the same piece of dot information needs to be reported to two or more target servers, the data format of each target server needs to be determined separately for data format conversion. Therefore, there may be situations where the same piece of RBI information needs to be encapsulated into multiple data formats and reported to different servers respectively.
本发明实施例的技术方案,当检测到目标事件时,通过于本地存储的打点记录表中查询并获取与所述目标事件对应的键,并获取所述键对应的值;以所述键和所述值为参数,调用预先构建的打点函数将与所述目标事件对应的打点信息上报给至少一台目标服务器,即直接通过查询打点记录表的方式即可避免在每个目标事件中设置打点代码的操作,解决了现有打点方法中打点代码冗余、维护不便且易出错等技术问题,避免复杂的代码维护,实现了便捷式打点;而且在后期维护时只需要对打点记录表进行维护,十分简单方便,节省了维护时间,提高了维护效率。In the technical solution of the embodiment of the present invention, when the target event is detected, the key corresponding to the target event is obtained by querying and obtaining the key corresponding to the target event in the local storage; and the value corresponding to the key is obtained; with the key and The value is a parameter, call the pre-built dot function to report the dot information corresponding to the target event to at least one target server, that is, directly query the dot record table to avoid setting dot in each target event The operation of the code solves the technical problems of redundant dot code, inconvenient maintenance and error-prone in the existing dot method, avoids complicated code maintenance, and realizes convenient dot; and only needs to maintain the dot record table in the later maintenance , very simple and convenient, saving maintenance time and improving maintenance efficiency.
可以理解的是,在于本地存储的打点记录表中查询并获取与所述目标事件对应的键之前,还包括:建立打点记录表,并将所述打点记录表存储于本地中。为了更好地将打点记录表与服务器需要统计的数据匹配,可选是,根据至少一服务器所下发的打点配置文件预先建立打点记录表,并将所述打点记录表存储于本地中。这样设置还可以实现打点记录表的自动更新。当然,也可以根据实际需求手动建立打点记录表。It can be understood that, before querying and obtaining the key corresponding to the target event in the locally stored dotting record table, the method further includes: establishing a dotting record table, and storing the dotting record table locally. In order to better match the dotting record table with the data that the server needs to count, it is optional to pre-establish the dot recording table according to at least one dotting configuration file issued by the server, and store the dot recording table locally. This setting can also realize the automatic update of the dot recording table. Of course, you can also manually create a management record table according to actual needs.
在此基础上,为了保证打点记录表的实时性,还可以定期或不定期获取所述至少一台服务器的当前打点配置文件,并根据所述当前打点配置文件更新所述打点记录表。或者,也可以由终端和服务器配合实现,例如可以是,服务器检测到打点信息的变更请求时,根据所述变更请求生成变更配置文件,并将所述变更配置文件下发至终端,当终端接收到所述变更配置文件时,根据所述变更配置文件对所述打点记录表进行更新。On this basis, in order to ensure the real-time performance of the dotting record table, the current dotting configuration file of the at least one server can also be obtained regularly or irregularly, and the dotting record table can be updated according to the current dotting configuration file. Or, it can also be implemented by the cooperation of the terminal and the server. For example, when the server detects a change request of the dotted information, it generates a change configuration file according to the change request, and sends the change configuration file to the terminal. When the terminal receives When the configuration file is changed, the dot recording table is updated according to the configuration file.
当服务器需要统计的数据的发生变更,或者上报参数发生变更时,本发明实施例的技术方案还可以包括:当接收到所述目标事件的打点信息上报失败的提示信息时,根据所述提示信息修改所述打点记录表中有所述目标事件对应的表项,其中,所述修改包括添加、更改或删除。这样设置的好处在于,一旦上报失败可以及时地、自动地进行表项修改,以供正常使用,使得打点记录表的维护更加智能化。When the data that the server needs to count is changed, or the reporting parameters are changed, the technical solution of the embodiment of the present invention may also include: when receiving the prompt information that the reporting of the target event’s dotted information fails, according to the prompt information modifying the entry corresponding to the target event in the dotting record table, wherein the modification includes adding, changing or deleting. The advantage of this setting is that once the report fails, the table items can be modified in time and automatically for normal use, making the maintenance of the RBI record table more intelligent.
在上述技术方案的基础上,根据所述提示信息修改所述打点记录表中有所述目标事件对应的表项具体可以是,接收并识别提示信息的错误代码确定错位类型以及关键内容信息,进而根据所述错位类型以及所述关键内容信息修改所述打点记录表中有所述目标事件对应的表项;或者,从服务器中获取当前配置表,根据所述当前配置表更新所述打点记录表。采用上述技术方案能够方便快捷地修改打点记录表,使得打点功能快速恢复使用。On the basis of the above technical solution, modifying the entry corresponding to the target event in the dot recording table according to the prompt information may specifically include receiving and identifying the error code of the prompt information to determine the type of dislocation and key content information, and then According to the dislocation type and the key content information, modify the entry corresponding to the target event in the dotting record table; or, obtain the current configuration table from the server, and update the dotting record table according to the current configuration table . By adopting the above technical solution, the dotting record table can be modified conveniently and quickly, so that the dotting function can be quickly restored to use.
实施例二Embodiment two
图2所示为本发明实施例二所提供的一种打点装置的结构示意图,该装置可通过硬件和/或软件的方式实现,并一般可由终端和服务器配合来实现本实施例的方法。如图2所示,本实施例的打点装置包括检测模块210和上报模块220。FIG. 2 is a schematic structural diagram of a dotting device provided by Embodiment 2 of the present invention. The device can be realized by means of hardware and/or software, and the method of this embodiment can generally be realized by cooperation of a terminal and a server. As shown in FIG. 2 , the marking device of this embodiment includes a
其中,检测模块210,用于当检测到目标事件时,于本地存储的打点记录表中查询并获取与所述目标事件对应的键,并获取所述键对应的值,其中,所述键包括与所述目标事件对应的属性字段;上报模块220,用于以所述键和所述值为参数,调用预先构建的打点函数将与所述目标事件对应的打点信息上报给至少一台目标服务器。Wherein, the
本发明实施例的技术方案,当检测到目标事件时,通过于本地存储的打点记录表中查询并获取与所述目标事件对应的键,并获取所述键对应的值;以所述键和所述值为参数,调用预先构建的打点函数将与所述目标事件对应的打点信息上报给至少一台目标服务器,即直接通过查询打点记录表的方式即可避免在每个目标事件中设置打点代码的操作,解决了现有打点方法中打点代码冗余、维护不便且易出错等技术问题,避免复杂的代码维护,实现了便捷式打点;而且在后期维护时只需要对打点记录表进行维护,十分简单方便,节省了维护时间,提高了维护效率。在上述技术方案的基础上,所述的打点装置还可以包括:In the technical solution of the embodiment of the present invention, when the target event is detected, the key corresponding to the target event is obtained by querying and obtaining the key corresponding to the target event in the local storage; and the value corresponding to the key is obtained; with the key and The value is a parameter, call the pre-built dot function to report the dot information corresponding to the target event to at least one target server, that is, directly query the dot record table to avoid setting dot in each target event The operation of the code solves the technical problems of redundant dot code, inconvenient maintenance and error-prone in the existing dot method, avoids complicated code maintenance, and realizes convenient dot; and only needs to maintain the dot record table in the later maintenance , very simple and convenient, saving maintenance time and improving maintenance efficiency. On the basis of above-mentioned technical scheme, described dotting device can also comprise:
打点记录表建立模块,用于在所述于本地存储的打点记录表中查询并获取与所述目标事件对应的键之前,根据至少一服务器所下发的打点配置文件预先建立打点记录表,并将所述打点记录表存储于本地中。A point management record table building module, used to pre-establish a point management record table according to the point management configuration file issued by at least one server before querying and obtaining the key corresponding to the target event in the locally stored point record table, and Store the dotted record table locally.
在上述技术方案的基础上,所述打点装置还可以包括:On the basis of the above technical solution, the dotting device may also include:
定期或不定期获取所述至少一台服务器的当前打点配置文件,并根据所述当前打点配置文件更新所述打点记录表。Obtaining the current dotting configuration file of the at least one server regularly or irregularly, and updating the dotting record table according to the current dotting configuration file.
在上述各技术方案的基础上,所述的打点装置还可以包括:On the basis of the above-mentioned technical solutions, the dotting device may also include:
修改模块,用于当接收到所述目标事件的打点信息上报失败的提示信息时,根据所述提示信息修改所述打点记录表中有所述目标事件对应的表项,其中,所述修改包括添加、更改或删除。A modifying module, configured to modify the entry corresponding to the target event in the dot recording table according to the prompt information when receiving the prompt information that the dot information reporting of the target event fails, wherein the modification includes Add, change or delete.
在上述各技术方案的基础上,所述打点装置还可以包括:On the basis of the above-mentioned technical solutions, the dotting device may also include:
目标服务器确定模块,用于在所述将与所述目标事件对应的打点信息上报给至少一台目标服务器之前,根据各目标事件与各目标服务器之间的对应关系确定与所述目标事件对应的目标服务器。A target server determination module, configured to determine the target event corresponding to the target event according to the correspondence between each target event and each target server before reporting the dot information corresponding to the target event to at least one target server. target server.
上述打点装置可执行本发明实施例一所提供的打点方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例一所提供的打点方法。The above-mentioned dotting device can execute the dotting method provided by Embodiment 1 of the present invention, and has corresponding functional modules and beneficial effects for executing the above-mentioned method. For technical details not described in detail in this embodiment, refer to the dotting method provided in Embodiment 1 of the present invention.
实施例四Embodiment Four
图3为本发明实施例四所提供的一种终端的结构示意图。图3示出了适于用来实现本发明实施方式的示例性终端312的框图。图3显示的终端312仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 3 is a schematic structural diagram of a terminal provided by Embodiment 4 of the present invention. Figure 3 shows a block diagram of an
如图3所示,终端312以通用计算设备的形式表现。终端312的组件可以包括但不限于:一个或者多个处理器或者处理器316,存储装置328,用于存储一个或多个程序,连接不同系统组件(包括存储装置328和处理器316)的总线318。当所述一个或多个程序被所述一个或多个处理器316执行,使得所述一个或多个处理器316实现本发明任意实施例所述的打点方法。As shown in FIG. 3,
总线318表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。
终端312典型地包括多种计算机系统可读介质。这些介质可以是任何能够被终端312访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。
存储装置328可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)330和/或高速缓存存储器332。终端312可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统334可以用于读写不可移动的、非易失性磁介质(图3未显示,通常称为“硬盘驱动器”)。尽管图3中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM, DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线318相连。存储器328可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。
具有一组(至少一个)程序模块342的程序/实用工具340,可以存储在例如存储器328中,这样的程序模块342包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块342通常执行本发明所描述的实施例中的功能和/或方法。A program/
终端312也可以与一个或多个外部设备314(例如键盘、指向设备、显示器324等)通信,还可与一个或者多个使得用户能与该终端312交互的设备通信,和/或与使得该终端312能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口322进行。并且,终端312还可以通过网络适配器320与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器320通过总线318与终端312的其它模块通信。应当明白,尽管图中未示出,可以结合终端312使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理器、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The terminal 312 can also communicate with one or more external devices 314 (such as keyboards, pointing devices, displays 324, etc.), and can also communicate with one or more devices that enable the user to interact with the terminal 312, and/or communicate with the
处理器316通过运行存储在存储装置328中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的打点方法。The
另外,本发明实施例还提供了一种包含计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时用于执行一种打点方法,该方法包括:In addition, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it is used to perform a dotting method, the method comprising:
当检测到目标事件时,于本地存储的打点记录表中查询并获取与所述目标事件对应的键,并获取所述键对应的值,其中,所述键包括与所述目标事件对应的属性字段;When the target event is detected, query and obtain the key corresponding to the target event in the locally stored dotting record table, and obtain the value corresponding to the key, wherein the key includes the attribute corresponding to the target event field;
以所述键和所述值为参数,调用预先构建的打点函数将与所述目标事件对应的打点信息上报给至少一台目标服务器。Using the key and the value as parameters, calling a pre-built dotting function to report the dotting information corresponding to the target event to at least one target server.
可选的,该计算机可执行指令在由计算机处理器执行时还可以用于执行本发明任意实施例所提供的打点方法的技术方案。Optionally, when the computer-executable instructions are executed by a computer processor, they can also be used to implement the technical solution of the dot marking method provided by any embodiment of the present invention.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读存储介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读存储介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, which can be embodied in any computer-readable storage medium , for use with an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, apparatus, or device and execute instructions), or in conjunction with such an instruction execution system, device or equipment. For the purpose of this specification, a "computer-readable storage medium" may be any device that can contain, store, communicate, propagate or transmit programs for instruction execution systems, devices or devices or for use in conjunction with these instruction execution systems, devices or devices .
计算机可读存储介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读存储介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。More specific examples (non-exhaustive list) of computer-readable storage media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM) , read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpreting or other processing if necessary. Processed in a suitable manner to obtain the program electronically and store it in a computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, Programmable Gate Arrays (PGAs), Field Programmable Gate Arrays (FPGAs), etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、 “示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810678619.6ACN110717130B (en) | 2018-06-27 | 2018-06-27 | Dotting method, dotting device, dotting terminal and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810678619.6ACN110717130B (en) | 2018-06-27 | 2018-06-27 | Dotting method, dotting device, dotting terminal and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN110717130A CN110717130A (en) | 2020-01-21 |
| CN110717130Btrue CN110717130B (en) | 2022-11-11 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810678619.6AExpired - Fee RelatedCN110717130B (en) | 2018-06-27 | 2018-06-27 | Dotting method, dotting device, dotting terminal and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN110717130B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112333233B (en)* | 2020-09-23 | 2023-11-24 | 北京达佳互联信息技术有限公司 | Event information reporting method and device, electronic equipment and storage medium |
| CN112214504A (en)* | 2020-10-12 | 2021-01-12 | 上海酷量信息技术有限公司 | Dotting event statistical method, device and storage medium |
| CN114385462B (en)* | 2020-10-21 | 2025-07-11 | 武汉斗鱼网络科技有限公司 | A dot-marking method, device, electronic device and storage medium |
| CN116708063B (en)* | 2022-12-23 | 2024-06-11 | 荣耀终端有限公司 | Log reporting method, electronic device, cloud server and storage medium |
| CN119322507A (en)* | 2024-10-15 | 2025-01-17 | 重庆赛力斯凤凰智创科技有限公司 | Data monitoring and early warning method, system, computer equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104750693A (en)* | 2013-12-26 | 2015-07-01 | 阿里巴巴集团控股有限公司 | Method and device for realizing dotting |
| CN105306555A (en)* | 2015-09-30 | 2016-02-03 | 北京奇虎科技有限公司 | Convenient dotting method and device |
| CN106161519A (en)* | 2015-04-01 | 2016-11-23 | 阿里巴巴集团控股有限公司 | A kind of information getting method and device |
| CN106294101A (en)* | 2015-05-19 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The page gets method of testing and device ready |
| CN106990955A (en)* | 2017-03-09 | 2017-07-28 | 武汉斗鱼网络科技有限公司 | A kind of method and system got ready application program |
| CN107341033A (en)* | 2017-06-30 | 2017-11-10 | 百度在线网络技术(北京)有限公司 | A kind of data statistical approach, device, electronic equipment and storage medium |
| CN108108286A (en)* | 2018-01-03 | 2018-06-01 | 上海众人网络安全技术有限公司 | Method of data capture and device, server, storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104750693A (en)* | 2013-12-26 | 2015-07-01 | 阿里巴巴集团控股有限公司 | Method and device for realizing dotting |
| CN106161519A (en)* | 2015-04-01 | 2016-11-23 | 阿里巴巴集团控股有限公司 | A kind of information getting method and device |
| CN106294101A (en)* | 2015-05-19 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The page gets method of testing and device ready |
| CN105306555A (en)* | 2015-09-30 | 2016-02-03 | 北京奇虎科技有限公司 | Convenient dotting method and device |
| CN106990955A (en)* | 2017-03-09 | 2017-07-28 | 武汉斗鱼网络科技有限公司 | A kind of method and system got ready application program |
| CN107341033A (en)* | 2017-06-30 | 2017-11-10 | 百度在线网络技术(北京)有限公司 | A kind of data statistical approach, device, electronic equipment and storage medium |
| CN108108286A (en)* | 2018-01-03 | 2018-06-01 | 上海众人网络安全技术有限公司 | Method of data capture and device, server, storage medium |
| Publication number | Publication date |
|---|---|
| CN110717130A (en) | 2020-01-21 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110717130B (en) | Dotting method, dotting device, dotting terminal and storage medium | |
| CN109800207B (en) | Log parsing method, apparatus, device, and computer-readable storage medium | |
| WO2019134226A1 (en) | Log collection method, device, terminal apparatus, and storage medium | |
| WO2019001312A1 (en) | Method and apparatus for realizing alarm association, and computer readable storage medium | |
| CN113448938A (en) | Data processing method and device, electronic equipment and storage medium | |
| KR102042230B1 (en) | Synchronizing local and remote data | |
| WO2023125672A1 (en) | Platform message tracking method, system and apparatus, and storage medium | |
| CN106681891A (en) | Method and device for adjusting log level in Java application system | |
| CN111831618A (en) | Data writing method, data reading method, apparatus, device and storage medium | |
| CN114328152A (en) | Log recording method, device, equipment and medium | |
| CN113791792B (en) | Methods, devices and storage media for obtaining application call information | |
| CN117648379A (en) | Method and device for collecting and synchronizing time sequence data of different protocols | |
| CN112989151B (en) | Data blood relationship display method and device, electronic equipment and storage medium | |
| WO2024041022A1 (en) | Database table alteration method and apparatus, device and storage medium | |
| CN114896215A (en) | Metadata storage method and device | |
| CN117708182A (en) | Method and related device for constructing data blood margin | |
| CN116049144A (en) | A data storage method, data reading method, device and electronic equipment | |
| CN117742567A (en) | Data storage method, device, electronic equipment and storage medium | |
| KR100747466B1 (en) | Device management method and device management client using node with additional attributes | |
| CN112000971B (en) | File permission recording method, system and related device | |
| CN116521652B (en) | Method, system and medium for realizing migration of distributed heterogeneous database based on DataX | |
| CN116506494A (en) | A method, device, electronic device, and storage medium for determining an Internet of Things device | |
| CN110069222A (en) | Using data migration method, device, new storage system and medium | |
| CN112714017B (en) | Configuration issuing method and device | |
| CN115776491A (en) | Data sharing method and data sharing system |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20221111 |