WO2016119389A1 - Management method, device and system for system docking - Google Patents

Management method, device and system for system docking Download PDF

Info

Publication number
WO2016119389A1
WO2016119389A1 PCT/CN2015/082573 CN2015082573W WO2016119389A1 WO 2016119389 A1 WO2016119389 A1 WO 2016119389A1 CN 2015082573 W CN2015082573 W CN 2015082573W WO 2016119389 A1 WO2016119389 A1 WO 2016119389A1
Authority
WO
WIPO (PCT)
Prior art keywords
api
call
calling
script
abnormal
Prior art date
Application number
PCT/CN2015/082573
Other languages
French (fr)
Chinese (zh)
Inventor
苏懿
张飞
董杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016119389A1 publication Critical patent/WO2016119389A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, an apparatus, and a system for managing system docking.
  • SDM Service Desk Management
  • the FM (Fault Management) system is used to filter and compress the reported alarm faults to clarify the cause of the fault.
  • the WFM (Workforce Management) system is used to schedule off-line personnel based on information such as the location of the off-line personnel, the location of the task, and the processing time of the task.
  • the processing of the network fault requires that the foregoing systems cooperate according to the docking code or the business rule between the systems, and when an abnormal call between the systems occurs, the docking code or the business rule between the systems needs to be adjusted.
  • the management of the system docking (that is, the adjustment of the docking code or the business rules between the systems) is performed manually, which is inefficient and consumes human resources.
  • BA Business Analyst
  • SI System Integrator
  • the invention provides a method, a device and a system for managing the system docking, so as to solve the problem that the management of the system docking in the prior art is inefficient and consumes human resources.
  • a method for managing system docking including:
  • the calling server acquires an abnormal call record of the API from at least one call record of the application programming interface API according to a preset abnormal identifier, where the API is registered by the callee to any API of the calling server,
  • the call record is used to record the call information of the API that the initiator invokes, and the exception call record of the API is the call record of the API including the exception identifier;
  • the script factor that generates the exception call includes at least one of a call condition of the API and a call parameter of the API; a calling condition of the API
  • the calling parameter of the API is a transfer parameter that invokes the API;
  • the determining, by the exception call record of the API, a script factor that generates an exception call includes:
  • the calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is the script factor that generates the abnormal call;
  • the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is the script factor that generates the abnormal call.
  • the adjusting the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call includes:
  • the adjusting the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call includes:
  • the method further includes:
  • the API associated with the script factor that generates the exception call includes:
  • An API that matches the associated factors with the script factors that generate the exception call is queried in the API registered to the calling server.
  • the method further includes:
  • the calling server receives the initiation information sent by the initiator
  • the called information is added to the call record of the API.
  • the initiator includes a service desk management SDM system and a fault management FM The system and outside personnel manage any system in the WFM system;
  • the called party includes any one of a service station management SDM system, a fault management FM system, and an outside line personnel management WFM system.
  • the initiator is a fault management FM system
  • the called party is a service station management SDM system.
  • the called information includes a work order source, and the abnormality identifier is “FM manual dispatch”;
  • the calling server acquires the abnormal call record of the API from at least one call record of the application programming interface API according to the preset abnormal identifier:
  • the determining the script factors that generate the exception call according to the abnormal call record of the API includes:
  • the API call condition of the API is counted in the call record of the work order source of the called information, and the call condition of the probability value reaches the preset threshold is determined as the script factor;
  • the adjusting the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call includes:
  • the initiator is a service station management SDM system
  • the called party manages a WFM system for an outside party
  • the initiation information Including the fault processing mode, the abnormality identifier is “not arriving at the station, and the fault has been recovered”
  • the calling server acquires the abnormal call record of the API from at least one call record of the application programming interface API according to the preset abnormal identifier:
  • the determining the script factors that generate the exception call according to the abnormal call record of the API includes:
  • the call parameters of the API are counted in the call record of the failure detection mode of the initiating information, which is “not arrived, the fault has been recovered”, and the call parameter whose probability value reaches the preset threshold is determined as the script factor;
  • the adjusting the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call includes:
  • a call server including:
  • An obtaining unit configured to acquire an abnormal call record of the API from at least one call record of an application programming interface API according to a preset abnormal identifier;
  • the API is any API registered by the callee to the calling server
  • the call record is used to record call information of the API that the initiator invokes;
  • the exception call record of the API is a call record of the API that includes the exception identifier;
  • a statistical analysis unit configured to determine, according to the abnormal call record of the API acquired by the acquiring unit, a script factor that generates an abnormal call;
  • the script factor that generates the abnormal call includes a calling condition of the API and a call of the API At least one of the parameters;
  • the calling condition of the API is a conditional factor that triggers the calling of the API, and the calling parameter of the API is a transfer parameter that invokes the API;
  • a script adjusting unit configured to adjust an API script corresponding to the abnormal call record according to a script factor that is generated by the statistical analysis unit to generate an abnormal call.
  • the statistical analysis unit is specifically configured to:
  • the calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is the script factor that generates the abnormal call;
  • the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is the script factor that generates the abnormal call.
  • the script adjusting unit is specifically configured to:
  • Adjusting an API corresponding to the abnormal call record according to the script factor that generates the abnormal call At least one of a call condition and a call parameter in the script.
  • the calling server further includes a query unit, configured to query, in association with the script factor that generates the exception call
  • the script adjustment unit is specifically configured to add the API associated with the script factor to an API script corresponding to the exception call record.
  • the calling server further includes a preset unit, configured to set an association factor of an API registered to the calling server;
  • the query unit is specifically configured to query, in the API registered to the calling server, an API that matches a correlation factor with a script factor that generates an abnormal call.
  • the method further includes:
  • a receiving unit configured to receive initiation information sent by the initiator
  • a recording unit configured to add the initiation information to the call record of the API after determining to invoke the API according to an event type and an event content included in the initiation information
  • the called information is added to the call record of the API.
  • a calling system comprising: an initiator device running an initiator software system, and a called party device running the called software system, the calling system further comprising: a calling server, wherein the calling The server is connected to the initiator device and the called party device respectively;
  • the calling server is the calling server according to any one of the possible implementation manners of the second aspect to the fifth possible implementation manner of the second aspect;
  • the initiator software system of the initiator device is configured to send initiation information to the calling server;
  • the initiation information includes a leave type and an event content;
  • the called software system of the called party device is configured to register an API of the called party device to the calling server; perform corresponding according to an API invoked by the calling server operating.
  • a calling system comprising a multi-system device, the multi-system device comprising an initiator software system and a callee software system, the calling system further comprising: a calling server, wherein the calling server and the server The multi-system devices are connected;
  • the calling server is the calling server according to any one of the possible implementation manners of the second aspect to the fifth possible implementation manner of the second aspect;
  • An initiator software system in the multi-system device configured to send initiation information to the calling server;
  • the initiation information includes a leave type and an event content;
  • the called party software system in the multi-system device is configured to register an API of the called party software system to the calling server; and perform a corresponding operation according to the API invoked by the calling server.
  • the calling server statistically analyzes the law of the abnormal call of the API according to the calling record of the API, and adjusts the corresponding API script according to the law to solve the abnormal calling problem, and the efficiency of solving the abnormal calling problem is higher, and avoids Manual participation saves human resources.
  • FIG. 1 is a schematic diagram of an inter-system call architecture according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for managing system interconnection according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of generating an API call record according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a call record of an API according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an API script configuration according to an embodiment of the present invention.
  • FIG. 5b is a schematic diagram of an API script configuration adjustment according to an embodiment of the present invention.
  • FIG. 6a is a schematic diagram of another API script configuration according to an embodiment of the present invention.
  • FIG. 6b is a schematic diagram of another API script configuration adjustment according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a call server according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another calling server according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of still another calling server according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a calling system according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another calling system according to an embodiment of the present invention.
  • the following embodiments of the present invention can be used for the inter-system call architecture as shown in FIG. 1, which includes an initiator, a callee, and a call server.
  • the calling server is connected to the initiator and the called party, respectively.
  • Both the initiator and the callee can be a software system that invokes a service interface for an open API, and the same software system can act as both an initiator and a callee.
  • the software system as the called party registers an API (Application Programming Interface) that is open to the external call to the calling server, so that the calling server, when receiving the initiation information sent by the initiator, is called according to the initiation information.
  • the callee's API implements mutual calls between systems.
  • both the initiator and the callee described herein can be understood as a software system, and the initiator and the callee can be on different physical hardware or integrated on the same physical hardware.
  • the embodiment of the invention provides a method for managing system docking. As shown in FIG. 2, the method includes:
  • the calling server acquires an abnormal call record of the API from at least one call record of the API according to the preset abnormal identifier.
  • the API is any API registered by the callee to the calling server, and the call record is used to record the call information of the initiator calling the API, and the abnormal call record of the API is recorded as the call record of the API including the exception identifier.
  • the embodiment of the present invention is described for an API, but it should be clear to those skilled in the art that the system can be managed by the system provided by the embodiment of the present invention for other APIs registered in the calling server.
  • the method is managed, and the calling server can implement the system docking management method provided by the embodiment of the present invention for multiple APIs at the same time.
  • the initiator or the called party is an SDM system
  • the call record of the API includes an SDM work order
  • the SDM work order includes an alert type, a fault processing mode, a work order source, and the like
  • the abnormal identifier may be an alarm.
  • Type power environment alarm”
  • fault processing mode no arrival, failure has been restored
  • work order source manual dispatch
  • the abnormality identifier may be preset in the scheduling server by the user or the scheduling server, or may be preset in other devices.
  • the scheduling server needs to obtain the abnormal identifier from other devices, which is not limited by the present invention.
  • the callee registers an API that is open to the external call to the call server, where the call server can be an IPaaS (Integration Platform as a Service, integration). Platform as a service), the calling server runs an APP application in the form of an API script to implement docking between systems.
  • IPaaS IPaaS
  • the calling server runs an APP application in the form of an API script to implement docking between systems.
  • Each call record of the API is the call information of the API recorded by the calling server during an API call.
  • each call record of the API includes at least the following call information:
  • the identifier of the API, the identifier of the API script corresponding to the API, and the event type, event content of each call to the API if the calling parameter of the API is not empty, the calling record of the API further includes the calling parameter of the API.
  • the scheduling server in the process of the initiator calling the called party, the scheduling server generates a call record of the API as shown in FIG. 3, including:
  • S2011 The calling server receives the initiation information sent by the initiator.
  • the calling server determines to add the initiation information to the call record of the API after determining to invoke the API according to the event type and event content included in the initiation information.
  • the API script includes a trigger event of the API, a calling condition of the API, and an identifier of the API, and the calling server determines that the event type matches the trigger event in the API script, and the event content satisfies the calling condition of the API.
  • the API corresponding to the identifier of the API is called.
  • the call record of the API should include as many call dimensions as the API, according to In the above process, the call record of the API includes both the initiation information of calling the API and the called information, but in actual implementation, the call record of the API may include one of the initiation information and the called information.
  • the invention is not limited thereto.
  • the calling server determines, according to the abnormal call record of the API, a script factor that generates an abnormal call, and the script factor that generates the abnormal call includes at least one of a calling condition of the API and a calling parameter of the API.
  • the calling condition of the API is a conditional factor that triggers the calling of the API
  • the calling parameter of the API is a delivery parameter that invokes the API.
  • the calling server performs statistics on the calling condition of the API included in the abnormal call record of the API, and determines that the calling condition that the probability value reaches the preset threshold is a script factor that generates the abnormal call; or, the calling server
  • the call parameters of the API included in the exception call record of the API are counted, and the call parameter whose probability value reaches the preset threshold is determined as the script factor for generating the exception call.
  • the initiator is the FM system and the called party is the SDM system.
  • the API call record includes: FM alarm information (ie, the initiation information), and SDM work order information (that is, the called information). And the inherent information of the API.
  • the call record of the API includes a plurality of call information, and the abnormality identifier may be any one of the FM alarm information or the SDM work order information or the API call information.
  • step S201 is specifically: the calling server acquires the call record of the “FM manual dispatch” from the at least one call record of the API.
  • the step S202 may be: the calling server performs statistics on the calling condition in the call record of the work order of the SDM work order that is “FM manual dispatch”, and determines that the calling condition that the probability value reaches the preset threshold is the abnormality.
  • the calling server adjusts an API script corresponding to the abnormal call record according to the script factor that generates the abnormal call.
  • the adjustments to the API script include the following two methods:
  • Manner 1 The calling server adjusts at least one of a calling condition and a calling parameter in an API script corresponding to the abnormal calling record according to the script factor that generates the abnormal call.
  • FIG. 5a is a configuration of an API script before adjustment
  • FIG. 5b is a configuration of an adjusted API script.
  • the API that identifies the creation of the SDM work order is invoked, and the call parameter for calling the API may be empty.
  • the API that identifies the creation of the SDM work order is called.
  • the calling server automatically invokes the API, so that the SDM creates an SDN work order and completes the call to the SDM without The manual dispatch is manually performed, which solves the problem of abnormal call of "FM manual dispatch".
  • the calling server obtains the fault handling manner of the initiation information from the call record of the API.
  • the call record of “not arriving at the station, the fault has been recovered” that is, the exception call record
  • the call parameters of the API in the exception call record are counted, and the probability that the delay time in the call parameter is less than 30 minutes is reached.
  • the preset threshold (for example, 80%) increases the delay time in the calling parameters of the API.
  • FIG. 6a is a configuration of an API script before adjustment
  • FIG. 6b is a configuration of an adjusted API script.
  • the delay time for calling the API that creates the WFM work order task for the registration delay is 20 minutes, which may cause the off-line personnel not to go to the fault site, and the fault has been restored.
  • the delay time for calling the API that creates the WFM work order task for the registration delay is increased to 30 minutes, which reduces the abnormal work order that generates "not arriving, the fault has been recovered.
  • Method 2 the calling server query is related to the script factor that generates the exception call
  • the associated API adds the API associated with the script factor to the API script corresponding to the exception call record.
  • the calling server sets an association factor of the API registered to the calling server, and the calling server queries the API associated with the script element that generates the abnormal call, including: querying the related factor in the API registered to the calling server The API that matches the scripting factor that generated the exception call.
  • the first method described above is to adjust the API that has been added to the API script.
  • the API script that can be added to the newly registered API can be added in the second way.
  • the administrator can set its associated factors, which can be set according to the attributes of the API, for example, an API for "registration delay to create a WFM work order task". Since the API belongs to the external delay dispatching list, the delay time of the dispatching of the API can be set.
  • the API is to create an SDM work order, and the related factor is set as a dynamic environment alarm, so that when the calling server determines that an abnormality is generated, After the script factor, the API that matches the related factors to the script factor that generated the exception is queried from the newly registered API, and the API is added to the API script.
  • the correlation factor is matched with the script factor that generates the abnormality, and the correlation factor may be consistent with the script factor that generates the abnormality.
  • the newly registered APIs can be sorted by relevance, and the most relevant APIs are added to the API scripts, wherein one API exists consistent with multiple script factors that generate exceptions. The more relevant the factors, the higher the relevance of the API.
  • the foregoing adjustment according to the API may be performed by an administrator, and specifically, the calling server will identify and generate an abnormality.
  • the usual script factor informs the administrator as an adjustment suggestion so that the administrator can adjust the corresponding API script.
  • the embodiment of the present invention may further perform the foregoing steps S201 to S203 according to a certain period (such as daily or monthly, etc.), and automatically solve the problem of abnormal calling between systems, which is not limited in the embodiment of the present invention.
  • a certain period such as daily or monthly, etc.
  • the law of the abnormal call of the API is statistically analyzed, and the corresponding API script is adjusted according to the rule to solve the abnormal call problem, which is more efficient in solving the abnormal call problem and avoids manual participation. , saving human resources.
  • the embodiment of the present invention provides a call server 70, which corresponds to the method embodiment of FIG. 2, and each functional unit of the call server 70 can be used in the foregoing method steps.
  • the call server 70 includes:
  • the obtaining unit 71 is configured to obtain an abnormal call record from at least one call record of the application programming interface API according to the preset abnormality identifier.
  • the API is any API that is registered by the callee to the calling server, and the call record is used to record call information of the API that the initiator invokes; the abnormal call record of the API is to include the abnormal identifier.
  • the call record of the API is any API that is registered by the callee to the calling server, and the call record is used to record call information of the API that the initiator invokes; the abnormal call record of the API is to include the abnormal identifier.
  • the statistical analysis unit 72 is configured to determine, according to the abnormal call record of the API acquired by the obtaining unit 71, a script factor that generates an abnormal call.
  • the script factor for generating the exception call includes at least one of a calling condition of the API and a calling parameter of the API; the calling condition of the API is a conditional element triggering the calling of the API, and the calling parameter of the API is calling the API. Passing parameters.
  • the script adjusting unit 73 is configured to adjust an API script corresponding to the abnormal call record according to a script factor that is generated by the statistical analysis unit to generate an abnormal call.
  • Each call record of the API is the call information of the API recorded by the calling server during an API call.
  • each call record of the API includes at least the following call information:
  • the identifier of the API, the identifier of the API script corresponding to the API, and the event type, event content of each call to the API if the calling parameter of the API is not empty, the calling record of the API further includes the calling parameter of the API.
  • the calling server further includes: a receiving unit 74, configured to receive the initiation information sent by the initiator, and a recording unit 75, configured to use the event type included according to the initiation information. And the content of the event, after determining that the API is invoked, adding the initiation information to the call record of the API; after calling the API and obtaining the called information of the called party, adding the called information to the call of the API Recorded.
  • the calling record of the API should include as many call dimensions as the API, and the recording unit 75 simultaneously records the initiation information of the calling API and is called.
  • the call record of the API may include one of the originating information and the called information. The invention is not limited thereto.
  • the statistical analysis unit 72 is specifically configured to:
  • the calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is a script factor for generating the abnormal call;
  • the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is a script factor that causes the abnormal call.
  • the initiator is the FM system and the called party is the SDM system.
  • the API call record includes: FM alarm information (ie, the initiation information), and SDM work order information (that is, the called information). And the inherent information of the API.
  • API The call record includes a plurality of call information, and the exception identifier may be any one of the FM alarm information or the SDM work order information or the API call information.
  • the obtaining unit 71 is specifically configured to: obtain, from the at least one call record of the API, the call record of the work order source of all the SDM work orders as "FM manual dispatch”;
  • the statistical analysis unit 72 is specifically configured to: perform statistics on the calling conditions in the call record of the work order of the SDM work order that is “FM manual dispatch”, and determine that the calling condition that the probability value reaches the preset threshold is the abnormal call.
  • the script adjusting unit 73 is specifically configured to: adjust at least one of a calling condition and a calling parameter in an API script corresponding to the abnormal calling record according to the script factor that generates the abnormal calling One.
  • the script adjusting unit 73 adds the power environment alarm to the API in the API script corresponding to the API. In the call condition.
  • FIG. 5a is a configuration of an API script before adjustment
  • FIG. 5b is a configuration of an adjusted API script.
  • the calling server obtains the fault handling manner of the initiation information from the call record of the API.
  • the call record of “not arriving at the station, the fault has been recovered” that is, the exception call record
  • the call parameters of the API in the exception call record are counted, and the probability that the delay time in the call parameter is less than 30 minutes is reached.
  • the preset threshold (for example, 80%) increases the delay time in the calling parameters of the API.
  • FIG. 6a is a configuration of an API script before adjustment
  • FIG. 6b is a configuration of an adjusted API script. Specific reference Corresponding descriptions in the method embodiments are not described herein again.
  • the calling server further includes a query unit 76, configured to query an API associated with the script factor that generates the abnormal call; the script adjusting unit 73 is specifically configured to add the API associated with the script factor to an API script corresponding to the exception call record.
  • the calling server further includes a pre-setting unit 77, configured to set an association factor of an API registered to the calling server; thus, the query unit 76 is specifically configured to query the association in the API registered to the calling server.
  • the factor is the API that matches the scripting factor that generated the exception call.
  • the administrator can set its associated factors, which can be set according to the attributes of the API, for example, an API for "registration delay to create a WFM work order task". Since the API belongs to the external delay dispatching list, the delay time of the dispatching of the API can be set.
  • the API is to create an SDM work order, and the related factor is set as a dynamic environment alarm, so that when the calling server determines that an abnormality is generated, After the script factor, the API that matches the related factors to the script factor that generated the exception is queried from the newly registered API, and the API is added to the API script.
  • the correlation factor is matched with the script factor that generates the abnormality, and the correlation factor may be consistent with the script factor that generates the abnormality.
  • the newly registered APIs can be sorted by relevance, and the most relevant APIs are added to the API scripts, wherein one API exists consistent with multiple script factors that generate exceptions. The more relevant the factors, the higher the relevance of the API.
  • the above calling server is used, and the calling server statistically analyzes the law of the API abnormal call according to the calling record of the API, and adjusts the corresponding API script according to the law to solve the abnormal calling problem, and the efficiency of solving the abnormal calling problem is higher, and Avoid manual participation and save human resources.
  • An embodiment of the present invention provides a call server 90, as shown in FIG. 9, including:
  • processor 91 a processor 91, a communications interface 92, a memory 93, and a communication bus 94; wherein the processor 91, the communication interface 92, and the memory 93 are completed by the communication bus 94 Communication with each other.
  • the processor 91 may be a multi-core central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • CPU central processing unit
  • ASIC Application Specific Integrated Circuit
  • the memory 93 is for storing program code, and the program code includes computer operation instructions and a network flow diagram.
  • the memory 93 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • the communication interface 92 is used to implement connection communication between these devices.
  • the processor 91 is configured to execute program code in the memory 93 to implement the following operations:
  • the calling server acquires an abnormal call record of the API from at least one call record of the application programming interface API according to a preset abnormal identifier, where the API is registered by the callee to any API of the calling server,
  • the call record is used to record the call information of the API that the initiator invokes, and the exception call record of the API is the call record of the API including the exception identifier;
  • the script factor that generates the exception call includes a call condition of the API and the API At least one of the calling parameters;
  • the calling condition of the API is a conditional factor that triggers the calling of the API, and the calling parameter of the API is a transfer parameter that invokes the API;
  • the determining, according to the abnormal call record of the API, determining a script factor that generates an abnormal call includes:
  • the calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is the script factor that generates the abnormal call;
  • the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is the script factor that generates the abnormal call.
  • the adjusting the API script corresponding to the exception call record according to the script factor that generates the exception call includes:
  • the adjusting the API script corresponding to the exception call record according to the script factor that generates the exception call includes:
  • the operations further include:
  • the API associated with the script factor that generates the exception call includes:
  • An API that matches the associated factors with the script factors that generate the exception call is queried in the API registered to the calling server.
  • the operations further include:
  • the calling server receives the initiation information sent by the initiator
  • the called information is added to the call record of the API.
  • the initiator includes any one of a service station management SDM system, a fault management FM system, and an outside line personnel management WFM system;
  • the called party includes any one of a service station management SDM system, a fault management FM system, and an outside line personnel management WFM system.
  • An embodiment of the present invention provides a calling system. As shown in FIG. 10, the calling system includes:
  • the initiator device 101 running the initiator software system, and the called party device 102 running the called software system further includes: an invoking server 103, wherein the invoking server 103 and the initiating device 101 and the called party respectively The device is connected 102.
  • the initiator software system of the initiator device 101 is configured to send initiation information to the calling server; the initiation information includes a leave type and an event content.
  • the called software system of the called party device 102 is configured to register the API of the called party device to the calling server; perform corresponding operations according to the API invoked by the calling server.
  • the call server 103 is the call server 70 shown in FIG. 7, or the call server 80 shown in FIG. 8, or the call server 90 shown in FIG. 9.
  • the call server 70 shown in FIG. 7, or the call server 80 shown in FIG. 8, or the call server 90 shown in FIG. 9.
  • FIG. 7 or FIG. 8 in the above embodiment.
  • the description of Figure 9 will not be repeated here.
  • the calling server in the system statistically analyzes the law of the abnormal call of the API according to the calling record of the API, and adjusts the corresponding API script according to the law to solve the abnormal calling problem between the software systems, and solves the abnormal calling problem. More efficient, and avoiding human involvement, saving human resources.
  • the calling system includes: a multi-system device 111.
  • the multi-system device includes an initiator software system and a callee software system, and the calling system further includes: calling the server. 112, wherein the calling server 112 is connected to the multi-system device 111.
  • the initiator software system in the multi-system device 111 is configured to send initiation information to the calling server; the initiation information includes a leave type and an event content.
  • the called party software system in the multi-system device 111 is configured to register the API of the called party software system to the calling server; and perform corresponding operations according to the API invoked by the calling server.
  • the call server 103 is the call server 70 shown in FIG. 7, or the call server 80 shown in FIG. 8, or the call server 90 shown in FIG. 9.
  • the call server 70 shown in FIG. 7, or the call server 80 shown in FIG. 8, or the call server 90 shown in FIG. 9.
  • FIG. 7 or FIG. 8 in the above embodiment.
  • the description of Figure 9 will not be repeated here.
  • the calling server in the system statistically analyzes the law of the abnormal call of the API according to the calling record of the API, and adjusts the corresponding API script according to the law to solve the abnormal calling problem between the software systems, and solves the abnormal calling problem. More efficient, and avoiding human involvement, saving human resources.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit. To be located in one place, or distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Provided are a management method, device and system for system docking, which relate to the field of communications, and aim at solving the problems in the prior art of low management efficiency of system docking and consumption of manpower resources. The method comprises: according to a pre-set abnormal identification, acquiring an abnormal invoking record from at least one invoking record of an application programming interface (API); according to the abnormal invoking record of the API, determining a script factor for generation of abnormal invoking, wherein the script factor for the generation of the abnormal invoking comprises an invoking condition of the API and at least one of the invoking parameters of the API; and according to the script factor for the generation of the abnormal invoking, adjusting an API script corresponding to the abnormal invoking record. The embodiments of the present invention are used for managing system docking.

Description

一种系统对接的管理方法、装置和系统Method, device and system for managing system docking 技术领域Technical field
本发明涉及通信领域,尤其涉及一种系统对接的管理方法、装置和系统。The present invention relates to the field of communications, and in particular, to a method, an apparatus, and a system for managing system docking.
背景技术Background technique
现有技术中,涉及到多个系统之间的相互调用时,需要由人工预先制定各系统间的对接代码或者业务规则,例如,NOC(Network Operation Center,网络运维中心)包括的以下系统:In the prior art, when the mutual calling between multiple systems is involved, it is necessary to manually pre-define the docking code or service rules between the systems, for example, the following systems included in the NOC (Network Operation Center):
SDM(Service Desk Management服务台管理)系统,用于处理所有的事件、问题、变更等工单,保证这些工单按既定程序运作;SDM (Service Desk Management) system for handling all work orders, problems, changes, etc., to ensure that these work orders operate according to established procedures;
FM(Fault Management,故障管理)系统,用于对上报的告警故障进行过滤和压缩,以明确故障原因;The FM (Fault Management) system is used to filter and compress the reported alarm faults to clarify the cause of the fault.
WFM(Workforce Management,外线人员管理)系统,用于根据线外人员所在位置、任务所在位置、任务处理时长等信息,对线外人员进行调度。The WFM (Workforce Management) system is used to schedule off-line personnel based on information such as the location of the off-line personnel, the location of the task, and the processing time of the task.
其中,对网络故障的处理需要上述各系统根据系统间的对接代码或者业务规则协作运行,并且在出现系统间的异常调用时,需要对系统间的对接代码或者业务规则进行调整。The processing of the network fault requires that the foregoing systems cooperate according to the docking code or the business rule between the systems, and when an abnormal call between the systems occurs, the docking code or the business rule between the systems needs to be adjusted.
现有技术中,系统对接的管理(即对系统间的对接代码或者业务规则进行调整)由人工进行,其效率低下且消耗了人力资源,例如,对于上述各系统出现异常调用时,现有技术需要BA(Business Analyst,业务分析工程师)对SDM工单信息进行分析,从专业、厂商、区域等维度,找到可能的优化点,再由SI(System Integrator,系统集成工程师)根据特定项目的优化点,针对各个系统调整系统间调用的对接代码或者业务规则,使得各 系统间的相互调用恢复正常。In the prior art, the management of the system docking (that is, the adjustment of the docking code or the business rules between the systems) is performed manually, which is inefficient and consumes human resources. For example, when an abnormal call occurs in each of the above systems, the prior art You need BA (Business Analyst) to analyze the SDM work order information, find possible optimization points from the dimensions of professional, vendor, and region, and then optimize the points according to the specific project by SI (System Integrator). Adjusting the docking code or business rules called between systems for each system, so that each Mutual calls between systems return to normal.
发明内容Summary of the invention
本发明提供一种系统对接的管理方法、装置和系统,以解决现有技术中系统对接的管理效率低下且消耗了人力资源的问题。The invention provides a method, a device and a system for managing the system docking, so as to solve the problem that the management of the system docking in the prior art is inefficient and consumes human resources.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
第一方面,提供一种系统对接的管理方法,包括:In a first aspect, a method for managing system docking is provided, including:
调用服务器根据预设的异常标识,从应用程序编程接口API的至少一条调用记录中获取所述API的异常调用记录,所述API为被调用方注册到所述调用服务器的任一API,所述调用记录用于记录发起方调用所述API的调用信息,所述API的异常调用记录为包括所述异常标识的所述API的调用记录;The calling server acquires an abnormal call record of the API from at least one call record of the application programming interface API according to a preset abnormal identifier, where the API is registered by the callee to any API of the calling server, The call record is used to record the call information of the API that the initiator invokes, and the exception call record of the API is the call record of the API including the exception identifier;
根据所述API的异常调用记录确定产生异常调用的脚本因素,所述产生异常调用的脚本因素包括所述API的调用条件和所述API的调用参数中的至少一种;所述API的调用条件为触发调用所述API的条件因素,所述API的调用参数为调用所述API的传递参数;Determining, according to the abnormal call record of the API, a script factor that generates an exception call, the script factor that generates the exception call includes at least one of a call condition of the API and a call parameter of the API; a calling condition of the API In order to trigger a conditional factor for invoking the API, the calling parameter of the API is a transfer parameter that invokes the API;
根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本。Adjusting the API script corresponding to the exception call record according to the script factor that generates the exception call.
在结合第一方面的第一种可能的实现方式中,所述根据所述API的异常调用记录确定产生异常调用的脚本因素包括:In conjunction with the first possible implementation of the first aspect, the determining, by the exception call record of the API, a script factor that generates an exception call includes:
对所述API的异常调用记录中包括的所述API的调用条件进行统计,确定概率值达到预设阈值的调用条件为所述产生异常调用的脚本因素;The calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is the script factor that generates the abnormal call;
或者,对所述API的异常调用记录中包括的所述API的调用参数进行统计,确定概率值达到预设阈值的调用参数为所述产生异常调用的脚本因素。Or, the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is the script factor that generates the abnormal call.
结合第一方面或者第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本包括: With reference to the first aspect, or the first possible implementation manner of the first aspect, in a second possible implementation, the adjusting the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call includes:
根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本中的调用条件和调用参数中的至少一种。And adjusting at least one of a calling condition and a calling parameter in the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call.
结合第一方面或者第一方面的第一种可能的实现方式,在第三种可能的实现方式中,所述根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本包括:With reference to the first aspect, or the first possible implementation manner of the first aspect, in a third possible implementation, the adjusting the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call includes:
查询与所述产生异常调用的脚本因素相关联的API;将所述与所述脚本因素相关联的API添加到所述异常调用记录对应的API脚本中。Querying an API associated with the script factor that generates the exception call; adding the API associated with the script factor to an API script corresponding to the exception call record.
结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中,所述方法还包括:In conjunction with the third possible implementation of the first aspect, in a fourth possible implementation, the method further includes:
设置注册到所述调用服务器的API的关联因素;Setting a correlation factor of an API registered to the calling server;
所述查询与所述产生异常调用的脚本因素相关联的API包括:The API associated with the script factor that generates the exception call includes:
在所述注册到所述调用服务器的API中查询关联因素与所述产生异常调用的脚本因素相匹配的API。An API that matches the associated factors with the script factors that generate the exception call is queried in the API registered to the calling server.
结合第一方面至第一方面的第四种可能的实现方式中的任一种可能的实现方式,在第五种可能的实现方式中,所述方法还包括:With reference to the first aspect to any one of the possible implementations of the fourth possible implementation of the first aspect, in a fifth possible implementation, the method further includes:
所述调用服务器接收所述发起方发送的发起信息;The calling server receives the initiation information sent by the initiator;
在根据所述发起信息包括的事件类型和事件内容,确定调用所述API后,将所述发起信息添加到所述API的调用记录中;After determining to invoke the API according to the event type and the event content included in the initiation information, adding the initiation information to the call record of the API;
在调用所述API,并获取被调用方的被调用信息后,将所述被调用信息添加到所述API的调用记录中。After the API is called and the called party's called information is obtained, the called information is added to the call record of the API.
结合第一方面至第一方面的第五种可能的实现方式中的任一种可能的实现方式,在第六种可能的实现方式中,所述发起方包括服务台管理SDM系统、故障管理FM系统、外线人员管理WFM系统中的任一系统;With reference to the first aspect to any one of the possible implementation manners of the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, the initiator includes a service desk management SDM system and a fault management FM The system and outside personnel manage any system in the WFM system;
所述被调用方包括服务台管理SDM系统、故障管理FM系统、外线人员管理WFM系统中的任一系统。The called party includes any one of a service station management SDM system, a fault management FM system, and an outside line personnel management WFM system.
结合第一方面的第六种可能的实现方式,在第七种可能的实现方式中,所述发起方为故障管理FM系统,所述被调用方为服务台管理SDM系 统,所述被调用信息包括工单来源,所述异常标识为“FM手动派单”;With reference to the sixth possible implementation manner of the first aspect, in a seventh possible implementation manner, the initiator is a fault management FM system, and the called party is a service station management SDM system. The called information includes a work order source, and the abnormality identifier is “FM manual dispatch”;
所述调用服务器根据预设的异常标识,从应用程序编程接口API的至少一条调用记录中获取所述API的异常调用记录包括:The calling server acquires the abnormal call record of the API from at least one call record of the application programming interface API according to the preset abnormal identifier:
从所述API的调用记录中获取所有被调用信息的工单来源为“FM手动派单”的调用记录;Obtaining the call record of the work order of all the called information from the call record of the API as "FM manual dispatch";
所述根据所述API的异常调用记录确定产生异常调用的脚本因素包括:The determining the script factors that generate the exception call according to the abnormal call record of the API includes:
在所有被调用信息的工单来源为“FM手动派单”的调用记录中统计所述API的API调用条件,将概率值达到预设阈值的调用条件确定为所述脚本因素;The API call condition of the API is counted in the call record of the work order source of the called information, and the call condition of the probability value reaches the preset threshold is determined as the script factor;
所述根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本包括:The adjusting the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call includes:
利用所述概率值达到预设阈值的调用条件调整所述API对应的API脚本。Adjusting the API script corresponding to the API by using the calling condition that the probability value reaches a preset threshold.
结合第一方面的第六种可能的实现方式,在第八种可能的实现方式中,所述发起方为服务台管理SDM系统,所述被调用方为外线人员管理WFM系统,所述发起信息包括故障处理方式,所述异常标识为“未到站,故障已恢复”;With reference to the sixth possible implementation manner of the first aspect, in an eighth possible implementation manner, the initiator is a service station management SDM system, and the called party manages a WFM system for an outside party, the initiation information Including the fault processing mode, the abnormality identifier is “not arriving at the station, and the fault has been recovered”;
所述调用服务器根据预设的异常标识,从应用程序编程接口API的至少一条调用记录中获取所述API的异常调用记录包括:The calling server acquires the abnormal call record of the API from at least one call record of the application programming interface API according to the preset abnormal identifier:
从所述API的调用记录中获取所有发起信息的故障处理方式为“未到站,故障已恢复”的调用记录;Obtaining, from the call record of the API, the call record of the failure processing mode of all the initiation information is “not arrived, the fault has been recovered”;
所述根据所述API的异常调用记录确定产生异常调用的脚本因素包括:The determining the script factors that generate the exception call according to the abnormal call record of the API includes:
在所有发起信息的故障处理方式为“未到站,故障已恢复”的调用记录中统计所述API的调用参数,将概率值达到预设阈值的调用参数确定为所述脚本因素; The call parameters of the API are counted in the call record of the failure detection mode of the initiating information, which is “not arrived, the fault has been recovered”, and the call parameter whose probability value reaches the preset threshold is determined as the script factor;
所述根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本包括:The adjusting the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call includes:
利用所述概率值达到预设阈值的调用参数调整所述API对应的API脚本。Adjusting the API script corresponding to the API by using the calling parameter whose probability value reaches a preset threshold.
第二方面,提供一种调用服务器,包括:In a second aspect, a call server is provided, including:
获取单元,用于根据预设的异常标识,从应用程序编程接口API的至少一条调用记录中获取所述API的异常调用记录;所述API为被调用方注册到所述调用服务器的任一API,所述调用记录用于记录发起方调用所述API的调用信息;所述API的异常调用记录为包括所述异常标识的所述API的调用记录;An obtaining unit, configured to acquire an abnormal call record of the API from at least one call record of an application programming interface API according to a preset abnormal identifier; the API is any API registered by the callee to the calling server The call record is used to record call information of the API that the initiator invokes; the exception call record of the API is a call record of the API that includes the exception identifier;
统计分析单元,用于根据所述获取单元获取到的所述API的异常调用记录确定产生异常调用的脚本因素;所述产生异常调用的脚本因素包括所述API的调用条件和所述API的调用参数中的至少一种;所述API的调用条件为触发调用所述API的条件因素,所述API的调用参数为调用所述API的传递参数;a statistical analysis unit, configured to determine, according to the abnormal call record of the API acquired by the acquiring unit, a script factor that generates an abnormal call; the script factor that generates the abnormal call includes a calling condition of the API and a call of the API At least one of the parameters; the calling condition of the API is a conditional factor that triggers the calling of the API, and the calling parameter of the API is a transfer parameter that invokes the API;
脚本调整单元,用于根据所述统计分析单元确定的产生异常调用的脚本因素调整所述异常调用记录对应的API脚本。And a script adjusting unit, configured to adjust an API script corresponding to the abnormal call record according to a script factor that is generated by the statistical analysis unit to generate an abnormal call.
在结合第二方面的第一种可能的实现方式中,所述统计分析单元具体用于:In conjunction with the first possible implementation of the second aspect, the statistical analysis unit is specifically configured to:
对所述API的异常调用记录中包括的所述API的调用条件进行统计,确定概率值达到预设阈值的调用条件为所述产生异常调用的脚本因素;The calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is the script factor that generates the abnormal call;
或者,对所述API的异常调用记录中包括的所述API的调用参数进行统计,确定概率值达到预设阈值的调用参数为所述产生异常调用的脚本因素。Or, the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is the script factor that generates the abnormal call.
结合第二方面或者第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述脚本调整单元具体用于:With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the script adjusting unit is specifically configured to:
根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API 脚本中的调用条件和调用参数中的至少一种。Adjusting an API corresponding to the abnormal call record according to the script factor that generates the abnormal call At least one of a call condition and a call parameter in the script.
结合第二方面或者第二方面的第一种可能的实现方式,在第三种可能的实现方式中,所述调用服务器还包括查询单元,用于查询与所述产生异常调用的脚本因素相关联的API;所述脚本调整单元具体用于,将所述与所述脚本因素相关联的API添加到所述异常调用记录对应的API脚本中。With reference to the second aspect, or the first possible implementation manner of the second aspect, in a third possible implementation, the calling server further includes a query unit, configured to query, in association with the script factor that generates the exception call The script adjustment unit is specifically configured to add the API associated with the script factor to an API script corresponding to the exception call record.
结合第二方面的第三种可能的实现方式,在第四种可能的实现方式中,所述调用服务器还包括预设置单元,用于设置注册到所述调用服务器的API的关联因素;With reference to the third possible implementation of the second aspect, in a fourth possible implementation, the calling server further includes a preset unit, configured to set an association factor of an API registered to the calling server;
所述查询单元具体用于,在所述注册到所述调用服务器的API中查询关联因素与所述产生异常调用的脚本因素相匹配的API。The query unit is specifically configured to query, in the API registered to the calling server, an API that matches a correlation factor with a script factor that generates an abnormal call.
结合第二方面至第二方面的第四种可能的实现方式中的任一种可能的实现方式,在第五种可能的实现方式中,还包括:With reference to the possible implementation of the second aspect to the fourth possible implementation of the second aspect, in a fifth possible implementation, the method further includes:
接收单元,用于接收所述发起方发送的发起信息;a receiving unit, configured to receive initiation information sent by the initiator;
记录单元,用于在根据所述发起信息包括的事件类型和事件内容,确定调用所述API后,将所述发起信息添加到所述API的调用记录中;a recording unit, configured to add the initiation information to the call record of the API after determining to invoke the API according to an event type and an event content included in the initiation information;
在调用所述API,并获取被调用方的被调用信息后,将所述被调用信息添加到所述API的调用记录中。After the API is called and the called party's called information is obtained, the called information is added to the call record of the API.
第三方面,提供一种调用系统,包括运行有发起方软件系统的发起方设备,以及运行有被调用软件系统的被调用方设备,所述调用系统还包括:调用服务器,其中,所述调用服务器与分别所述发起方设备和被调用方设备相连;In a third aspect, a calling system is provided, comprising: an initiator device running an initiator software system, and a called party device running the called software system, the calling system further comprising: a calling server, wherein the calling The server is connected to the initiator device and the called party device respectively;
所述调用服务器为第二方面至第二方面的第五种可能的实现方式中的任一种可能的实现方式所述的调用服务器;The calling server is the calling server according to any one of the possible implementation manners of the second aspect to the fifth possible implementation manner of the second aspect;
所述发起方设备的发起方软件系统用于,向所述调用服务器发送发起信息;所述发起信息包括事假类型和事件内容;The initiator software system of the initiator device is configured to send initiation information to the calling server; the initiation information includes a leave type and an event content;
所述被调用方设备的被调用软件系统用于,将所述被调用方设备的API注册到所述调用服务器;根据所述调用服务器调用的API执行相应的 操作。The called software system of the called party device is configured to register an API of the called party device to the calling server; perform corresponding according to an API invoked by the calling server operating.
第四方面,提供一种调用系统,包括多系统装置,所述多系统装置包括发起方软件系统和被调用方软件系统,所述调用系统还包括:调用服务器,其中,所述调用服务器与所述多系统装置相连;In a fourth aspect, a calling system is provided, comprising a multi-system device, the multi-system device comprising an initiator software system and a callee software system, the calling system further comprising: a calling server, wherein the calling server and the server The multi-system devices are connected;
所述调用服务器为第二方面至第二方面的第五种可能的实现方式中的任一种可能的实现方式所述的调用服务器;The calling server is the calling server according to any one of the possible implementation manners of the second aspect to the fifth possible implementation manner of the second aspect;
所述多系统装置中的发起方软件系统,用于向所述调用服务器发送发起信息;所述发起信息包括事假类型和事件内容;An initiator software system in the multi-system device, configured to send initiation information to the calling server; the initiation information includes a leave type and an event content;
所述多系统装置中的被调用方软件系统,用于将所述被调用方软件系统的API注册到所述调用服务器;根据所述调用服务器调用的API执行相应的操作。The called party software system in the multi-system device is configured to register an API of the called party software system to the calling server; and perform a corresponding operation according to the API invoked by the calling server.
采用上述方案,调用服务器根据API的调用记录,统计分析出该API异常调用的规律,并根据该规律调整相应的API脚本,解决异常调用问题,其解决异常调用问题的效率更高,且避免了人工参与,节省了人力资源。Using the above scheme, the calling server statistically analyzes the law of the abnormal call of the API according to the calling record of the API, and adjusts the corresponding API script according to the law to solve the abnormal calling problem, and the efficiency of solving the abnormal calling problem is higher, and avoids Manual participation saves human resources.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为本发明实施例提供的一种系统间调用架构的示意图;FIG. 1 is a schematic diagram of an inter-system call architecture according to an embodiment of the present invention;
图2为本发明实施例提供的一种系统对接的管理方法的流程示意图;2 is a schematic flowchart of a method for managing system interconnection according to an embodiment of the present invention;
图3为本发明实施例提供的一种生成API调用记录的流程示意图;FIG. 3 is a schematic flowchart of generating an API call record according to an embodiment of the present invention;
图4为本发明实施例提供的API的一种调用记录的示意图;4 is a schematic diagram of a call record of an API according to an embodiment of the present invention;
图5a为本发明实施例提供的一种API脚本配置的示意图;FIG. 5 is a schematic diagram of an API script configuration according to an embodiment of the present invention;
图5b为本发明实施例提供的一种API脚本配置调整后的示意图;FIG. 5b is a schematic diagram of an API script configuration adjustment according to an embodiment of the present invention; FIG.
图6a为本发明实施例提供的另一种API脚本配置的示意图;FIG. 6a is a schematic diagram of another API script configuration according to an embodiment of the present invention;
图6b为本发明实施例提供的另一种API脚本配置调整后的示意图; FIG. 6b is a schematic diagram of another API script configuration adjustment according to an embodiment of the present invention;
图7为本发明实施例提供的一种调用服务器的结构示意图;FIG. 7 is a schematic structural diagram of a call server according to an embodiment of the present disclosure;
图8为本发明实施例提供的另一种调用服务器的结构示意图;FIG. 8 is a schematic structural diagram of another calling server according to an embodiment of the present disclosure;
图9为本发明实施例提供的又一种调用服务器的结构示意图;FIG. 9 is a schematic structural diagram of still another calling server according to an embodiment of the present disclosure;
图10为本发明实施例提供的一种调用系统的结构示意图;FIG. 10 is a schematic structural diagram of a calling system according to an embodiment of the present disclosure;
图11为本发明实施例提供的另一种调用系统的结构示意图。FIG. 11 is a schematic structural diagram of another calling system according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明以下实施例均可用于如图1所示的系统间调用架构,该架构包括发起方、被调用方和调用服务器。该调用服务器分别与该发起方和该被调用方相连。该发起方和该被调用方均可以为对外开放API调用服务接口的软件系统,并且同一软件系统既可以作为发起方也可以作为被调用方。作为被调用方的软件系统将开放给外部调用的API(Application Programming Interface,应用程序编程接口)注册到该调用服务器,以便该调用服务器在接收到发起方发送的发起信息时,根据该发起信息调用该被调用方的API,实现系统间的相互调用。The following embodiments of the present invention can be used for the inter-system call architecture as shown in FIG. 1, which includes an initiator, a callee, and a call server. The calling server is connected to the initiator and the called party, respectively. Both the initiator and the callee can be a software system that invokes a service interface for an open API, and the same software system can act as both an initiator and a callee. The software system as the called party registers an API (Application Programming Interface) that is open to the external call to the calling server, so that the calling server, when receiving the initiation information sent by the initiator, is called according to the initiation information. The callee's API implements mutual calls between systems.
需要说明的是,本文所描述的发起方和被调用方均可以理解为软件系统,并且,该发起方和该被调用方可以处于不同的物理硬件上,也可以集成在同一物理硬件上。It should be noted that both the initiator and the callee described herein can be understood as a software system, and the initiator and the callee can be on different physical hardware or integrated on the same physical hardware.
本发明实施例提供一种系统对接的管理方法,如图2所示,该方法包括:The embodiment of the invention provides a method for managing system docking. As shown in FIG. 2, the method includes:
S201、调用服务器根据预设的异常标识,从API的至少一条调用记录中获取该API的异常调用记录。 S201. The calling server acquires an abnormal call record of the API from at least one call record of the API according to the preset abnormal identifier.
其中,该API为被调用方注册到调用服务器的任一API,该调用记录用于记录发起方调用该API的调用信息,该API的异常调用记录为包括该异常标识的该API的调用记录。The API is any API registered by the callee to the calling server, and the call record is used to record the call information of the initiator calling the API, and the abnormal call record of the API is recorded as the call record of the API including the exception identifier.
需要说明的是,本发明实施例是针对一个API进行描述的,但是,本领域的技术人员应该清楚,对于注册到该调用服务器内的其他API,也可以通过本发明实施例提供的系统对接管理方法进行管理,并且该调用服务器可以同时对多个API实施本发明实施例提供的系统对接管理方法。It should be noted that the embodiment of the present invention is described for an API, but it should be clear to those skilled in the art that the system can be managed by the system provided by the embodiment of the present invention for other APIs registered in the calling server. The method is managed, and the calling server can implement the system docking management method provided by the embodiment of the present invention for multiple APIs at the same time.
示例地,发起方或者被调用方为SDM系统,该API的调用记录包括SDM工单,该SDM工单包括告警类型、故障处理方式、工单来源等调用维度,则该异常标识可以是“告警类型=动力环境告警”,也可以是“故障处理方式=未到站,故障已恢复”,也可以是“工单来源=手动派单”。这样,若该API的某一条调用记录中的SDM工单的告警类型为动力环境告警,则该条调用记录即为所述异常调用记录。For example, the initiator or the called party is an SDM system, and the call record of the API includes an SDM work order, and the SDM work order includes an alert type, a fault processing mode, a work order source, and the like, and the abnormal identifier may be an alarm. Type = power environment alarm", or "fault processing mode = no arrival, failure has been restored", or "work order source = manual dispatch". In this way, if the alarm type of the SDM work order in a certain call record of the API is a dynamic environment alarm, the call record is the abnormal call record.
另外,该异常标识可以由用户或者调度服务器预先设置在调度服务器内,也可以预先设置在其他设备中,此时,该调度服务器需要从其他设备中获取该异常标识,本发明对此不作限定。In addition, the abnormality identifier may be preset in the scheduling server by the user or the scheduling server, or may be preset in other devices. In this case, the scheduling server needs to obtain the abnormal identifier from other devices, which is not limited by the present invention.
如图1所示,该系统间调用架构在初始运行时,该被调用方将开放给外部调用的API注册到该调用服务器中,其中,该调用服务器可以为IPaaS(Integration Platform as a Service,集成平台即服务),该调用服务器运行以API脚本为组成形式的APP应用,实现系统之间的对接。As shown in FIG. 1, when the inter-system call architecture is initially run, the callee registers an API that is open to the external call to the call server, where the call server can be an IPaaS (Integration Platform as a Service, integration). Platform as a service), the calling server runs an APP application in the form of an API script to implement docking between systems.
被调用方的API注册到该调用服务器后,系统管理员可以预先配置对应该API的API脚本,该调用服务器执行该API脚本即可调用该API。该API的每一条调用记录即为该调用服务器在一次API调用过程中记录的该API的调用信息。 After the callee's API is registered to the calling server, the system administrator can pre-configure the API script corresponding to the API, and the calling server executes the API script to call the API. Each call record of the API is the call information of the API recorded by the calling server during an API call.
具体地,该API的每一条调用记录包括至少以下调用信息:Specifically, each call record of the API includes at least the following call information:
该API的标识,该API对应的API脚本的标识,以及每次调用该API的事件类型,事件内容。另外,若该API的调用参数不为空,则该API的调用记录还包括该API的调用参数。The identifier of the API, the identifier of the API script corresponding to the API, and the event type, event content of each call to the API. In addition, if the calling parameter of the API is not empty, the calling record of the API further includes the calling parameter of the API.
示例地,该调度服务器在发起方调用被调用方的过程中,生成API的调用记录的流程如图3所示,包括:For example, in the process of the initiator calling the called party, the scheduling server generates a call record of the API as shown in FIG. 3, including:
S2011、调用服务器接收发起方发送的发起信息。S2011: The calling server receives the initiation information sent by the initiator.
S2012、该调用服务器在根据该发起信息包括的事件类型和事件内容,确定调用该API后,将该发起信息添加到该API的调用记录中。S2012. The calling server determines to add the initiation information to the call record of the API after determining to invoke the API according to the event type and event content included in the initiation information.
S2013、该调用服务器在调用该API,并获取被调用方的被调用信息后,将该被调用信息添加到该API的调用记录中。S2013. After the calling server calls the API and obtains the called party's called information, the called information is added to the call record of the API.
需要说明的是,API脚本包括API的触发事件、该API的调用条件、该API的标识,则该调用服务器在确定事件类型与API脚本内的触发事件相符,且事件内容满足该API的调用条件时,调用该API的标识对应的API。It should be noted that the API script includes a trigger event of the API, a calling condition of the API, and an identifier of the API, and the calling server determines that the event type matches the trigger event in the API script, and the event content satisfies the calling condition of the API. When the API corresponding to the identifier of the API is called.
上述调用服务器生成API的调用记录的流程只是一种优选的实现方式,为了更准确地统计分析出该API异常调用的规律,该API的调用记录应尽可能多的包括该API的调用维度,按照上述流程,该API的调用记录同时包括调用该API的发起信息,以及被调用信息,但是,在实际实施中,该API的调用记录可以包括发起信息和被调用信息中的一个。本发明对此不作限定。The above process of invoking the call record of the server generation API is only a preferred implementation manner. In order to more accurately statistically analyze the rules of the API exception call, the call record of the API should include as many call dimensions as the API, according to In the above process, the call record of the API includes both the initiation information of calling the API and the called information, but in actual implementation, the call record of the API may include one of the initiation information and the called information. The invention is not limited thereto.
S202、该调用服务器根据该API的异常调用记录确定产生异常调用的脚本因素,该产生异常调用的脚本因素包括该API的调用条件和该API的调用参数中的至少一种。S202. The calling server determines, according to the abnormal call record of the API, a script factor that generates an abnormal call, and the script factor that generates the abnormal call includes at least one of a calling condition of the API and a calling parameter of the API.
其中,该API的调用条件为触发调用该API的条件因素,该API的调用参数为调用该API的传递参数。 The calling condition of the API is a conditional factor that triggers the calling of the API, and the calling parameter of the API is a delivery parameter that invokes the API.
具体地,该调用服务器对该API的异常调用记录中包括的该API的调用条件进行统计,确定概率值达到预设阈值的调用条件为该产生异常调用的脚本因素;或者,该调用服务器对该API的异常调用记录中包括的该API的调用参数进行统计,确定概率值达到预设阈值的调用参数为该产生异常调用的脚本因素。Specifically, the calling server performs statistics on the calling condition of the API included in the abnormal call record of the API, and determines that the calling condition that the probability value reaches the preset threshold is a script factor that generates the abnormal call; or, the calling server The call parameters of the API included in the exception call record of the API are counted, and the call parameter whose probability value reaches the preset threshold is determined as the script factor for generating the exception call.
以发起方为FM系统、被调用方为SDM系统举例说明,如图4所示,API的调用记录包括:FM告警信息(即该发起信息),SDM工单信息(即该被调用信息),以及该API固有信息。由图4,API的调用记录包括多个调用信息,则该异常标识可以为该FM告警信息或者该SDM工单信息或者API调用信息该中的任一调用信息。As an example, the initiator is the FM system and the called party is the SDM system. As shown in FIG. 4, the API call record includes: FM alarm information (ie, the initiation information), and SDM work order information (that is, the called information). And the inherent information of the API. As shown in FIG. 4, the call record of the API includes a plurality of call information, and the abnormality identifier may be any one of the FM alarm information or the SDM work order information or the API call information.
若该异常标识为“FM手动派单”,则该步骤S201具体为:调用服务器从该API的至少一条调用记录中获取所有SDM工单的工单来源为“FM手动派单”的调用记录。If the abnormality is identified as “FM manual dispatch”, the step S201 is specifically: the calling server acquires the call record of the “FM manual dispatch” from the at least one call record of the API.
进一步地,步骤S202可以为:该调用服务器对SDM工单的工单来源为“FM手动派单”的调用记录中的调用条件进行统计,确定概率值达到预设阈值的调用条件为该产生异常调用的脚本因素,例如,该阈值预先设置为80%,调用条件“告警类型=动力环境告警”的概率为85%,则可确定该调用条件“告警类型=动力环境告警”即为产生异常调用的脚本因素。Further, the step S202 may be: the calling server performs statistics on the calling condition in the call record of the work order of the SDM work order that is “FM manual dispatch”, and determines that the calling condition that the probability value reaches the preset threshold is the abnormality. The calling script factor, for example, the threshold is preset to 80%, and the probability of calling the condition “alarm type=power environment alarm” is 85%, then the calling condition “alarm type=power environment alarm” can be determined to generate an abnormal call. Script factor.
S203、该调用服务器根据该产生异常调用的脚本因素调整该异常调用记录对应的API脚本。S203. The calling server adjusts an API script corresponding to the abnormal call record according to the script factor that generates the abnormal call.
具体地,对于API脚本的调整包括以下两种方式:Specifically, the adjustments to the API script include the following two methods:
方式一、该调用服务器根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本中的调用条件和调用参数中的至少一种。Manner 1: The calling server adjusts at least one of a calling condition and a calling parameter in an API script corresponding to the abnormal calling record according to the script factor that generates the abnormal call.
示例地,根据步骤S202中的举例说明,若调用服务器确定调用条件“告警类型=动力环境告警”为产生异常调用的脚本因素,则该 调用服务器将动力环境告警增加到该API对应的API脚本内的该API的调用条件中。For example, according to the example in step S202, if the calling server determines that the calling condition "alarm type=power environment alarm" is a script factor that generates an abnormal call, then The calling server adds the power environment alarm to the calling condition of the API in the API script corresponding to the API.
以图5a和图5b举例说明对API脚本的调整,其中,图5a为调整前的API脚本的配置,图5b为调整后的API脚本的配置。The adjustment of the API script is illustrated by using FIG. 5a and FIG. 5b. FIG. 5a is a configuration of an API script before adjustment, and FIG. 5b is a configuration of an adjusted API script.
由图5a,当发起方FM找到根因告警,且该根因告警的告警级别为紧急时,调用标识为创建SDM工单的API,其中,调用该API的调用参数可以为空。由图5b,当发起方FM找到根因告警,且该根因告警的告警级别为紧急或者告警类型为动力环境告警时,调用标识为创建SDM工单的API。这样,该发起方FM下一次向该调用服务器发送的发起信息中的告警类型为动力环境告警时,该调用服务器自动调用该API,使得该SDM创建SDN工单,完成对SDM的调用,无需由人工进行手动派单,解决了“FM手动派单”的异常调用问题。As shown in FIG. 5a, when the initiator FM finds the root cause alarm and the alarm level of the root cause alarm is urgent, the API that identifies the creation of the SDM work order is invoked, and the call parameter for calling the API may be empty. As shown in FIG. 5b, when the initiator FM finds the root cause alarm, and the root cause alarm is an emergency or the alarm type is a power environment alarm, the API that identifies the creation of the SDM work order is called. In this way, when the type of the alarm in the originating information sent by the initiator FM to the calling server is the power environment alarm, the calling server automatically invokes the API, so that the SDM creates an SDN work order and completes the call to the SDM without The manual dispatch is manually performed, which solves the problem of abnormal call of "FM manual dispatch".
另一个例子,若该发起方为SDM,该被调用方为WFM,该异常标识为“未到站,故障已恢复”,则该调用服务器从该API的调用记录中获取发起信息的故障处理方式为“未到站,故障已恢复”的调用记录(即该异常调用记录),并对该异常调用记录中的API的调用参数进行统计,若调用参数中的延时时长小于30分钟的概率达到预设阈值(例如80%),则增大该API的调用参数中的延时时长。In another example, if the initiator is SDM, the callee is WFM, and the exception identifier is “not arriving, the fault has been recovered”, the calling server obtains the fault handling manner of the initiation information from the call record of the API. The call record of “not arriving at the station, the fault has been recovered” (that is, the exception call record), and the call parameters of the API in the exception call record are counted, and the probability that the delay time in the call parameter is less than 30 minutes is reached. The preset threshold (for example, 80%) increases the delay time in the calling parameters of the API.
以图6a和图6b举例说明对API脚本的调整,其中,图6a为调整前的API脚本的配置,图6b为调整后的API脚本的配置。The adjustment of the API script is illustrated by FIG. 6a and FIG. 6b. FIG. 6a is a configuration of an API script before adjustment, and FIG. 6b is a configuration of an adjusted API script.
由图6a,调用标识为注册延时创建WFM工单任务的API的延时时长为20分钟,导致可能线外人员未到故障现场,故障就已经恢复。由图5b,调用标识为注册延时创建WFM工单任务的API的延时时长增加为30分钟,减少了产生“未到站,故障已恢复”的异常工单。From Figure 6a, the delay time for calling the API that creates the WFM work order task for the registration delay is 20 minutes, which may cause the off-line personnel not to go to the fault site, and the fault has been restored. From Figure 5b, the delay time for calling the API that creates the WFM work order task for the registration delay is increased to 30 minutes, which reduces the abnormal work order that generates "not arriving, the fault has been recovered".
方式二、该调用服务器查询与该产生异常调用的脚本因素相关 联的API,将该与该脚本因素相关联的API添加到该异常调用记录对应的API脚本中。Method 2, the calling server query is related to the script factor that generates the exception call The associated API adds the API associated with the script factor to the API script corresponding to the exception call record.
具体地,调用服务器设置注册到该调用服务器的API的关联因素,则该调用服务器查询与该产生异常调用的脚本因素相关联的API包括:在所述注册到该调用服务器的API中查询关联因素与该产生异常调用的脚本因素相匹配的API。Specifically, the calling server sets an association factor of the API registered to the calling server, and the calling server queries the API associated with the script element that generates the abnormal call, including: querying the related factor in the API registered to the calling server The API that matches the scripting factor that generated the exception call.
需要说明的是,上述方式一是对已经添加到API脚本的API进行调整,对于新注册到调用服务器的API,可以通过方式二将新注册的API添加的API脚本。It should be noted that the first method described above is to adjust the API that has been added to the API script. For the API that is newly registered to the calling server, the API script that can be added to the newly registered API can be added in the second way.
示例地,每个API注册到IPaaS时,管理员可设定其关联因素,该关联因素可以根据该API的属性设置一个或多个,例如,对于“注册延时创建WFM工单任务”的API,由于该API属于外线延时派单,因此可设置该API的派单延时时长,例如该API是创建SDM工单,设定其关联因素为动力环境告警,这样,当调用服务器确定产生异常的脚本因素后,从新注册的API中查询到关联因素与该产生异常的脚本因素相匹配的API,并将该API添加到API脚本中。For example, when each API is registered to IPaaS, the administrator can set its associated factors, which can be set according to the attributes of the API, for example, an API for "registration delay to create a WFM work order task". Since the API belongs to the external delay dispatching list, the delay time of the dispatching of the API can be set. For example, the API is to create an SDM work order, and the related factor is set as a dynamic environment alarm, so that when the calling server determines that an abnormality is generated, After the script factor, the API that matches the related factors to the script factor that generated the exception is queried from the newly registered API, and the API is added to the API script.
其中,关联因素与产生异常的脚本因素匹配,可以是关联因素与产生异常的脚本因素一致。在同一API存在多个关联因素时,也可以对新注册的API进行相关性排序,并将相关性最高的API添加到API脚本中,其中,一个API存在与多个产生异常的脚本因素一致的关联因素越多,该API的相关性越高。The correlation factor is matched with the script factor that generates the abnormality, and the correlation factor may be consistent with the script factor that generates the abnormality. When there are multiple related factors in the same API, the newly registered APIs can be sorted by relevance, and the most relevant APIs are added to the API scripts, wherein one API exists consistent with multiple script factors that generate exceptions. The more relevant the factors, the higher the relevance of the API.
需要说明的是,上述仅以SDM系统、FM系统、WFM系统之间存在的系统间调用进行举例说明,但是本领域的技术人员应该理解到,本发明实施例提供的系统对接管理方法,对于存在多系统之间相互调用的场景均适用,本发明对此不做限定。It should be noted that the above description is only given by the inter-system call existing between the SDM system, the FM system, and the WFM system, but those skilled in the art should understand that the system docking management method provided by the embodiment of the present invention exists for The scenarios in which multiple systems are called from each other are applicable, and the present invention does not limit this.
在本发明实施例的一种可能的实现方式中,上述根据对API的调整均可由管理员进行,具体地,调用服务器将异常标识和产生异 常的脚本因素作为调整建议通知管理员,以便管理员调整相应的API脚本。In a possible implementation manner of the embodiment of the present invention, the foregoing adjustment according to the API may be performed by an administrator, and specifically, the calling server will identify and generate an abnormality. The usual script factor informs the administrator as an adjustment suggestion so that the administrator can adjust the corresponding API script.
另外,本发明实施例还可以按照一定周期(如每天或者每月等等)执行上述步骤S201至步骤S203,自动解决系统间的异常调用问题,本发明实施例不做限定。In addition, the embodiment of the present invention may further perform the foregoing steps S201 to S203 according to a certain period (such as daily or monthly, etc.), and automatically solve the problem of abnormal calling between systems, which is not limited in the embodiment of the present invention.
采用上述方法,根据API的调用记录,统计分析出该API异常调用的规律,并根据该规律调整相应的API脚本,解决异常调用问题,其解决异常调用问题的效率更高,且避免了人工参与,节省了人力资源。According to the above method, according to the call record of the API, the law of the abnormal call of the API is statistically analyzed, and the corresponding API script is adjusted according to the rule to solve the abnormal call problem, which is more efficient in solving the abnormal call problem and avoids manual participation. , saving human resources.
本发明实施例提供一种调用服务器70,对应上述图2的方法实施例,该调用服务器70的各个功能单元均可用于上述方法步骤,如图7所示,该调用服务器70包括:The embodiment of the present invention provides a call server 70, which corresponds to the method embodiment of FIG. 2, and each functional unit of the call server 70 can be used in the foregoing method steps. As shown in FIG. 7, the call server 70 includes:
获取单元71,用于根据预设的异常标识,从应用程序编程接口API的至少一条调用记录中获取异常调用记录。The obtaining unit 71 is configured to obtain an abnormal call record from at least one call record of the application programming interface API according to the preset abnormality identifier.
其中,所述API为被调用方注册到所述调用服务器的任一API,所述调用记录用于记录发起方调用所述API的调用信息;所述API的异常调用记录为包括所述异常标识的所述API的调用记录。The API is any API that is registered by the callee to the calling server, and the call record is used to record call information of the API that the initiator invokes; the abnormal call record of the API is to include the abnormal identifier. The call record of the API.
统计分析单元72,用于根据该获取单元71获取到的该API的异常调用记录确定产生异常调用的脚本因素。The statistical analysis unit 72 is configured to determine, according to the abnormal call record of the API acquired by the obtaining unit 71, a script factor that generates an abnormal call.
其中,该产生异常调用的脚本因素包括该API的调用条件和该API的调用参数中的至少一种;该API的调用条件为触发调用该API的条件因素,该API的调用参数为调用该API的传递参数。The script factor for generating the exception call includes at least one of a calling condition of the API and a calling parameter of the API; the calling condition of the API is a conditional element triggering the calling of the API, and the calling parameter of the API is calling the API. Passing parameters.
脚本调整单元73,用于根据该统计分析单元确定的产生异常调用的脚本因素调整该异常调用记录对应的API脚本。The script adjusting unit 73 is configured to adjust an API script corresponding to the abnormal call record according to a script factor that is generated by the statistical analysis unit to generate an abnormal call.
具体地,被调用方的API注册到该调用服务器后,系统管理员可以预先配置对应该API的API脚本,该调用服务器执行该API脚 本即可调用该API。该API的每一条调用记录即为该调用服务器在一次API调用过程中记录的该API的调用信息。Specifically, after the called party's API is registered to the calling server, the system administrator can pre-configure an API script corresponding to the API, and the calling server executes the API foot. This can call this API. Each call record of the API is the call information of the API recorded by the calling server during an API call.
其中,该API的每一条调用记录包括至少以下调用信息:Wherein, each call record of the API includes at least the following call information:
该API的标识,该API对应的API脚本的标识,以及每次调用该API的事件类型,事件内容。另外,若该API的调用参数不为空,则该API的调用记录还包括该API的调用参数。The identifier of the API, the identifier of the API script corresponding to the API, and the event type, event content of each call to the API. In addition, if the calling parameter of the API is not empty, the calling record of the API further includes the calling parameter of the API.
可选地,如图8所示,可选地,该调用服务器还包括:接收单元74,用于接收该发起方发送的发起信息;记录单元75,用于在根据该发起信息包括的事件类型和事件内容,确定调用该API后,将该发起信息添加到该API的调用记录中;在调用该API,并获取被调用方的被调用信息后,将该被调用信息添加到该API的调用记录中。Optionally, as shown in FIG. 8 , the calling server further includes: a receiving unit 74, configured to receive the initiation information sent by the initiator, and a recording unit 75, configured to use the event type included according to the initiation information. And the content of the event, after determining that the API is invoked, adding the initiation information to the call record of the API; after calling the API and obtaining the called information of the called party, adding the called information to the call of the API Recorded.
需要说明的是,为了统计分析出该API异常调用的规律,该API的调用记录应尽可能多的包括该API的调用维度,上述记录单元75同时记录了调用该API的发起信息,以及被调用信息,但是,在实际实施中,该API的调用记录可以包括发起信息和被调用信息中的一个。本发明对此不作限定。It should be noted that, in order to statistically analyze the rule of the API abnormal call, the calling record of the API should include as many call dimensions as the API, and the recording unit 75 simultaneously records the initiation information of the calling API and is called. Information, however, in actual implementation, the call record of the API may include one of the originating information and the called information. The invention is not limited thereto.
可选地,该统计分析单元72具体用于:Optionally, the statistical analysis unit 72 is specifically configured to:
对该API的异常调用记录中包括的该API的调用条件进行统计,确定概率值达到预设阈值的调用条件为该产生异常调用的脚本因素;The calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is a script factor for generating the abnormal call;
或者,对该API的异常调用记录中包括的该API的调用参数进行统计,确定概率值达到预设阈值的调用参数为该产生异常调用的脚本因素。Or, the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is a script factor that causes the abnormal call.
以发起方为FM系统、被调用方为SDM系统举例说明,如图4所示,API的调用记录包括:FM告警信息(即该发起信息),SDM工单信息(即该被调用信息),以及该API固有信息。由图4,API 的调用记录包括多个调用信息,则该异常标识可以为该FM告警信息或者该SDM工单信息或者API调用信息该中的任一调用信息。As an example, the initiator is the FM system and the called party is the SDM system. As shown in FIG. 4, the API call record includes: FM alarm information (ie, the initiation information), and SDM work order information (that is, the called information). And the inherent information of the API. Figure 4, API The call record includes a plurality of call information, and the exception identifier may be any one of the FM alarm information or the SDM work order information or the API call information.
若该异常标识为“FM手动派单”,则该获取单元71具体用于:从该API的至少一条调用记录中获取所有SDM工单的工单来源为“FM手动派单”的调用记录;该统计分析单元72具体用于:对SDM工单的工单来源为“FM手动派单”的调用记录中的调用条件进行统计,确定概率值达到预设阈值的调用条件为该产生异常调用的脚本因素,例如,该阈值预先设置为80%,调用条件“告警类型=动力环境告警”的概率为85%,则可确定该调用条件“告警类型=动力环境告警”即为产生异常调用的脚本因素。If the exception is identified as "FM manual dispatch", the obtaining unit 71 is specifically configured to: obtain, from the at least one call record of the API, the call record of the work order source of all the SDM work orders as "FM manual dispatch"; The statistical analysis unit 72 is specifically configured to: perform statistics on the calling conditions in the call record of the work order of the SDM work order that is “FM manual dispatch”, and determine that the calling condition that the probability value reaches the preset threshold is the abnormal call. The script factor, for example, the threshold is preset to 80%, and the probability of calling the condition "alarm type=power environment alarm" is 85%, then the calling condition "alarm type=power environment alarm" is determined to be a script for generating an abnormal call. factor.
在本发明实施例的一种可能的实现方式中,该脚本调整单元73具体用于:根据该产生异常调用的脚本因素调整该异常调用记录对应的API脚本中的调用条件和调用参数中的至少一种。In a possible implementation manner of the embodiment of the present invention, the script adjusting unit 73 is specifically configured to: adjust at least one of a calling condition and a calling parameter in an API script corresponding to the abnormal calling record according to the script factor that generates the abnormal calling One.
示例地,若该统计分析单元72确定调用条件“告警类型=动力环境告警”为产生异常调用的脚本因素,则该脚本调整单元73将动力环境告警增加到该API对应的API脚本内的该API的调用条件中。For example, if the statistical analysis unit 72 determines that the calling condition "alarm type=power environment alarm" is a script factor that generates an abnormal call, the script adjusting unit 73 adds the power environment alarm to the API in the API script corresponding to the API. In the call condition.
以图5a和图5b举例说明对API脚本的调整,其中,图5a为调整前的API脚本的配置,图5b为调整后的API脚本的配置。具体参照方法实施例中的对应描述,此处不再赘述。The adjustment of the API script is illustrated by using FIG. 5a and FIG. 5b. FIG. 5a is a configuration of an API script before adjustment, and FIG. 5b is a configuration of an adjusted API script. For details, refer to the corresponding description in the method embodiments, and details are not described herein again.
另一个例子,若该发起方为SDM,该被调用方为WFM,该异常标识为“未到站,故障已恢复”,则该调用服务器从该API的调用记录中获取发起信息的故障处理方式为“未到站,故障已恢复”的调用记录(即该异常调用记录),并对该异常调用记录中的API的调用参数进行统计,若调用参数中的延时时长小于30分钟的概率达到预设阈值(例如80%),则增大该API的调用参数中的延时时长。In another example, if the initiator is SDM, the callee is WFM, and the exception identifier is “not arriving, the fault has been recovered”, the calling server obtains the fault handling manner of the initiation information from the call record of the API. The call record of “not arriving at the station, the fault has been recovered” (that is, the exception call record), and the call parameters of the API in the exception call record are counted, and the probability that the delay time in the call parameter is less than 30 minutes is reached. The preset threshold (for example, 80%) increases the delay time in the calling parameters of the API.
以图6a和图6b举例说明对API脚本的调整,其中,图6a为调整前的API脚本的配置,图6b为调整后的API脚本的配置。具体参 照方法实施例中的对应描述,此处不再赘述。The adjustment of the API script is illustrated by FIG. 6a and FIG. 6b. FIG. 6a is a configuration of an API script before adjustment, and FIG. 6b is a configuration of an adjusted API script. Specific reference Corresponding descriptions in the method embodiments are not described herein again.
在本发明实施例的另一种可能的实现方式中,如图8所示,该调用服务器还包括查询单元76,用于查询与该产生异常调用的脚本因素相关联的API;该脚本调整单元73具体用于,将该与该脚本因素相关联的API添加到该异常调用记录对应的API脚本中。In another possible implementation manner of the embodiment of the present invention, as shown in FIG. 8, the calling server further includes a query unit 76, configured to query an API associated with the script factor that generates the abnormal call; the script adjusting unit 73 is specifically configured to add the API associated with the script factor to an API script corresponding to the exception call record.
可选地,该调用服务器还包括预设置单元77,用于设置注册到该调用服务器的API的关联因素;这样,该查询单元76具体用于,在该注册到该调用服务器的API中查询关联因素与该产生异常调用的脚本因素相匹配的API。Optionally, the calling server further includes a pre-setting unit 77, configured to set an association factor of an API registered to the calling server; thus, the query unit 76 is specifically configured to query the association in the API registered to the calling server. The factor is the API that matches the scripting factor that generated the exception call.
示例地,每个API注册到IPaaS时,管理员可设定其关联因素,该关联因素可以根据该API的属性设置一个或多个,例如,对于“注册延时创建WFM工单任务”的API,由于该API属于外线延时派单,因此可设置该API的派单延时时长,例如该API是创建SDM工单,设定其关联因素为动力环境告警,这样,当调用服务器确定产生异常的脚本因素后,从新注册的API中查询到关联因素与该产生异常的脚本因素相匹配的API,并将该API添加到API脚本中。For example, when each API is registered to IPaaS, the administrator can set its associated factors, which can be set according to the attributes of the API, for example, an API for "registration delay to create a WFM work order task". Since the API belongs to the external delay dispatching list, the delay time of the dispatching of the API can be set. For example, the API is to create an SDM work order, and the related factor is set as a dynamic environment alarm, so that when the calling server determines that an abnormality is generated, After the script factor, the API that matches the related factors to the script factor that generated the exception is queried from the newly registered API, and the API is added to the API script.
其中,关联因素与产生异常的脚本因素匹配,可以是关联因素与产生异常的脚本因素一致。在同一API存在多个关联因素时,也可以对新注册的API进行相关性排序,并将相关性最高的API添加到API脚本中,其中,一个API存在与多个产生异常的脚本因素一致的关联因素越多,该API的相关性越高。The correlation factor is matched with the script factor that generates the abnormality, and the correlation factor may be consistent with the script factor that generates the abnormality. When there are multiple related factors in the same API, the newly registered APIs can be sorted by relevance, and the most relevant APIs are added to the API scripts, wherein one API exists consistent with multiple script factors that generate exceptions. The more relevant the factors, the higher the relevance of the API.
采用上述调用服务器,该调用服务器根据API的调用记录,统计分析出该API异常调用的规律,并根据该规律调整相应的API脚本,解决异常调用问题,其解决异常调用问题的效率更高,且避免了人工参与,节省了人力资源。The above calling server is used, and the calling server statistically analyzes the law of the API abnormal call according to the calling record of the API, and adjusts the corresponding API script according to the law to solve the abnormal calling problem, and the efficiency of solving the abnormal calling problem is higher, and Avoid manual participation and save human resources.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据 需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be clearly understood by those skilled in the art that for the convenience and brevity of the description, only the division of the above functional modules is illustrated. In practical applications, The above functions are allocated by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the foregoing unit, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
本发明实施例提供一种调用服务器90,如图9所示,包括:An embodiment of the present invention provides a call server 90, as shown in FIG. 9, including:
处理器(processor)91、通信接口(Communications Interface)92、存储器(memory)93和通信总线94;其中,所述处理器91、所述通信接口92和所述存储器93通过所述通信总线94完成相互间的通信。a processor 91, a communications interface 92, a memory 93, and a communication bus 94; wherein the processor 91, the communication interface 92, and the memory 93 are completed by the communication bus 94 Communication with each other.
处理器91可能是一个多核中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 91 may be a multi-core central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
存储器93用于存放程序代码,所述程序代码包括计算机操作指令和网络流图。存储器93可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 93 is for storing program code, and the program code includes computer operation instructions and a network flow diagram. The memory 93 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
所述通信接口92,用于实现这些装置之间的连接通信。The communication interface 92 is used to implement connection communication between these devices.
所述处理器91用于执行所述存储器93中的程序代码,以实现以下操作:The processor 91 is configured to execute program code in the memory 93 to implement the following operations:
调用服务器根据预设的异常标识,从应用程序编程接口API的至少一条调用记录中获取所述API的异常调用记录,所述API为被调用方注册到所述调用服务器的任一API,所述调用记录用于记录发起方调用所述API的调用信息,所述API的异常调用记录为包括所述异常标识的所述API的调用记录;The calling server acquires an abnormal call record of the API from at least one call record of the application programming interface API according to a preset abnormal identifier, where the API is registered by the callee to any API of the calling server, The call record is used to record the call information of the API that the initiator invokes, and the exception call record of the API is the call record of the API including the exception identifier;
根据所述API的异常调用记录确定产生异常调用的脚本因素,所述产生异常调用的脚本因素包括所述API的调用条件和所述API 的调用参数中的至少一种;所述API的调用条件为触发调用所述API的条件因素,所述API的调用参数为调用所述API的传递参数;Determining, by the exception call record of the API, a script factor that generates an exception call, the script factor that generates the exception call includes a call condition of the API and the API At least one of the calling parameters; the calling condition of the API is a conditional factor that triggers the calling of the API, and the calling parameter of the API is a transfer parameter that invokes the API;
根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本。Adjusting the API script corresponding to the exception call record according to the script factor that generates the exception call.
可选地,所述根据所述API的异常调用记录确定产生异常调用的脚本因素包括:Optionally, the determining, according to the abnormal call record of the API, determining a script factor that generates an abnormal call includes:
对所述API的异常调用记录中包括的所述API的调用条件进行统计,确定概率值达到预设阈值的调用条件为所述产生异常调用的脚本因素;The calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is the script factor that generates the abnormal call;
或者,对所述API的异常调用记录中包括的所述API的调用参数进行统计,确定概率值达到预设阈值的调用参数为所述产生异常调用的脚本因素。Or, the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is the script factor that generates the abnormal call.
可选地,所述根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本包括:Optionally, the adjusting the API script corresponding to the exception call record according to the script factor that generates the exception call includes:
根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本中的调用条件和调用参数中的至少一种。And adjusting at least one of a calling condition and a calling parameter in the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call.
可选地,所述根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本包括:Optionally, the adjusting the API script corresponding to the exception call record according to the script factor that generates the exception call includes:
查询与所述产生异常调用的脚本因素相关联的API;将所述与所述脚本因素相关联的API添加到所述异常调用记录对应的API脚本中。Querying an API associated with the script factor that generates the exception call; adding the API associated with the script factor to an API script corresponding to the exception call record.
可选地,所述操作还包括:Optionally, the operations further include:
设置注册到所述调用服务器的API的关联因素;Setting a correlation factor of an API registered to the calling server;
所述查询与所述产生异常调用的脚本因素相关联的API包括:The API associated with the script factor that generates the exception call includes:
在所述注册到所述调用服务器的API中查询关联因素与所述产生异常调用的脚本因素相匹配的API。An API that matches the associated factors with the script factors that generate the exception call is queried in the API registered to the calling server.
可选地,所述操作还包括: Optionally, the operations further include:
所述调用服务器接收所述发起方发送的发起信息;The calling server receives the initiation information sent by the initiator;
在根据所述发起信息包括的事件类型和事件内容,确定调用所述API后,将所述发起信息添加到所述API的调用记录中;After determining to invoke the API according to the event type and the event content included in the initiation information, adding the initiation information to the call record of the API;
在调用所述API,并获取被调用方的被调用信息后,将所述被调用信息添加到所述API的调用记录中。After the API is called and the called party's called information is obtained, the called information is added to the call record of the API.
可选地,所述发起方包括服务台管理SDM系统、故障管理FM系统、外线人员管理WFM系统中的任一系统;Optionally, the initiator includes any one of a service station management SDM system, a fault management FM system, and an outside line personnel management WFM system;
所述被调用方包括服务台管理SDM系统、故障管理FM系统、外线人员管理WFM系统中的任一系统。The called party includes any one of a service station management SDM system, a fault management FM system, and an outside line personnel management WFM system.
本发明实施例提供一种调用系统,如图10所示,该调用系统包括:An embodiment of the present invention provides a calling system. As shown in FIG. 10, the calling system includes:
运行有发起方软件系统的发起方设备101,以及运行有被调用软件系统的被调用方设备102,还包括:调用服务器103,其中,该调用服务器103与分别该发起方设备101和被调用方设备相连102。The initiator device 101 running the initiator software system, and the called party device 102 running the called software system, further includes: an invoking server 103, wherein the invoking server 103 and the initiating device 101 and the called party respectively The device is connected 102.
该发起方设备101的发起方软件系统用于,向该调用服务器发送发起信息;该发起信息包括事假类型和事件内容。The initiator software system of the initiator device 101 is configured to send initiation information to the calling server; the initiation information includes a leave type and an event content.
该被调用方设备102的被调用软件系统用于,将该被调用方设备的API注册到该调用服务器;根据该调用服务器调用的API执行相应的操作。The called software system of the called party device 102 is configured to register the API of the called party device to the calling server; perform corresponding operations according to the API invoked by the calling server.
该调用服务器103为图7所示的调用服务器70,或者,图8所示的调用服务器80,或者,图9所示的调用服务器90,具体可参照上述实施例中对应图7,图8或者图9的描述,此处不再赘述。The call server 103 is the call server 70 shown in FIG. 7, or the call server 80 shown in FIG. 8, or the call server 90 shown in FIG. 9. For example, refer to FIG. 7 or FIG. 8 in the above embodiment. The description of Figure 9 will not be repeated here.
采用上述系统,该系统内的调用服务器根据API的调用记录,统计分析出该API异常调用的规律,并根据该规律调整相应的API脚本,解决软件系统间异常调用问题,其解决异常调用问题的效率更高,且避免了人工参与,节省了人力资源。 According to the above system, the calling server in the system statistically analyzes the law of the abnormal call of the API according to the calling record of the API, and adjusts the corresponding API script according to the law to solve the abnormal calling problem between the software systems, and solves the abnormal calling problem. More efficient, and avoiding human involvement, saving human resources.
本发明实施例提供一种调用系统,如图11所示,该调用系统包括:多系统装置111,该多系统装置包括发起方软件系统和被调用方软件系统,该调用系统还包括:调用服务器112,其中,该调用服务器112与该多系统装置111相连。An embodiment of the present invention provides a calling system. As shown in FIG. 11, the calling system includes: a multi-system device 111. The multi-system device includes an initiator software system and a callee software system, and the calling system further includes: calling the server. 112, wherein the calling server 112 is connected to the multi-system device 111.
该多系统装置111中的发起方软件系统,用于向该调用服务器发送发起信息;该发起信息包括事假类型和事件内容。The initiator software system in the multi-system device 111 is configured to send initiation information to the calling server; the initiation information includes a leave type and an event content.
该多系统装置111中的被调用方软件系统,用于将该被调用方软件系统的API注册到该调用服务器;根据该调用服务器调用的API执行相应的操作。The called party software system in the multi-system device 111 is configured to register the API of the called party software system to the calling server; and perform corresponding operations according to the API invoked by the calling server.
该调用服务器103为图7所示的调用服务器70,或者,图8所示的调用服务器80,或者,图9所示的调用服务器90,具体可参照上述实施例中对应图7,图8或者图9的描述,此处不再赘述。The call server 103 is the call server 70 shown in FIG. 7, or the call server 80 shown in FIG. 8, or the call server 90 shown in FIG. 9. For example, refer to FIG. 7 or FIG. 8 in the above embodiment. The description of Figure 9 will not be repeated here.
采用上述系统,该系统内的调用服务器根据API的调用记录,统计分析出该API异常调用的规律,并根据该规律调整相应的API脚本,解决软件系统间异常调用问题,其解决异常调用问题的效率更高,且避免了人工参与,节省了人力资源。According to the above system, the calling server in the system statistically analyzes the law of the abnormal call of the API according to the calling record of the API, and adjusts the corresponding API script according to the law to solve the abnormal calling problem between the software systems, and solves the abnormal calling problem. More efficient, and avoiding human involvement, saving human resources.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可 以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit. To be located in one place, or distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (21)

  1. 一种系统对接的管理方法,其特征在于,包括:A method for managing system docking, comprising:
    调用服务器根据预设的异常标识,从应用程序编程接口API的至少一条调用记录中获取所述API的异常调用记录,所述API为被调用方注册到所述调用服务器的任一API,所述调用记录用于记录发起方调用所述API的调用信息,所述API的异常调用记录为包括所述异常标识的所述API的调用记录;The calling server acquires an abnormal call record of the API from at least one call record of the application programming interface API according to a preset abnormal identifier, where the API is registered by the callee to any API of the calling server, The call record is used to record the call information of the API that the initiator invokes, and the exception call record of the API is the call record of the API including the exception identifier;
    根据所述API的异常调用记录确定产生异常调用的脚本因素,所述产生异常调用的脚本因素包括所述API的调用条件和所述API的调用参数中的至少一种;所述API的调用条件为触发调用所述API的条件因素,所述API的调用参数为调用所述API的传递参数;Determining, according to the abnormal call record of the API, a script factor that generates an exception call, the script factor that generates the exception call includes at least one of a call condition of the API and a call parameter of the API; a calling condition of the API In order to trigger a conditional factor for invoking the API, the calling parameter of the API is a transfer parameter that invokes the API;
    根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本。Adjusting the API script corresponding to the exception call record according to the script factor that generates the exception call.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述API的异常调用记录确定产生异常调用的脚本因素包括:The method according to claim 1, wherein said determining a script factor for generating an exception call according to an abnormal call record of said API comprises:
    对所述API的异常调用记录中包括的所述API的调用条件进行统计,确定概率值达到预设阈值的调用条件为所述产生异常调用的脚本因素;The calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is the script factor that generates the abnormal call;
    或者,对所述API的异常调用记录中包括的所述API的调用参数进行统计,确定概率值达到预设阈值的调用参数为所述产生异常调用的脚本因素。Or, the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is the script factor that generates the abnormal call.
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本包括:The method according to claim 1 or 2, wherein the adjusting the API script corresponding to the abnormal call record according to the script factor for generating the abnormal call comprises:
    根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本中的调用条件和调用参数中的至少一种。And adjusting at least one of a calling condition and a calling parameter in the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call.
  4. 根据权利要求1或2所述的方法,其特征在于,所述根据所 述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本包括:Method according to claim 1 or 2, characterized in that said basis The script factor that generates the exception call adjusts the API script corresponding to the exception call record, including:
    查询与所述产生异常调用的脚本因素相关联的API;将所述与所述脚本因素相关联的API添加到所述异常调用记录对应的API脚本中。Querying an API associated with the script factor that generates the exception call; adding the API associated with the script factor to an API script corresponding to the exception call record.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    设置注册到所述调用服务器的API的关联因素;Setting a correlation factor of an API registered to the calling server;
    所述查询与所述产生异常调用的脚本因素相关联的API包括:The API associated with the script factor that generates the exception call includes:
    在所述注册到所述调用服务器的API中查询关联因素与所述产生异常调用的脚本因素相匹配的API。An API that matches the associated factors with the script factors that generate the exception call is queried in the API registered to the calling server.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, further comprising:
    所述调用服务器接收所述发起方发送的发起信息;The calling server receives the initiation information sent by the initiator;
    在根据所述发起信息包括的事件类型和事件内容,确定调用所述API后,将所述发起信息添加到所述API的调用记录中;After determining to invoke the API according to the event type and the event content included in the initiation information, adding the initiation information to the call record of the API;
    在调用所述API,并获取被调用方的被调用信息后,将所述被调用信息添加到所述API的调用记录中。After the API is called and the called party's called information is obtained, the called information is added to the call record of the API.
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述发起方包括服务台管理SDM系统、故障管理FM系统、外线人员管理WFM系统中的任一系统;The method according to any one of claims 1 to 6, wherein the initiator includes any one of a service station management SDM system, a fault management FM system, and an outside line personnel management WFM system;
    所述被调用方包括服务台管理SDM系统、故障管理FM系统、外线人员管理WFM系统中的任一系统。The called party includes any one of a service station management SDM system, a fault management FM system, and an outside line personnel management WFM system.
  8. 一种调用服务器,其特征在于,包括:A call server, comprising:
    获取单元,用于根据预设的异常标识,从应用程序编程接口API的至少一条调用记录中获取所述API的异常调用记录;所述API为被调用方注册到所述调用服务器的任一API,所述调用记录用于记录发起方调用所述API的调用信息;所述API的异常调用记录为包括所述 异常标识的所述API的调用记录;An obtaining unit, configured to acquire an abnormal call record of the API from at least one call record of an application programming interface API according to a preset abnormal identifier; the API is any API registered by the callee to the calling server The call record is used to record call information of the initiator calling the API; the abnormal call record of the API is included The call record of the API of the exception identifier;
    统计分析单元,用于根据所述获取单元获取到的所述API的异常调用记录确定产生异常调用的脚本因素;所述产生异常调用的脚本因素包括所述API的调用条件和所述API的调用参数中的至少一种;所述API的调用条件为触发调用所述API的条件因素,所述API的调用参数为调用所述API的传递参数;a statistical analysis unit, configured to determine, according to the abnormal call record of the API acquired by the acquiring unit, a script factor that generates an abnormal call; the script factor that generates the abnormal call includes a calling condition of the API and a call of the API At least one of the parameters; the calling condition of the API is a conditional factor that triggers the calling of the API, and the calling parameter of the API is a transfer parameter that invokes the API;
    脚本调整单元,用于根据所述统计分析单元确定的产生异常调用的脚本因素调整所述异常调用记录对应的API脚本。And a script adjusting unit, configured to adjust an API script corresponding to the abnormal call record according to a script factor that is generated by the statistical analysis unit to generate an abnormal call.
  9. 根据权利要求8所述的调用服务器,其特征在于,所述统计分析单元具体用于:The call server according to claim 8, wherein the statistical analysis unit is specifically configured to:
    对所述API的异常调用记录中包括的所述API的调用条件进行统计,确定概率值达到预设阈值的调用条件为所述产生异常调用的脚本因素;The calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is the script factor that generates the abnormal call;
    或者,对所述API的异常调用记录中包括的所述API的调用参数进行统计,确定概率值达到预设阈值的调用参数为所述产生异常调用的脚本因素。Or, the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is the script factor that generates the abnormal call.
  10. 根据权利要求8或9所述的调用服务器,其特征在于,所述脚本调整单元具体用于:The call server according to claim 8 or 9, wherein the script adjustment unit is specifically configured to:
    根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本中的调用条件和调用参数中的至少一种。And adjusting at least one of a calling condition and a calling parameter in the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call.
  11. 根据权利要求8或9所述的调用服务器,其特征在于,所述调用服务器还包括查询单元,用于查询与所述产生异常调用的脚本因素相关联的API;所述脚本调整单元具体用于,将所述与所述脚本因素相关联的API添加到所述异常调用记录对应的API脚本中。The call server according to claim 8 or 9, wherein the call server further comprises a query unit for querying an API associated with the script factor for generating an exception call; the script adjustment unit is specifically configured to And adding the API associated with the script factor to an API script corresponding to the exception call record.
  12. 根据权利要求11所述的调用服务器,其特征在于,所述调用服务器还包括预设置单元,用于设置注册到所述调用服务器的API的关联因素; The call server according to claim 11, wherein the call server further comprises a preset unit configured to set an association factor of an API registered to the call server;
    所述查询单元具体用于,在所述注册到所述调用服务器的API中查询关联因素与所述产生异常调用的脚本因素相匹配的API。The query unit is specifically configured to query, in the API registered to the calling server, an API that matches a correlation factor with a script factor that generates an abnormal call.
  13. 根据权利要求8至12任一项所述的调用服务器,其特征在于,还包括:The call server according to any one of claims 8 to 12, further comprising:
    接收单元,用于接收所述发起方发送的发起信息;a receiving unit, configured to receive initiation information sent by the initiator;
    记录单元,用于在根据所述发起信息包括的事件类型和事件内容,确定调用所述API后,将所述发起信息添加到所述API的调用记录中;a recording unit, configured to add the initiation information to the call record of the API after determining to invoke the API according to an event type and an event content included in the initiation information;
    在调用所述API,并获取被调用方的被调用信息后,将所述被调用信息添加到所述API的调用记录中。After the API is called and the called party's called information is obtained, the called information is added to the call record of the API.
  14. 一种调用服务器,其特征在于,包括:处理器和存储器;A call server, comprising: a processor and a memory;
    存储器存放程序代码,用于所述处理器执行所述程序代码,以实现以下操作:The memory stores program code for the processor to execute the program code to:
    根据预设的异常标识,从应用程序编程接口API的至少一条调用记录中获取所述API的异常调用记录,所述API为被调用方注册到所述调用服务器的任一API,所述调用记录用于记录发起方调用所述API的调用信息,所述API的异常调用记录为包括所述异常标识的所述API的调用记录;Acquiring an exception call record of the API from at least one call record of the application programming interface API according to a preset exception identifier, where the API is registered by the callee to any API of the call server, the call record Used to record call information of the API that the initiator invokes, and the abnormal call record of the API is recorded as an invocation record of the API including the exception identifier;
    根据所述API的异常调用记录确定产生异常调用的脚本因素,所述产生异常调用的脚本因素包括所述API的调用条件和所述API的调用参数中的至少一种;所述API的调用条件为触发调用所述API的条件因素,所述API的调用参数为调用所述API的传递参数;Determining, according to the abnormal call record of the API, a script factor that generates an exception call, the script factor that generates the exception call includes at least one of a call condition of the API and a call parameter of the API; a calling condition of the API In order to trigger a conditional factor for invoking the API, the calling parameter of the API is a transfer parameter that invokes the API;
    根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本。Adjusting the API script corresponding to the exception call record according to the script factor that generates the exception call.
  15. 根据权利要求14所述的调用服务器,其特征在于,在所述处理器用于执行根据所述API的异常调用记录确定产生异常调用的脚本因素的方面,所述处理器具体用于: The call server according to claim 14, wherein the processor is configured to perform a script factor for determining an abnormal call according to the abnormal call record of the API, the processor being specifically configured to:
    对所述API的异常调用记录中包括的所述API的调用条件进行统计,确定概率值达到预设阈值的调用条件为所述产生异常调用的脚本因素;The calling condition of the API included in the abnormal call record of the API is counted, and the calling condition that determines that the probability value reaches the preset threshold is the script factor that generates the abnormal call;
    或者,对所述API的异常调用记录中包括的所述API的调用参数进行统计,确定概率值达到预设阈值的调用参数为所述产生异常调用的脚本因素。Or, the calling parameter of the API included in the abnormal call record of the API is counted, and the calling parameter that determines that the probability value reaches a preset threshold is the script factor that generates the abnormal call.
  16. 根据权利要求14或15所述的调用服务器,其特征在于,在所述处理器用于执行根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本的方面,所述处理器具体用于:The calling server according to claim 14 or 15, wherein the processor is configured to perform an adjustment of an API script corresponding to the abnormal call record according to the script factor for generating the abnormal call, the processor specifically Used for:
    根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本中的调用条件和调用参数中的至少一种。And adjusting at least one of a calling condition and a calling parameter in the API script corresponding to the abnormal call record according to the script factor that generates the abnormal call.
  17. 根据权利要求14或15所述的调用服务器,其特征在于,在所述处理器用于执行根据所述产生异常调用的脚本因素调整所述异常调用记录对应的API脚本的方面,所述处理器具体用于:The calling server according to claim 14 or 15, wherein the processor is configured to perform an adjustment of an API script corresponding to the abnormal call record according to the script factor for generating the abnormal call, the processor specifically Used for:
    查询与所述产生异常调用的脚本因素相关联的API;将所述与所述脚本因素相关联的API添加到所述异常调用记录对应的API脚本中。Querying an API associated with the script factor that generates the exception call; adding the API associated with the script factor to an API script corresponding to the exception call record.
  18. 根据权利要求17所述的调用服务器,其特征在于,所述处理器还用于,设置注册到所述调用服务器的API的关联因素;在所述处理器用于执行查询与所述产生异常调用的脚本因素相关联的API的方面,所述处理器具体用于:在所述注册到所述调用服务器的API中查询关联因素与所述产生异常调用的脚本因素相匹配的API。The call server according to claim 17, wherein the processor is further configured to: set an association factor of an API registered to the calling server; and the processor is configured to execute a query and the generating an exception call An aspect of the API associated with the script factor, the processor is specifically configured to query, in the API registered to the calling server, an API that matches a correlation factor with a script factor that generates an exception call.
  19. 根据权利要求14至18任一项所述的调用服务器,其特征在于,所述处理器还用于,接收所述发起方发送的发起信息;The call server according to any one of claims 14 to 18, wherein the processor is further configured to receive the initiation information sent by the initiator;
    在根据所述发起信息包括的事件类型和事件内容,确定调用所述API后,将所述发起信息添加到所述API的调用记录中;After determining to invoke the API according to the event type and the event content included in the initiation information, adding the initiation information to the call record of the API;
    在调用所述API,并获取被调用方的被调用信息后,将所述被调 用信息添加到所述API的调用记录中。After the API is called and the called party's called information is obtained, the call is adjusted. Information is added to the call record of the API.
  20. 一种调用系统,包括运行有发起方软件系统的发起方设备,以及运行有被调用软件系统的被调用方设备,其特征在于,所述调用系统还包括:调用服务器,其中,所述调用服务器与分别所述发起方设备和被调用方设备相连;An invoking system, comprising an initiator device running an initiator software system, and a called party device running the called software system, wherein the calling system further comprises: a calling server, wherein the calling server Connected to the initiator device and the called party device respectively;
    所述调用服务器为权利要求8至13任一项所述的调用服务器,或者,所述权利要求14至19任一项所述的调用服务器;The calling server is the calling server according to any one of claims 8 to 13, or the calling server according to any one of claims 14 to 19;
    所述发起方设备的发起方软件系统用于,向所述调用服务器发送发起信息;所述发起信息包括事假类型和事件内容;The initiator software system of the initiator device is configured to send initiation information to the calling server; the initiation information includes a leave type and an event content;
    所述被调用方设备的被调用软件系统用于,将所述被调用方设备的API注册到所述调用服务器;根据所述调用服务器调用的API执行相应的操作。The called software system of the called party device is configured to register an API of the called party device to the calling server; perform a corresponding operation according to an API invoked by the calling server.
  21. 一种调用系统,包括多系统装置,所述多系统装置包括发起方软件系统和被调用方软件系统,其特征在于,所述调用系统还包括:调用服务器,其中,所述调用服务器与所述多系统装置相连;A calling system, comprising a multi-system device, the multi-system device comprising an initiator software system and a callee software system, wherein the calling system further comprises: a calling server, wherein the calling server and the Multi-system devices connected;
    所述调用服务器为权利要求8至13任一项所述的调用服务器,或者,所述权利要求14至19任一项所述的调用服务器;The calling server is the calling server according to any one of claims 8 to 13, or the calling server according to any one of claims 14 to 19;
    所述多系统装置中的发起方软件系统,用于向所述调用服务器发送发起信息;所述发起信息包括事假类型和事件内容;An initiator software system in the multi-system device, configured to send initiation information to the calling server; the initiation information includes a leave type and an event content;
    所述多系统装置中的被调用方软件系统,用于将所述被调用方软件系统的API注册到所述调用服务器;根据所述调用服务器调用的API执行相应的操作。 The called party software system in the multi-system device is configured to register an API of the called party software system to the calling server; and perform a corresponding operation according to the API invoked by the calling server.
PCT/CN2015/082573 2015-01-30 2015-06-26 Management method, device and system for system docking WO2016119389A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510054835.X 2015-01-30
CN201510054835.XA CN104618162B (en) 2015-01-30 2015-01-30 A kind of management method of system docking, device and system

Publications (1)

Publication Number Publication Date
WO2016119389A1 true WO2016119389A1 (en) 2016-08-04

Family

ID=53152453

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082573 WO2016119389A1 (en) 2015-01-30 2015-06-26 Management method, device and system for system docking

Country Status (2)

Country Link
CN (1) CN104618162B (en)
WO (1) WO2016119389A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618162B (en) * 2015-01-30 2018-04-20 华为技术有限公司 A kind of management method of system docking, device and system
US20170026292A1 (en) * 2015-07-20 2017-01-26 Schweitzer Engineering Laboratories, Inc. Communication link failure detection in a software defined network
CN108763059A (en) * 2018-04-24 2018-11-06 阿里巴巴集团控股有限公司 A kind of method for detecting abnormality, device and equipment
CN109088773B (en) * 2018-08-24 2022-03-11 广州视源电子科技股份有限公司 Fault self-healing method and device, server and storage medium
CN109344061B (en) * 2018-09-25 2022-09-16 创新先进技术有限公司 Method, device, equipment and system for detecting abnormity of interface
CN112769592B (en) * 2020-12-09 2022-12-02 北京思特奇信息技术股份有限公司 Communication monitoring method between distributed OCS system and network element

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1649324A (en) * 2004-01-26 2005-08-03 朗迅科技公司 Method and apparatus for operating an open API network having a proxy
US20070220370A1 (en) * 2006-01-12 2007-09-20 International Business Machines Corporation Mechanism to generate functional test cases for service oriented architecture (SOA) applications from errors encountered in development and runtime
CN101159539A (en) * 2007-11-20 2008-04-09 中国人民解放军信息工程大学 J2EE middleware criterion based tolerant inbreak application server and tolerant inbreak method
CN104618162A (en) * 2015-01-30 2015-05-13 华为技术有限公司 Management method, device and system of system docking

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7158991B2 (en) * 2003-09-30 2007-01-02 Veritas Operating Corporation System and method for maintaining temporal data in data storage
CN102508752B (en) * 2011-11-21 2014-04-09 广州市风标电子技术有限公司 Single chip microcomputer hardware simulator and simulation method for same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1649324A (en) * 2004-01-26 2005-08-03 朗迅科技公司 Method and apparatus for operating an open API network having a proxy
US20070220370A1 (en) * 2006-01-12 2007-09-20 International Business Machines Corporation Mechanism to generate functional test cases for service oriented architecture (SOA) applications from errors encountered in development and runtime
CN101159539A (en) * 2007-11-20 2008-04-09 中国人民解放军信息工程大学 J2EE middleware criterion based tolerant inbreak application server and tolerant inbreak method
CN104618162A (en) * 2015-01-30 2015-05-13 华为技术有限公司 Management method, device and system of system docking

Also Published As

Publication number Publication date
CN104618162A (en) 2015-05-13
CN104618162B (en) 2018-04-20

Similar Documents

Publication Publication Date Title
WO2016119389A1 (en) Management method, device and system for system docking
CN110535777B (en) Access request control method and device, electronic equipment and readable storage medium
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
WO2020181813A1 (en) Task scheduling method based on data processing and related device
CN110740103A (en) Service request processing method and device, computer equipment and storage medium
CN107241281B (en) Data processing method and device
US9684534B2 (en) Monitoring and modifying allocated computing resources
CN108062243B (en) Execution plan generation method, task execution method and device
US20200021537A1 (en) Resource allocation and provisioning in a multi-tier edge-cloud virtualization environment
US20190014023A1 (en) Methods for managing self-healing cloud infrastructure and applications
US20140330960A1 (en) Systems and Methods for Identifying Applications in Mobile Networks
CN109495542B (en) Load distribution method based on performance monitoring and terminal equipment
CN107819797B (en) Access request processing method and device
US9332132B1 (en) System and method for reclaiming obligated network resources
CN112749056A (en) Application service index monitoring method and device, computer equipment and storage medium
CN110661717A (en) Current limiting method and device and electronic equipment
CN114189525A (en) Service request method and device and electronic equipment
CN111209060A (en) Capability development platform processing method and device
US11455293B2 (en) Counting method, counter and storage medium
WO2016149945A1 (en) Life cycle event processing method and vnfm
CN109800085B (en) Resource configuration detection method and device, storage medium and electronic equipment
CN111405024A (en) Service processing method, gateway, electronic device and storage medium
US20170010948A1 (en) Monitoring a computing environment
CN108255704B (en) Abnormal response method of script calling event and terminal thereof
CN113779021B (en) Data processing method, device, computer system and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15879592

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15879592

Country of ref document: EP

Kind code of ref document: A1