Method and device for realizing polling, equipment, storage medium and program product

By generating polling triggers through a low-code platform, the problem of low efficiency in existing polling functions is solved, enabling data polling without code configuration and improving efficiency.

CN121486451APending Publication Date: 2026-02-06BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511757717.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-26
Publication Date
2026-02-06

AI Technical Summary

Technical Problem

In existing technologies, implementing polling functionality by manually writing software code is inefficient and has a high technical threshold.

Method used

A polling method and apparatus are provided, which receive the triggering of the polling trigger configuration through a low-code platform, input API request configuration information and polling rule configuration information, generate a polling trigger, and realize the data polling function.

Benefits of technology

No manual software code is required; users only need to configure polling triggers and input relevant information on a low-code platform, which improves the efficiency of polling functionality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121486451A_ABST
    Figure CN121486451A_ABST
Patent Text Reader

Abstract

The invention discloses a method for realizing polling. The method comprises the following steps: receiving triggering of polling trigger configuration; aPI request configuration information and polling rule configuration information are received. The API request configuration information is used for configuring an API request needing to be sent during data polling, and the polling rule is used for configuring attributes related to polled data; based on the API request configuration information and the polling rule configuration information, a polling trigger is generated, and the polling trigger is used for achieving a data polling function corresponding to the API request configuration information and the polling rule configuration information. By means of the scheme, if a user hopes to achieve the polling function for the data, software codes do not need to be written manually, the user only needs to trigger the polling trigger configuration operation and input the API request configuration information and the polling rule configuration information, and the efficiency of achieving the polling function is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and particularly relates to a polling implementation method and device, equipment, a storage medium and a program product. BACKGROUND

[0002] In some scenarios, data needs to be periodically obtained from an external system. For example, in an automated process, data needs to be periodically obtained from an external system. At present, a polling function can be implemented by a developer using a manual software code writing method.

[0003] However, the efficiency of this method is relatively low because the technical threshold for writing software code is high.

[0004] Therefore, there is an urgent need for a solution to solve the above problems. SUMMARY

[0005] To solve or at least partially solve the above technical problems, the present application provides a polling implementation method, device, equipment, storage medium and program product.

[0006] To achieve the above purpose, the technical scheme provided by the present application is as follows:

[0007] In a first aspect, the present application provides a polling implementation method, which comprises the following steps:

[0008] receiving a polling trigger configuration trigger;

[0009] receiving application programming interface request configuration information and polling rule configuration information, the application programming interface request configuration information being used to configure an application programming interface request that needs to be sent when polling data, and the polling rule being used to configure an attribute related to the data being polled;

[0010] generating a polling trigger based on the application programming interface request configuration information and the polling rule configuration information, the polling trigger being used to implement a data polling function corresponding to the application programming interface request configuration information and the polling rule configuration information.

[0011] Optionally, the application programming interface request configuration information comprises:

[0012] an interface address, a request header, a request body and a query parameter.

[0013] Optionally, the application programming interface request configuration information further comprises:

[0014] status code configuration information, and / or plug-in configuration information.

[0015] The status code configuration information is used to configure the first status code corresponding to the successful sending of the application programming interface request; the plugin configuration information is used to configure the conditions for filtering the data obtained by polling, so as to trigger other processes based on the filtered data.

[0016] Optionally, the polling trigger supports resending the application programming interface request when a second error status code different from the first status code is received.

[0017] Optionally, the polling rule configuration information includes at least one of the following:

[0018] The path of the polled data, the identifier for deduplicating the polled data, and the method for pushing the polled data.

[0019] Optionally, the application programming interface requests a local agent in the associated intranet so that the polling trigger can support retrieving data from the intranet.

[0020] Secondly, this application provides an apparatus for implementing polling, the apparatus comprising:

[0021] The first receiving unit is used to receive the triggers configured by the polling trigger;

[0022] The second receiving unit is used to receive application programming interface request configuration information and polling rule configuration information. The application programming interface request configuration information is used to configure the application programming interface request to be sent when polling data, and the polling rule is used to configure the attributes related to the polled data.

[0023] The generation unit is used to generate a polling trigger based on the application programming interface request configuration information and the polling rule configuration information. The polling trigger is used to implement the data polling function corresponding to the application programming interface request configuration information and the polling rule configuration information.

[0024] Optionally, the application programming interface requests configuration information, including:

[0025] Interface address, request headers, request body, and query parameters.

[0026] Optionally, the application programming interface request configuration information may further include:

[0027] Status code configuration information, and / or plugin configuration information;

[0028] The status code configuration information is used for configuring a first status code corresponding to a successful sending of the application programming interface request, and the plug-in configuration information is used for configuring a condition for screening the polled data, so as to trigger other processes based on the screened data.

[0029] Optionally, the polling trigger supports resending the application programming interface request when a second status code different from the first status code is received.

[0030] Optionally, the polling rule configuration information includes at least one of the following:

[0031] The path of the polled data, the identification of deduplication of the polled data, and the pushing manner of the polled data.

[0032] Optionally, the application programming interface request is associated with a local agent in an intranet, so that the polling trigger supports obtaining data from the intranet.

[0033] In a third aspect, the present application provides an electronic device, and the device includes a processor and a memory.

[0034] The memory is configured to store instructions or a computer program.

[0035] The processor is configured to execute the instructions or the computer program in the memory, so that the electronic device executes the method in the first aspect and any one of the first aspect.

[0036] In a fourth aspect, the present application provides a computer readable medium, and the computer readable medium stores instructions or a computer program, when the instructions or the computer program run on a device, the device executes the method in the first aspect and any one of the first aspect.

[0037] In a fifth aspect, the present application provides a computer program product, and the computer program product includes a computer program carried on a non-transitory computer readable medium, and the computer program includes program codes for executing the method in the first aspect and any one of the first aspect.

[0038] Compared with the related art, the present application has at least the following advantages:

[0039] The application provides a polling method, for example, applied to a low-code platform. A user can trigger a polling trigger configuration operation on the low-code platform, and the low-code platform receives a trigger of the polling trigger configuration accordingly. The user can also input application programming interface (API) request configuration information and polling rule configuration information. The API request configuration information is used to configure an API request to be sent when data is acquired. The polling rule is used to configure an attribute related to the polled data. The low-code platform can receive the API request configuration information and the polling rule configuration information, and generate a corresponding polling trigger based on the API request configuration information and the polling rule configuration information. The polling trigger is used to implement a data polling function corresponding to the API request configuration information and the polling rule configuration information. Therefore, according to the application, if a user wants to implement a polling function for data, the user does not need to manually write software code, but only needs to trigger a polling trigger configuration operation and input API request configuration information and polling rule configuration information, thereby improving the efficiency of implementing a polling function. BRIEF DESCRIPTION OF DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the embodiments or the related art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0041] Figure 1 A flowchart of a polling method provided by an embodiment of the present application is shown in the figure.

[0042] Figure 2 A configuration interface of a polling trigger provided by an embodiment of the present application is shown in the figure.

[0043] Figure 3 A structure diagram of a polling device provided by an embodiment of the present application is shown in the figure.

[0044] Figure 4 A structure diagram of an electronic device provided by an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0045] In the following, the technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application, so that those skilled in the art can better understand the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0046] In order to better understand the technical solutions provided in the present application, the method for implementing polling provided in the present application will be described first in combination with some drawings.

[0047] Referring to Figure 1 The figure is a flowchart of a method for implementing polling provided in an embodiment of the present application. Figure 1 The method shown can be applied to a low-code platform, for example. The low-code platform can also be referred to as an application platform as a service (application platform as a service, aPaaS) platform. The aPaaS platform is a cloud service platform that simplifies the deployment and management of application programs by providing scalable application infrastructure services.

[0048] Figure 1 The method shown includes the following S101-S103.

[0049] S101: receiving a trigger of a polling trigger configuration.

[0050] A user can trigger a polling trigger configuration operation in a low-code platform to configure (or also referred to as create) a polling trigger in the low-code platform. Correspondingly, the low-code platform can receive the trigger of the polling trigger configuration. In an example, after the user triggers the polling trigger configuration operation, the low-code platform can display a polling trigger configuration interface in response to the polling trigger configuration operation, and the configuration interface is used to configure the functions that the polling trigger needs to implement.

[0051] S102: receiving API request configuration information and polling rule configuration information, the API request configuration information is used to configure the API request that needs to be sent when polling data, and the polling rule is used to configure the attributes related to the data being polled.

[0052] In the present application, a user can input information required for implementing a data polling function. For example, the user can input information required for implementing a data polling function in the configuration page. In one example, considering that in actual applications, in order to implement a data polling function, on the one hand, the relevant attributes of the data to be polled need to be defined. On the other hand, the API request to be sent when polling data needs to be defined. Therefore, in one example, the user can input API request configuration information and polling rule configuration information. For example, the user can input API request configuration information and polling rule configuration information in the configuration interface. Wherein:

[0053] The API request configuration information is used to configure the API request to be sent when polling data. The polling rule is used to configure the attributes related to the data to be polled.

[0054] In one example, considering that the interface address, request header, request body and query parameter are indispensable contents in the API request. The interface address is used to indicate the destination address of the API request (that is, the address of the interface receiving the API request). The request header, request body and query parameter are key contents in the API request, which are used to indicate the specific content to be requested. Therefore, the aforementioned API request configuration information at least includes the interface address, request header, request body and query parameter. As for the request header, request body and query parameter, they are general terms in the API request, and the specific meaning and role of the request header, request body and query parameter will not be described in detail here.

[0055] In one example, in addition to the aforementioned interface address, request header, request body and query parameter, the API request configuration information can also include other information related to the API request, so as to implement other functions.

[0056] As a specific example, the API request configuration information can also include status code configuration information and / or plug-in configuration information. Wherein:

[0057] The status code configuration information is used to configure a first status code corresponding to the successful sending of the API request. Based on the status code configuration information, the polling trigger can return the first status code configured by the user when the API request is successfully sent, so as to determine that the API request is successfully sent. Correspondingly, when the polling data is abnormal, it is beneficial to combine the received status code (for example, a second status code) to locate the reason why the polling data is abnormal.

[0058] In one example, in order to guarantee the effect of polling data, i.e. to guarantee that data can be polled from an external system in time, the polling trigger also supports resending the API request when a second status code different from the aforementioned first status code is received, so as to obtain the polled data. In one example, if the polling trigger receives the second status code, the polling trigger can periodically send the aforementioned API request at a fixed period, so as to obtain the polled data through the API request.

[0059] The plug-in configuration information is used to configure a condition for screening the polled data, so as to trigger other processes based on the screened data. That is, in the present application, the polled data can be used to trigger other processes, and in the present application, the polled data can trigger other processes when the screening condition configured by the user is met. In this way, the condition for screening the polled data (i.e. the aforementioned screening condition) can be configured in the API request configuration information, so as to realize the process flow transfer between the polling trigger and other processes.

[0060] The present application embodiment does not specifically limit the screening condition configured by the user, and the screening condition configured by the user can be determined according to actual conditions. For example, assuming that the polled data is an instant messaging message, the screening rule can be that when the instant messaging message is an urgent message, other processes are triggered (for example, a mail sending process is triggered).

[0061] The present application does not specifically limit the polling rule configuration information, and the polling rule configuration information refers to information related to the polled data.

[0062] In one example, the polling rule configuration information includes a path of the polled data, so that the polling trigger can parse the polled data from the path.

[0063] In another example, the polling rule configuration information includes an identifier for deduplicating the polled data. In this way, when the polling trigger polls data including repeated data, the polling trigger can deduplicate the repeated data based on the identifier, so as to avoid a large amount of repeated data.

[0064] In yet another example, the polling rule configuration information includes a pushing manner of the polled data. That is, the polling rule configuration information further includes a pushing manner of pushing the polled data, so that the user can view the data pushed based on the pushing manner. The application does not specifically limit the pushing manner, which can be customized by the user according to actual conditions. For example, the pushing manner can be pushing in the order from early to late according to the data acquisition time. For another example, the pushing manner can be pushing in the order from high to low according to the importance of the data. And so on, which are not exemplified one by one here.

[0065] In one example, the low-code platform runs in an external network (or public network) environment. In this scenario, the foregoing API request can also be associated with a local agent in the internal network, so that the polling trigger can poll data from the internal network. Wherein, the API request associated with the local agent in the internal network, for example, can be that the API request is first sent to the foregoing local agent, and then forwarded to the service in the internal network after being converted by the local agent, and the data required to be polled by the polling trigger is obtained from the service in the internal network. After the local agent obtains the data required to be polled by the polling trigger from the service in the internal network, the data is returned to the polling trigger. That is, in the present scheme, the polling trigger created in the low-code platform can support polling data in the internal network.

[0066] S103: Based on the API request configuration information and the polling rule configuration information, a polling trigger is generated, which is used to realize the data polling function corresponding to the API request configuration information and the polling rule configuration information.

[0067] After the low-code platform receives the API request configuration information and the polling rule configuration information, it can generate a polling trigger based on the received API request configuration information and the polling rule configuration information. Since the polling trigger is generated based on the API request configuration information and the polling rule configuration information, the polling trigger can realize the data polling function corresponding to the API request configuration information and the polling rule configuration information.

[0068] It should be noted that the polling trigger created by the user in the low-code platform can be a process node in the business process, or can not be a process node in the business process, but a separate functional module for realizing the data polling function, which is not specifically limited by the embodiments of the application.

[0069] Through the above description, by using the scheme, if a user wants to implement the polling function for data, the user does not need to manually write software code, but only needs to trigger the polling trigger configuration operation and input the API request configuration information and the polling rule configuration information, thereby improving the efficiency of implementing the polling function.

[0070] The method for implementing polling provided by the embodiments of the present application is introduced above. Next, in combination with Figure 2 a possible way of creating a polling trigger is introduced. Figure 2 A schematic diagram of a configuration interface of a polling trigger provided by the embodiments of the present application is shown. The configuration interface is an interface displayed by the low-code platform in response to triggering of a polling trigger configuration operation, and a user can perform configuration of the polling trigger on the configuration interface.

[0071] As shown in Figure 2 the configuration interface of the polling trigger includes two parts, one part is an "API request configuration" part, and the other part is a "polling rule configuration" part.

[0072] The user can input the aforementioned API request configuration information in the "API request configuration part". Specifically, the API request configuration part includes three subparts, which are: API configuration, status code configuration, and plugin configuration. The API configuration is used to configure the interface address, request header, request body, and query parameter mentioned in the foregoing description; the status code configuration is used to configure the status code configuration information mentioned in the foregoing description; and the plugin configuration is used to configure the plugin configuration information mentioned in the foregoing description. The user can trigger an operation with respect to the "API configuration" area shown in Figure 2 , and accordingly, the low-code platform will pop up an API configuration related configuration interface, and the user inputs the interface address, request header, request body, and query parameter in the API configuration related configuration interface. Similarly, the user can trigger an operation with respect to the "status code configuration" area shown in Figure 2 , and accordingly, the low-code platform will pop up a status code configuration related configuration interface, and the user inputs the status code configuration information in the status code configuration related configuration interface. The user can trigger an operation with respect to the "plugin configuration" area shown in Figure 2 , and accordingly, the low-code platform will pop up a plugin configuration related configuration interface, and the user inputs the plugin configuration information in the plugin configuration related configuration interface.

[0073] The user can input the aforementioned polling rule configuration information in the "polling rule configuration" part, wherein the polling rule configuration information includes, for example, a path (i.e., the path of the data to be polled mentioned in the foregoing description), a deduplication identifier (i.e., the identifier for deduplicating the data to be polled mentioned in the foregoing description), and a push mode (i.e., the push mode of the data to be polled mentioned in the foregoing description).

[0074] It should be noted that,Figure 2 Just to understand the relevant content of the scheme, it does not constitute a limitation of the embodiments of the application, the content included in the configuration interface of the polling trigger is not limited to Figure 2 The content shown.

[0075] Based on the method for implementing polling provided in the embodiments of the application, the embodiments of the application further provide a device for implementing polling, which is explained and described below in combination with Figure 3 The structure of the device for implementing polling provided in the embodiments of the application. It should be noted that the technical details of the device for implementing polling provided in the embodiments of the application, please refer to the related content of the above-mentioned method for implementing polling. Figure 3 As

[0076] The device 300 for implementing polling provided in the embodiments of the application, as shown, includes a first receiving unit 301, a second receiving unit 602 and a generating unit 603. Figure 3 The first receiving unit 601 is configured to receive the trigger of the polling trigger configuration.

[0077] The second receiving unit 602 is configured to receive the application programming interface request configuration information and the polling rule configuration information, the application programming interface request configuration information is used to configure the application programming interface request needed to be sent when polling data, and the polling rule is used to configure the attribute related to the data being polled.

[0078] The generating unit 603 is configured to generate a polling trigger based on the application programming interface request configuration information and the polling rule configuration information, the polling trigger is used to implement the data polling function corresponding to the application programming interface request configuration information and the polling rule configuration information.

[0079] Optionally, the application programming interface request configuration information includes:

[0080] interface address, request header, request body and query parameter.

[0081] Optionally, the application programming interface request configuration information further includes:

[0082] status code configuration information, and / or plug-in configuration information;

[0083] The status code configuration information is used to configure the first status code corresponding to the successful sending of the application programming interface request; and the plug-in configuration information is used to configure the condition for filtering the data obtained by polling, so as to trigger other processes based on the data obtained by filtering.

[0084]

[0085] ​Optionally, the polling trigger supports resending the application programming interface request when a second status code different from the first status code is received.

[0086] Optionally, the polling rule configuration information comprises at least one of the following:

[0087] a path of the polled data, an identifier for deduplication of the polled data, and a pushing manner of the polled data.

[0088] Optionally, the application programming interface request is associated with a local proxy in an intranet, so that the polling trigger supports obtaining data from the intranet.

[0089] Based on the above related content of the device 300 for implementing polling, it can be known that, by using the present solution, if a user wants to implement the polling function for data, the user does not need to manually write software code, but only needs to input the API request configuration information and the polling rule configuration information in the polling trigger configuration interface, so that the efficiency of implementing the polling function is improved.

[0090] In addition, an electronic device is also provided in the embodiments of the present application, and the device comprises a processor and a memory: the memory is used for storing instructions or computer programs; and the processor is used for executing the instructions or computer programs in the memory, so that the electronic device executes any implementation manner of the method for implementing polling provided in the embodiments of the present application.

[0091] Referring to Figure 4 Fig. 4 shows a structural schematic diagram of an electronic device 400 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (for example, vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Figure 4 The electronic device shown is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.

[0092] As Figure 4As shown, the electronic device 400 can include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401 that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 402 or loaded into a random access memory (RAM) 403 from a storage device 408. Various programs and data required for the operation of the electronic device 400 are also stored in the RAM 403. The processing device 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0093] Generally, the following devices can be connected to the I / O interface 405: input devices 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 408 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 409. The communication devices 409 can allow the electronic device 400 to communicate wirelessly or wired with other devices to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that not all of the shown devices are required to be implemented or possessed. More or fewer devices can alternatively be implemented or possessed.

[0094] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 409, or installed from the storage devices 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the methods of embodiments of the present disclosure are performed.

[0095] The electronic device provided by the embodiments of the present disclosure and the method provided by the above-mentioned embodiments belong to the same inventive concept, and the technical details not described in detail in the present embodiments can be referred to the above-mentioned embodiments, and the present embodiments have the same beneficial effects as the above-mentioned embodiments.

[0096] The embodiments of the present application also provide a computer readable medium, wherein instructions or computer programs are stored in the computer readable medium, and when the instructions or computer programs are run on a device, the device is caused to perform any of the embodiments of the method for implementing polling provided by the embodiments of the present application.

[0097] It should be noted that the computer-readable medium described above can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination of the foregoing. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus or device. In the disclosure, the computer-readable signal medium can include a data signal propagated in baseband or propagated as a carrier wave in a propagated data signal, in which the computer-readable program code is contained. Such a propagated data signal can take many forms, including but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. The computer-readable signal medium can also be any computer-readable medium that can send, propagate or transfer the program for use by or in connection with an instruction execution system, apparatus or device. The program code contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to, wire, cable, RF (radio frequency), or the like, or any suitable combination of the foregoing.

[0098] In some embodiments, the client, server, or both can communicate using any current known or future developed network protocol, such as HTTP (Hyper Text Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any current known or future developed networks.

[0099] The computer-readable medium described above can be included in the electronic device described above; or can exist separately from the electronic device, and is not assembled into the electronic device.

[0100] The computer-readable medium described above carries one or more programs, when the one or more programs are executed by the electronic device, the electronic device can execute the method described above.

[0101] Computer program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0102] The computer program instructions can also be loaded onto a computer or other programmable information processing apparatus to cause a series of operations to be performed on the computer or other programmable information processing apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable information processing apparatus implement the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0103] The units described in the embodiments of the present disclosure can be implemented by hardware, software, or a combination of hardware and software. In some cases, the names of the units / modules do not constitute a limitation on the units themselves.

[0104] The functions described in this specification can be implemented in part or in whole through one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0105] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0106] It should be noted that the various embodiments described in the specification are progressive and each embodiment focuses on the differences from other embodiments. The same or similar parts between embodiments can be mutually referred to. For the system or device disclosed by the embodiments, since it corresponds to the method disclosed by the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.

[0107] It should be understood that in this application, "at least one" means one or more, and "multiple" means two or more. "And / or" is used to describe the association relationship between the associated objects, which means that there can be three kinds of relationships, for example, "A and / or B" can represent: only A, only B, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally represents that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0108] It is also to be noted that, as used in the specification and the appended claims, the singular forms "a," "an" and "the" include plural referents unless otherwise indicated. Furthermore, to the extent that the terms "including," "includes," "having," "has," "with," or "contains" are used in either the detailed description and the claims, such terms are intended to be inclusive in a manner similar to the term "comprising" as an open transition term without precluding any additional or other elements.

[0109] The embodiments disclosed herein can each be implemented as a method, apparatus, or article of manufacture using programming instructions. The embodiments disclosed herein can be implemented using software, firmware, hardware, or a combination thereof. The various elements of the disclosed embodiments, as well as the procedural aspects of the disclosed embodiments, can be implemented using a variety of programming instructions, software, firmware, or the like. In one embodiment, the programming instructions are implemented using a high-level procedural or object-oriented programming language to

[0110] The above description of disclosed embodiments is intended to be illustrative and not restrictive. Many embodiments will be apparent to those of skill in the art upon reading and understanding the above description, and it is therefore contemplated to be within the scope of the claims to claim any such embodiments. The scope of the claims should not be limited to the foregoing description, and embodiments can be practiced in other than the exemplary embodiments which are implemented in the direction of the claims.

Claims

1. A method for implementing polling, characterized in that, The method includes: Receives the trigger configured by the polling trigger; The system receives application programming interface (API) request configuration information and polling rule configuration information. The API request configuration information is used to configure the API request to be sent when polling data, and the polling rule is used to configure the attributes related to the polled data. Based on the application programming interface request configuration information and the polling rule configuration information, a polling trigger is generated. The polling trigger is used to implement the data polling function corresponding to the application programming interface request configuration information and the polling rule configuration information.

2. The method according to claim 1, characterized in that, The application programming interface requests configuration information, including: Interface address, request headers, request body, and query parameters.

3. The method according to claim 2, characterized in that, The application programming interface request configuration information also includes: Status code configuration information, and / or plugin configuration information; The status code configuration information is used to configure the first status code corresponding to the successful sending of the application programming interface request; the plugin configuration information is used to configure the conditions for filtering the data obtained by polling, so as to trigger other processes based on the filtered data.

4. The method according to claim 3, characterized in that, The polling trigger supports resending the application programming interface request when a second status code different from the first status code is received.

5. The method according to any one of claims 1-4, characterized in that, The polling rule configuration information includes at least one of the following: The path of the polled data, the identifier for deduplicating the polled data, and the method for pushing the polled data.

6. The method according to any one of claims 1-4, characterized in that, The application programming interface requests a local agent in the associated intranet so that the polling trigger can retrieve data from the intranet.

7. An apparatus for implementing polling, characterized in that, The device includes: The first receiving unit is used to receive the triggers configured by the polling trigger; The second receiving unit is used to receive application programming interface request configuration information and polling rule configuration information. The application programming interface request configuration information is used to configure the application programming interface request to be sent when polling data, and the polling rule is used to configure the attributes related to the polled data. The generation unit is used to generate a polling trigger based on the application programming interface request configuration information and the polling rule configuration information. The polling trigger is used to implement the data polling function corresponding to the application programming interface request configuration information and the polling rule configuration information.

8. An electronic device, characterized in that, The device includes: a processor and a memory; The memory is used to store instructions or computer programs; The processor is configured to execute the instructions or computer program in the memory to cause the electronic device to perform the method according to any one of claims 1-6.

9. A computer-readable medium, characterized in that, The computer-readable medium stores instructions or computer programs that, when executed on the device, cause the device to perform the method according to any one of claims 1-6.

10. A computer program product, characterized in that, It includes a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method of any one of claims 1-6.