Method and device for obtaining strategy migration effect and electronic equipment

By obtaining business link data from new and old platforms and comparing the execution results during the platform reconstruction process, the problem of insufficient robustness in the evaluation of policy migration effect is solved, and the consistency of business operation results and the accuracy of migration effect is achieved.

CN119988023APending Publication Date: 2025-05-13ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510100993.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

During the platform reconstruction process, changes in policy configuration structure and execution methods lead to insufficient robustness in the evaluation of policy migration effects, and it is difficult to ensure that the business operation results on new and old platforms are consistent.

Method used

By obtaining business link data from the target policy from the first platform before migration and the second platform after migration, extracting execution results at different levels in the hierarchy, and comparing the execution results at the same level to determine the policy migration effect.

Benefits of technology

It improves the accuracy and robustness of the strategy migration effect, ensures the consistency of business operation results on new and old platforms, and enhances the reliability during the platform reconstruction process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119988023A_ABST
    Figure CN119988023A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a method and device for obtaining a strategy migration effect and electronic equipment. The method for obtaining the strategy migration effect comprises the steps of obtaining first link data generated by a first service adopting a target strategy in an operation process from a first platform operated before migration of the target strategy; from a second platform operated after the target strategy is migrated, obtaining second link data generated in the operation process of a second service adopting the target strategy; extracting first execution results corresponding to different hierarchies in a hierarchical structure forming the target strategy from the first link data, and extracting second execution results corresponding to different hierarchies in the hierarchical structure from the second link data; and comparing the first execution result and the second execution result of the same level to obtain a comparison result, and determining the migration effect of the target strategy according to the comparison results of different levels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document belongs to the field of data processing technology, and specifically relates to a method, device and electronic device for obtaining strategy migration effects. Background Art

[0002] In order to adapt to new customer needs and market competition, many companies need to restructure their existing platforms. Platform reconstruction refers to redesigning and improving the structure and technology of the system to solve the problems of the existing platform and provide more efficient, stable and scalable solutions.

[0003] During the platform reconstruction process, the migration of related policies and various dependent configurations is often involved, which will cause changes in the policy configuration structure and policy execution method. In order to ensure that the operation process and results of the same or similar services on the new and old platforms are consistent after the policy is migrated to the new platform, it is necessary to compare the service traffic data generated by the service on the new and old platforms that does not infringe on user privacy.

[0004] The comparison of service traffic data is usually to compare the results generated after the service traffic runs in the service link. However, the robustness of the process of evaluating the migration effect based on the running results is not good. Therefore, it is necessary to provide a better solution for obtaining the policy migration effect to improve the effect of the obtained policy migration effect. Summary of the invention

[0005] The embodiments of the present specification provide a method, an apparatus, and an electronic device for obtaining a policy migration effect, so as to provide a solution for obtaining a policy migration effect.

[0006] In a first aspect, an embodiment of the present specification provides a method for obtaining a policy migration effect, the method comprising: obtaining, from a first platform on which a target policy is run before migration, first link data generated during the operation of a first business that adopts the target policy; obtaining, from a second platform on which the target policy is run after migration, second link data generated during the operation of a second business that adopts the target policy, the first business and the second business having the same business type; extracting, from the first link data, first execution results corresponding to different levels in a hierarchical structure constituting the target policy, and extracting, from the second link data, second execution results corresponding to different levels in the hierarchical structure; performing a comparison operation on the first execution result and the second execution result at the same level to obtain a comparison result, and determining the migration effect of the target policy based on the comparison results at different levels.

[0007] In the second aspect, an embodiment of the present specification provides a device for obtaining a policy migration effect, comprising: a first link module, for obtaining, from a first platform on which the target policy is run before migration, first link data generated during the operation of a first business that adopts the target policy; a second link module, for obtaining, from a second platform on which the target policy is run after migration, second link data generated during the operation of a second business that adopts the target policy, wherein the business types of the first business and the second business are the same; an execution result module, for extracting, from the first link data, first execution results corresponding to different levels in a hierarchical structure constituting the target policy, and from the second link data, second execution results corresponding to different levels in the hierarchical structure; a migration effect module, for comparing the first execution result and the second execution result at the same level to obtain a comparison result, and determining the migration effect of the target policy based on the comparison results at different levels.

[0008] In a third aspect, an embodiment of the present specification provides an electronic device, comprising: a processor, and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor is enabled to: obtain, from a first platform on which the target policy is run before migration, first link data generated during the operation of a first business that adopts the target policy; obtain, from a second platform on which the target policy is run after migration, second link data generated during the operation of a second business that adopts the target policy, wherein the business types of the first business and the second business are the same; extract, from the first link data, first execution results corresponding to different levels in a hierarchical structure constituting the target policy, and extract, from the second link data, second execution results corresponding to different levels in the hierarchical structure; compare the first execution result and the second execution result at the same level to obtain a comparison result, and determine the migration effect of the target policy based on the comparison results at different levels.

[0009] In a fourth aspect, an embodiment of the present specification provides a storage medium for storing a computer program, which can be executed by a processor to implement the following process: from a first platform on which a target policy is running before migration, obtain first link data generated during the operation of a first business that adopts the target policy; from a second platform on which the target policy is running after migration, obtain second link data generated during the operation of a second business that adopts the target policy, the first business and the second business have the same business type; from the first link data, extract first execution results corresponding to different levels in a hierarchical structure constituting the target policy, and from the second link data, extract second execution results corresponding to different levels in the hierarchical structure; compare the first execution result and the second execution result at the same level to obtain a comparison result, and determine the migration effect of the target policy based on the comparison results at different levels.

[0010] In a fifth aspect, an embodiment of the present specification provides a computer program product, including a computer program, which implements the following process when executed by a processor: obtaining first link data generated during the operation of a first business that adopts the target policy from a first platform on which the target policy is running before migration; obtaining second link data generated during the operation of a second business that adopts the target policy from a second platform on which the target policy is running after migration, wherein the business types of the first business and the second business are the same; extracting first execution results corresponding to different levels in a hierarchical structure constituting the target policy from the first link data, and extracting second execution results corresponding to different levels in the hierarchical structure from the second link data; performing a comparison operation on the first execution result and the second execution result at the same level to obtain a comparison result, and determining the migration effect of the target policy based on the comparison results at different levels. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in one or more embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0012] Figure 1 It is a flowchart of a method for obtaining a policy migration effect provided by an embodiment of this specification; Figure 2 This is a schematic diagram of the structure of a service link of a service flow provided in an embodiment of this specification; Figure 3This is a schematic diagram of an application scenario of a method for obtaining a policy migration effect provided in an embodiment of this specification; Figure 4 It is a schematic diagram of a process of obtaining a strategy migration effect based on a conversion operation provided in an embodiment of this specification; Figure 5 This is a schematic diagram of a process of a comparison operation at a strategy layer provided in an embodiment of this specification; Figure 6 A schematic diagram of the interaction of comparison results at different levels provided in the embodiments of this specification; Figure 7 It is a structural schematic diagram of a device for obtaining a strategy migration effect provided in an embodiment of this specification; Figure 8 It is a structural diagram of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0013] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this document.

[0014] The terms "first", "second", etc. in the specification and claims of this document are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of this specification can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0015] With the rapid development of information technology and Internet technology, online business has been rapidly developed and widely used, such as payment business, registration business, marketing business, etc. However, with the rapid development of online business, some lawless elements often use various means to commit fraud in online business.

[0016] In order to timely identify high-risk users or high-risk transaction behaviors involved in fraud in online business and improve the security of online business, the business platform often needs to deploy a data security detection center composed of multiple risk control strategies, which can include high-risk user identification strategy, high-risk transaction behavior identification strategy, etc. The execution of strategies requires the use of rules. A strategy usually consists of one or more rules. Certain logical operation expressions must be satisfied between the rules, and each rule also has its own conditional operation expression.

[0017] In the aforementioned process of evaluating the migration effect based on the operation results, after a business is initiated, business traffic will be generated based on the business link formed by at least one policy in the platform. After the same business is run in the new platform and the old platform, a link operation result will be generated respectively, that is, there is a link operation result in the business traffic of the new platform and a link operation result in the business traffic of the old platform. A JSON object is a collection of key-value pairs, which can be created by defining key-value pairs inside curly braces. It is generally believed that the link operation result is a JSON object. Then, the JSON objects of businesses with the same business type in different business platforms can be found, and the policy migration effect can be determined by comparing the values ​​of the link operation results in different JSON objects.

[0018] In the process of determining the effect of policy migration through JSON objects, it is necessary to determine the comparison subject and comparison object in turn. The comparison subject is the subject to be compared in the business link of the new platform or the old platform. The definitions and values ​​of the two comparison subjects of the new platform and the old platform must be equal in order to associate the operation results of the new and old business links, that is, the comparison subjects of the new platform and the old platform must be the same. Specifically, the two comparison subjects of the new platform and the old platform can be the same business traffic (the two comparison subjects have the same business identifier), and the two comparison subjects of the new platform and the old platform can also be the same policy in the same business traffic (the two comparison subjects have the same business identifier and the same policy identifier). The comparison object is the specific object that needs to be compared after the comparison subject is defined. The comparison object can be one or more. When the comparison subject is business traffic, the comparison object can be one or more attributes in the business traffic result.

[0019] After determining the comparison subject and comparison object, if the values ​​of the comparison objects corresponding to the comparison subject of the new platform and the comparison subject of the old platform are equal, it can be considered that the operation of the data security center after migration from the old platform to the new platform is in line with expectations. If the values ​​of the comparison objects corresponding to the comparison subject of the new platform and the comparison subject of the old platform are not equal, it is considered that there are configuration, calculation and other problems in the operation process of the data security center after migration from the old platform to the new platform, and analysis and investigation are required.

[0020] Table 1 Link operation results of platform A and platform B

[0021] Assume that the policy is migrated from platform A to platform B. Platform A generates JSON object 1 and platform B generates JSON object 2. The attribute values ​​of the link operation results in JSON object 1 and JSON object 2 (that is, the comparison subject and comparison object are determined) are compared. If the comparison object values ​​of the comparison subjects set in platforms A and B are equal, it can be considered that the policy runs as expected on platform B. If the comparison object values ​​of the comparison subjects set in platforms A and B are not equal, it can be considered that the policy does not run as expected on platform B.

[0022] Table 1 shows the link operation results of platform A and platform B. In Table 1, the comparison subject of platform A and platform B is bizID. Objects that do not affect the evaluation of the business link operation results in platform A and platform B are removed. The comparison objects of platform A and platform B contain at least 6: compareObject1, compareObject2, data.compareObject3, data.compareObject4, data.detail.compareObject5, data.detail.compareObject6. When the values ​​of these 6 comparison objects of platform A and platform B are equal, it means that the operation of the strategy on the new platform (i.e. platform B) meets expectations, otherwise it does not meet expectations.

[0023] The above examples all determine the policy migration effect based on the link operation results. However, this method has many problems: on the one hand, the policy migration effect is not accurate, because there may be a situation where the overall link operation results in some business traffic are consistent, but the calculation results of some rules in the policy operation process are different; on the other hand, there are requirements for the format of the link operation results. For example, the structure of the link operation results generated by the new and old platforms must be consistent or similar, otherwise the comparison object cannot be specified. However, due to the optimization of functions, performance, and expansion of the new platform, it is difficult to ensure that the format of the generated link operation results is consistent with the old platform; on the other hand, it cannot adapt to complex policy migration scenarios. For example, there can only be one policy in each of the new and old platforms (one-to-one comparison), otherwise the comparison cannot be performed. For example, the comparison subject of the link operation results can only define one attribute, otherwise the operation results of the new and old business links cannot be associated, resulting in the inability to compare.

[0024] The method, device and electronic device for obtaining the effect of policy migration provided by the embodiments of this specification are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0025] Figure 1 A method for obtaining a policy migration effect provided by an embodiment of the present invention is shown. The method can be executed by an electronic device, and the electronic device may include: a server and / or a terminal device, wherein the terminal device may be, for example, a vehicle-mounted terminal or a mobile phone terminal. In other words, the method can be executed by software or hardware installed in the aforementioned electronic device, and the method for obtaining a policy migration effect includes the following steps: Step S102: acquiring first link data generated during the operation of a first service adopting the target policy from a first platform on which the target policy is run before the migration.

[0026] Step S104: acquiring, from the second platform on which the target policy is run after migration, second link data generated during the operation of the second service adopting the target policy.

[0027] The target policy is at least one policy for platform migration, the platform where the target policy is located before migration is the first platform, and the platform where the target policy is located after migration is the second platform.

[0028] The first business and the second business are two businesses of the same business type. To ensure the accuracy of the obtained policy migration effect, the business subjects in the first business and the second business should be the same or have similar profiles, and the business details in the first business and the second business, such as transaction frequency, transaction time, transaction amount, etc., should also be as close as possible.

[0029] After the first service is run in the service link formed based on the target strategy in the first platform, the first link data is generated, and after the second service is run in the service link formed based on the target strategy in the second platform, the second link data is generated. The first link data and the second link data may include process data and / or result data generated during the operation of the service link. In one example, the first link data and the second link data may be found in a JSON object.

[0030] Step S106: extracting first execution results corresponding to different levels in the hierarchical structure constituting the target policy from the first link data, and extracting second execution results corresponding to different levels in the hierarchical structure from the second link data.

[0031] Step S108: performing a comparison operation on the first execution result and the second execution result at the same level to obtain a comparison result, and determining the migration effect of the target policy according to the comparison results at different levels.

[0032] The first execution result is a phased execution result generated in the process of executing the target strategy of the first business, and the second execution result is a phased execution result generated in the process of executing the target strategy of the second business. It should be understood that by performing comprehensive conditional operations on the first execution results of each level, a conclusive business result of the first business can be obtained, and by performing comprehensive conditional operations on the second execution results of each level, a conclusive business result of the second business can be obtained.

[0033] Figure 2 Figure 1 shows a schematic diagram of the structure of a service link for a service flow. Figure 2 As shown in the figure, in a business link, a policy usually contains one or more rules, and each rule also contains one or more conditional expressions, that is, the policy contains at least three hierarchical structures: policy layer, rule layer, and condition layer. It should be noted that unlike the structure of the link operation results, which is easy to change based on the change of the platform, the engine core of the new and old platforms is based on the strategy-rule-condition method, so the essential hierarchy and composition structure of the two platforms will not change.

[0034] In one example, the first execution result and the second execution result of different levels (the level corresponds to the level of the aforementioned engine core) can be extracted from the first link data and the second link data, respectively, so that the first execution result and the second execution result of the same level can be compared, so as to determine the migration effect of the target policy according to the comparison results of different levels (constituting a many-to-many comparison). The first execution result and the second execution result of the same level that are compared can be different values ​​of the same attribute.

[0035] In the embodiment of the present specification, the first link data corresponding to the platform before migration (i.e., the first platform) and the second link data corresponding to the platform after migration (i.e., the second platform) of the target strategy of the same business type are obtained, and the first execution result in the first link data at the same level and the second execution result in the second link data are compared to determine the migration effect of the target strategy. In the above process, based on the hierarchical structure of the target strategy, the comparison of the strategy migration effect is converted into the comparison of the first execution result and the second execution result at different levels. On the one hand, the comparison of multi-level data (i.e., the first execution result and the second execution result) makes the information covered by the migration effect acquisition process more comprehensive, which can avoid the phenomenon of wrong judgment of the strategy migration effect caused by the consistency of the overall operation results but the different process operation results, and improve the accuracy of the strategy migration effect; on the other hand, the extraction of multi-level data realizes the decomposition of the link data (i.e., the first link data and the second link data), while reducing the requirements for the format of the link operation results, it improves the adaptability of the strategy migration method to the complex strategy migration effect, making it possible to obtain the migration effect of multiple strategies and complex strategies (complex strategies such as comparison subjects containing multiple attributes), which can greatly improve the robustness of the strategy migration effect acquisition process.

[0036] Figure 3 A schematic diagram of an application scenario for obtaining the effect of policy migration is provided, such as Figure 3 As shown, the user sends a service request to the server through a terminal such as a mobile phone, and the service request includes: for the first platform running before the migration and the second platform running after the migration of the target policy provided by the user, execute the target task of obtaining the policy migration effect for the target policy. After receiving the service request, the server uses the method for obtaining the policy migration effect in this specification to obtain the migration effect for the target policy, and sends the migration effect result to the terminal for the user's reference.

[0037] In one implementation, step S106 may be performed as the following steps A1-A3: Step A1, determining a first comparison subject of a target level in a hierarchical structure from the first link data, and determining a second comparison subject of the target level from the second link data; Step A2, determining a first execution result from the first link data based on the first comparison object included in the first comparison subject; Step A3: determining a second execution result from the second link data based on the second comparison object included in the second comparison subject.

[0038] Among them, the target level is any level in the hierarchical structure. The process of determining the execution result of the target level can be divided into determining the comparison subject and determining the comparison object. By determining the multi-level execution results, the first link data and the second link data can be disassembled.

[0039] For a hierarchical structure including a strategy layer, a rule layer, and a condition layer, the process of determining the first comparison subject and the second comparison subject of the target layer may include: (1) When the target layer is the policy layer, a first comparison subject of the first business at the policy layer is determined according to an identifier of the first business and an identifier of the policy corresponding to the first business at the policy layer, and a second comparison subject of the second business at the policy layer is determined according to an identifier of the second business and an identifier of the policy corresponding to the second business at the policy layer.

[0040] Specifically, the first comparison subject can be determined from the first link data based on the identifier of the first business and the identifier of the strategy used by the first business at the strategy layer. The first comparison subject can be a simple combination of the identifier of the first business and the identifier of the strategy used by the first business at the strategy layer, or it can be a variant of the identifier of the first business and the identifier of the strategy used by the first business at the strategy layer. When the identifier of the first business is bizID and the identifier of the strategy used by the first business at the strategy layer is strategyID, the first comparison subject can be bizID+strategyID. The identifier is usually one or more fields.

[0041] Similarly, the second comparison subject can be determined from the second link data based on the identifier of the second service and the identifier of the policy used by the second service at the policy layer. The second comparison subject can be a simple combination of the identifier of the second service and the identifier of the policy used by the second service at the policy layer, or a variant of the identifier of the second service and the identifier of the policy used by the second service at the policy layer.

[0042] (2) When the target layer is the rule layer, the first comparison subject of the first business at the rule layer is determined according to the identifier of the first business, the identifier of the policy corresponding to the first business at the policy layer, and the identifier of the rule corresponding to the first business at the rule layer. The second comparison subject of the second business at the rule layer is determined according to the identifier of the second business, the identifier of the policy corresponding to the second business at the policy layer, and the identifier of the rule corresponding to the second business at the rule layer.

[0043] Specifically, the first comparison subject can be determined based on the identifier of the first business, the identifier of the policy corresponding to the first business at the policy layer, and the identifier of the rule corresponding to the first business at the rule layer. The first comparison subject can be a simple combination of the identifier of the first business, the identifier of the policy used by the first business at the policy layer, and the identifier of the rule used by the first business at the rule layer, or it can be a variant of the identifier of the first business, the identifier of the policy used by the first business at the policy layer, and the identifier of the rule used by the first business at the rule layer. When the identifier of the first business is bizID, the identifier of the policy used by the first business at the policy layer is strategyID, and the identifier of the rule used by the first business at the rule layer is ruleID, the first comparison subject can be bizID+strategyID+ruleID.

[0044] Similarly, the second comparison subject can be determined based on the identifier of the second service, the identifier of the policy corresponding to the second service at the policy layer, and the identifier of the rule corresponding to the second service at the rule layer. The second comparison subject can be a simple combination of the identifier of the second service, the identifier of the policy used by the second service at the policy layer, and the identifier of the rule used by the second service at the rule layer, or a variant of the identifier of the second service, the identifier of the policy used by the second service at the policy layer, and the identifier of the rule used by the second service at the rule layer.

[0045] (3) When the target layer is the conditional layer, the first comparison subject of the first business at the conditional layer is determined according to the identification of the first business, the identification of the policy corresponding to the first business at the policy layer, the identification of the rule corresponding to the first business at the rule layer, and the identification of the condition corresponding to the first business at the conditional layer. The second comparison subject of the second business at the conditional layer is determined according to the identification of the second business, the identification of the policy corresponding to the second business at the policy layer, the identification of the rule corresponding to the second business at the rule layer, and the identification of the condition corresponding to the second business at the conditional layer.

[0046] Specifically, the first comparison subject may be determined based on the identifier of the first business, the identifier of the policy corresponding to the first business at the policy layer, the identifier of the rule corresponding to the first business at the rule layer, and the identifier of the condition corresponding to the first business at the condition layer. The first comparison subject may be a simple combination of the identifier of the first business, the identifier of the policy used by the first business at the policy layer, the identifier of the rule used by the first business at the rule layer, and the identifier of the condition corresponding to the first business at the condition layer, or may be a variant of the identifier of the first business, the identifier of the policy used by the first business at the policy layer, the identifier of the rule used by the first business at the rule layer, and the identifier of the condition corresponding to the first business at the condition layer. When the identifier of the first business is bizID, the identifier of the policy used by the first business at the policy layer is strategyID, the identifier of the rule used by the first business at the rule layer is ruleID, and the identifier of the condition used by the first business at the condition layer is conditionID, the first comparison subject may be bizID+strategyID+ruleID+conditionID.

[0047] Similarly, the second comparison subject can be determined based on the identifier of the second service, the identifier of the policy corresponding to the second service at the policy layer, the identifier of the rule corresponding to the second service at the rule layer, and the identifier of the condition corresponding to the second service at the condition layer. The second comparison subject can be a simple combination of the identifier of the second service, the identifier of the policy used by the second service at the policy layer, the identifier of the rule used by the second service at the rule layer, and the identifier of the condition corresponding to the second service at the condition layer, or it can be a variant of the identifier of the second service, the identifier of the policy used by the second service at the policy layer, the identifier of the rule used by the second service at the rule layer, and the identifier of the condition corresponding to the second service at the condition layer.

[0048] After determining the comparison subject of the target level, you can customize the comparison object (i.e., the first comparison object or the second comparison object) that affects the migration effect based on the expert's advice or the importance of each attribute in the target level. Specifically, for the policy level, the policy output result, policy output risk level, policy output action, etc. can be used as the first comparison object or the second comparison object; for the rule level, the rule hit, rule priority, rule logic expression, etc. can be used as the first comparison object or the second comparison object; for the condition level, the condition hit, condition left value, condition operator, condition right value, etc. can be used as the first comparison object or the second comparison object.

[0049] After determining the first comparison object, the first execution result corresponding to the first comparison object can be determined from the first link data. Similarly, after determining the second comparison object, the second execution result corresponding to the second comparison object can be determined from the second link data. Among them, the execution result data of the strategy layer (including the first execution result and the second execution result) represents the operation result of the strategy, the execution result data of the rule layer represents the operation result of the rule, and the execution result data of the condition layer represents the operation result of the condition.

[0050] In the embodiment of this specification, for the first link data, the first comparison subject of the target level is first determined, and then the first execution result of the first comparison object in the first comparison subject is determined. Similarly, for the second link data, the second comparison subject of the target level is first determined, and then the second execution result of the second comparison object in the second comparison subject is determined. This process disassembles the link data through the comparison subjects, comparison objects and execution results at different levels, and realizes the consistency of the data structure of the comparison operation of the first platform and the second platform.

[0051] In one implementation, step S108 may be performed as the following steps B1-B2: Step B1, determining a plurality of association relationship groups including a first execution result and a second execution result from each level of the hierarchical structure; Step B2: performing a comparison operation on the first execution result and the second execution result in the association relationship group to obtain a comparison result.

[0052] Among them, the association relationship group is a combination of a first execution result and a second execution result with an association relationship. The same association relationship group contains a first execution result and a second execution result, and the first comparison subject in the first execution result is the same as the second comparison subject in the second execution result.

[0053] Before the comparison operation, it is necessary to first determine the two associated objects to be compared. In one example, for the target level, multiple association relationship groups corresponding to the target level can be found based on the first comparison subject corresponding to the first execution result and the second comparison subject in the second execution result. Furthermore, the first execution result and the second execution result in the association relationship group can be compared to obtain the comparison result corresponding to the association relationship group, and then the migration effect of the target strategy can be determined based on the comparison results corresponding to the association relationship groups contained in each level.

[0054] The generation formats and / or rules of the identifiers in the first platform and the second platform are usually different. Even for the same service, after using the same policy in the first platform and the second platform, the obtained identifiers are different. In one implementation, before determining multiple association relationship groups including the first execution result and the second execution result from each level of the hierarchical structure, the method for obtaining the policy migration effect may also include the following steps C1-C2: Step C1, based on the first mapping relationship of the first comparison subject, performing a conversion operation on the identifier of the first comparison subject in the first execution result to obtain a converted first execution result; Step C2: based on the second mapping relationship of the second comparison subject, convert the identifier of the second comparison subject in the second execution result to obtain a converted second execution result.

[0055] Among them, the first mapping relationship is the correspondence between the identifier of the first comparison subject and the preset identifier, and the second mapping relationship is the correspondence between the identifier of the second comparison subject and the preset identifier. The first mapping relationship and the second mapping relationship are mapping relationships constructed when the target policy is migrated from the first platform to the second platform. It should be understood that the preset identifiers in the first mapping relationship and the second mapping relationship should be the same, so that the association between the first execution result and the second execution result can be established through the first mapping relationship and the second mapping relationship. In one example, a mapping relationship table containing the first mapping relationship and the second mapping relationship can be constructed for easy use.

[0056] Specifically, before the comparison operation, the identifier of the first comparison subject in the first execution result can be converted based on the first mapping relationship to obtain the converted first execution result; the identifier of the second comparison subject in the second execution result can be converted based on the second mapping relationship to obtain the converted second execution result. Since the preset identifiers in the first mapping relationship and the second mapping relationship are the same, the converted second execution result that matches the converted first execution result can be found based on the identifier of the first comparison subject in the converted first execution result. For the matching converted first execution result and converted second execution result, the identifier of the first comparison subject in the converted first execution result is the same as the identifier of the second comparison subject in the converted second execution result.

[0057] Furthermore, a comparison operation can be performed on the matched converted first execution result and the converted second execution result to obtain a comparison result between the first execution result and the second execution result. It should be noted that due to the uniqueness of the service identifier, the conversion operation only involves the conversion of the policy identifier, the rule identifier and the condition identifier, and does not involve the conversion of the service identifier.

[0058] Figure 4FIG. 4 shows a schematic diagram of the process of obtaining the effect of strategy migration based on the conversion operation. Figure 4 As shown, for a hierarchical structure including a strategy layer, a rule layer, and a condition layer, a conversion operation of the strategy layer can be performed. Specifically, for the strategy layer, it is necessary to simultaneously convert the identifier of the first comparison subject in the first execution result and the identifier of the second comparison subject in the second execution result, and determine the comparison result based on the converted first execution result and the converted second execution result.

[0059] In the embodiment of the present specification, the conversion operation is used to achieve consistency of the comparison subjects in the first execution result and the second execution result when performing the comparison operation, thereby improving the operability of the method for obtaining the policy migration effect.

[0060] In one implementation, the comparison result includes a successful comparison and a failed comparison. Step S108 may be performed as follows: Steps D1-D2: Step D1: when there is no comparison failure in the comparison results at different levels, the migration effect of the target strategy is in line with expectations; In step D2, when there is a comparison failure among the comparison results at different levels, the migration effect of the target strategy does not meet expectations.

[0061] Specifically, when the comparison results of each level in the hierarchical structure are all successful, it means that the operating results of the business links of the target policy in the first platform and the second platform are consistent. At this time, it can be determined that the migration effect of the target policy meets expectations; when at least one successful comparison result appears in the hierarchical structure, it means that the operating results of the business links of the target policy in the first platform and the second platform are not completely consistent. At this time, it can be determined that the migration effect of the target policy does not meet expectations.

[0062] In one example, the comparison result of successful comparison may include one case: "SUCCESS", which indicates that the first execution result of the first platform being compared is the same as the second execution result of the second platform being compared. The comparison result of failed comparison may include three cases: "NOT_MATCH", which indicates that the first execution result of the first platform being compared is not the same as the second execution result of the second platform being compared; "OLD_LACK", which indicates that there is no first execution result in the first platform that matches the second execution result in the second platform being compared; "NEW_LACK", which indicates that there is no second execution result in the second platform that matches the first execution result in the first platform being compared.

[0063] Figure 5 FIG. 2 shows a schematic diagram of the process of the comparison operation at the strategy layer. Figure 5As shown, after converting the identifiers corresponding to the first execution result and the second execution result of the policy layer based on the preset mapping relationship table, there are 5 groups of associated first execution results and second execution results in the policy layer, and the comparison result is "the same" for 1 group, "different" for 2 groups, "the first platform lacks data" for 1 group, and "the second platform lacks data" for 1 group.

[0064] While determining the migration effect of the target policy, the cause of the migration effect can also be obtained. Specifically, the cause of the inconsistency between the operation results of the target policy on the first platform and the second platform may be that a rule or condition of the target policy has changed after it has been migrated to the second platform. In one implementation, the method for obtaining the policy migration effect also includes the following steps E1-E2: Step E1, when there is a comparison result of a failed comparison at the target level and there is a next level at the target level, obtaining the comparison result of the next level; Step E2, according to the comparison result of the next level, determining the first reason why the comparison result of the target level has failed, and supplementing the migration effect according to the first reason to obtain the supplemented migration effect.

[0065] Among them, the first reason is that there is a comparison result of failed comparison at the target level.

[0066] The reason for the comparison failure in the comparison result of the target level may be the comparison failure in the next level of the target level, or there may be a problem in the target level itself. Therefore, when there is a comparison result of comparison failure in the target level and there is a next level (that is, the dependent layer of the target level) in the target level, the comparison result of the next level may be obtained, and based on the comparison result of the next level, the first reason for the comparison failure in the target level may be determined. Specifically, when there is a comparison failure in the comparison results of the target level, and there is no comparison failure in the comparison results of the next level, it can be determined that the first cause is that there may be a problem with the target level; when there is a comparison failure in the comparison results of the target level, and there is a comparison failure in the comparison results of the next level, it can be determined that the first cause is that there may be a problem with the target level and / or there may be a problem with the next level.

[0067] In this way, when the target level is the policy level, the first reason for the comparison result of failed comparison at the policy level can be determined based on the comparison result of the target policy at the rule level; when the target level is the rule level, the first reason for the comparison result of failed comparison at the rule level can be determined based on the comparison result of the target policy at the condition level.

[0068] Figure 6A schematic diagram showing the interaction of the comparison results at different levels in the hierarchy of target strategies is shown. Figure 6 As shown, a downward analysis can be performed based on the comparison results at the strategy layer, or a downward analysis can be performed based on the comparison results at the rule layer.

[0069] In the embodiment of the present specification, when there is a comparison result that fails to be compared in the target layer, the first reason for the comparison result that fails to be compared in the target layer can be determined from the comparison result of the next layer of the target layer to supplement the migration effect. This process analyzes the comparison result of the next layer of the target layer to obtain the reason for the comparison result that fails to be compared in the target layer, which is convenient for supplementing the migration effect of the target strategy, and at the same time helps to judge the accuracy of the migration effect of the target strategy by analyzing the consistency of the comparison results of different layers in the hierarchical structure of the target strategy.

[0070] In addition to the downward analysis, an upward analysis can also be performed based on the comparison results of the target strategy. In one implementation, the method for obtaining the effect of strategy migration also includes the following steps F1-F2: Step F1, when there is a comparison result with a failed comparison in the target level and there is an upper level in the target level, the comparison result corresponding to the comparison result with a failed comparison in the target level in the upper level is set as a comparison failure; Step F2, taking the comparison result of the target level as the second reason for the comparison result of the previous level that failed to be compared, and supplementing the migration effect according to the second reason to obtain the supplemented migration effect.

[0071] The second reason is that there is a comparison result of failed comparison in the previous level of the target level.

[0072] When there are comparison results of failed comparison at the target level, there may also be comparison results of failed comparison at the level above the target level. Therefore, when there are comparison results of failed comparison at the target level and there is a level above the target level, the comparison results of the level above can be set, and based on the comparison results of the target level, the first reason why there are comparison results of failed comparison at the level above the target level can be determined.

[0073] Specifically, when the target level is the rule level, the policy to which the rule with the comparison result of comparison failure belongs can be found, and the comparison result of the policy can be set as comparison failure, and the rule with the comparison result of comparison failure can be used as the reason why the comparison result of the policy is comparison failure; when the target level is the condition level, the rule to which the condition with the comparison result of comparison failure belongs can be found, and the comparison result of the rule can be set as comparison failure, and the condition with the comparison result of comparison failure can be used as the reason why the comparison result of the rule is comparison failure.

[0074] It should be noted that the comparison operation in this specification should be the comparison operation of each level in the hierarchical structure. When setting the comparison result of the previous level based on the comparison result of the target level, the comparison operation of the previous level is still required (that is, the second reason requires both the set comparison result and the actual comparison result), because it is possible that the comparison result of the target level fails but the comparison result of the previous level is successful. This may be because there is a problem not only in the target level, but also in the level above the target level. The two offset each other, giving the target level the illusion that the comparison result is successful.

[0075] like Figure 6 As shown, the push-up analysis can be performed based on the comparison results of the condition layer, or the push-up analysis can be performed based on the comparison results of the rule layer.

[0076] In the embodiment of the present specification, when there is a comparison result of failed comparison in the target level, the comparison result of the previous level of the target level can be determined, and the second reason why there is a comparison result of failed comparison in the previous level of the target level can be determined to supplement the migration effect. This process analyzes the comparison result of the previous level of the target level upward to obtain the reason why there is a comparison result of failed comparison in the previous level of the target level, so as to supplement the migration effect of the target strategy.

[0077] It can be understood that the above-mentioned various method embodiments mentioned in this specification can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, they will not be repeated in this specification. Those skilled in the art can understand that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.

[0078] It should be noted that the method for obtaining the policy migration effect provided in the embodiments of this specification can be executed by a device for obtaining the policy migration effect, or a control module in the device for obtaining the policy migration effect for executing the method for obtaining the policy migration effect. In the embodiments of this specification, the device for obtaining the policy migration effect provided in the embodiments of this specification is described by taking the method for obtaining the policy migration effect executed by the device for obtaining the policy migration effect as an example.

[0079] Figure 7 FIG. 1 is a schematic diagram of the structure of an apparatus for obtaining a policy migration effect according to an embodiment of the present invention. Figure 7 As shown, the device 700 for obtaining the effect of policy migration includes: The first link module 710 is used to obtain the first link data generated during the operation of the first service adopting the target policy from the first platform on which the target policy is run before the migration; The second link module 720 is used to obtain second link data generated during the operation of a second service adopting the target policy from a second platform on which the target policy is operated after migration, where the first service and the second service have the same service type; An execution result module 730 is used to extract first execution results corresponding to different levels in the hierarchical structure constituting the target policy from the first link data, and to extract second execution results corresponding to different levels in the hierarchical structure from the second link data; The migration effect module 740 is used to compare the first execution result and the second execution result at the same level to obtain a comparison result, and determine the migration effect of the target policy according to the comparison results at different levels.

[0080] In one embodiment, the execution result module 730 includes: A comparison subject unit, used to determine a first comparison subject of a target level in the hierarchical structure from the first link data, and to determine a second comparison subject of the target level from the second link data; A first result unit, configured to determine a first execution result from the first link data based on a first comparison object included in the first comparison subject; The second result unit is used to determine a second execution result from the second link data based on a second comparison object included in the second comparison subject.

[0081] In one embodiment, the hierarchical structure includes a policy layer, a rule layer, and a condition layer, and is used to compare the subject unit to: When the target layer is the policy layer, a first comparison subject of the first service at the policy layer is determined according to the identifier of the first service and the identifier of the policy corresponding to the first service at the policy layer, and a second comparison subject of the second service at the policy layer is determined according to the identifier of the second service and the identifier of the policy corresponding to the second service at the policy layer; In the case where the target layer is the rule layer, a first comparison subject of the first business at the rule layer is determined according to the identifier of the first business, the identifier of the policy corresponding to the first business at the policy layer, and the identifier of the rule corresponding to the first business at the rule layer; a second comparison subject of the second business at the rule layer is determined according to the identifier of the second business, the identifier of the policy corresponding to the second business at the policy layer, and the identifier of the rule corresponding to the second business at the rule layer; When the target layer is the conditional layer, the first comparison subject of the first business at the conditional layer is determined according to the identification of the first business, the identification of the policy corresponding to the first business at the policy layer, the identification of the rule corresponding to the first business at the rule layer, and the identification of the condition corresponding to the first business at the conditional layer; the second comparison subject of the second business at the conditional layer is determined according to the identification of the second business, the identification of the policy corresponding to the second business at the policy layer, the identification of the rule corresponding to the second business at the rule layer, and the identification of the condition corresponding to the second business at the conditional layer.

[0082] In one embodiment, the migration effect module 740 includes: An association unit, used to determine, from each level of the hierarchical structure, a plurality of association groups including the first execution result and the second execution result, wherein in the same association group, a first comparison subject of the first execution result and a second comparison subject of the second execution result are the same; The comparison result unit is used to compare the first execution result and the second execution result in the association relationship group to obtain a comparison result.

[0083] In one embodiment, the device 700 for obtaining the effect of policy migration includes: A first conversion module is used to convert the identifier of the first comparison subject in the first execution result based on the first mapping relationship of the first comparison subject before determining a plurality of association relationship groups including the first execution result and the second execution result from each level of the hierarchical structure to obtain a converted first execution result; The second conversion module is used to perform a conversion operation on the identifier of the second comparison subject in the second execution result based on the second mapping relationship of the second comparison subject to obtain a converted second execution result.

[0084] In one embodiment, the comparison result includes a comparison success and a comparison failure. The migration effect module 740 includes: The first effect unit is used to ensure that the migration effect of the target strategy is in line with expectations when there is no comparison failure in the comparison results at different levels; The second effect unit is used to determine that the migration effect of the target strategy does not meet expectations when there is a comparison failure in the comparison results at different levels.

[0085] In one embodiment, the device 700 for obtaining the effect of policy migration further includes: The first level module is used to obtain the comparison result of the next level when there is a comparison result of a comparison failure at the target level and the target level has a next level; The first supplementing module is used to determine the first reason why the comparison result of the target layer has failed comparison according to the comparison result of the next layer, and supplement the migration effect according to the first reason to obtain the supplemented migration effect.

[0086] In one embodiment, the device 700 for obtaining the effect of policy migration further includes: The second level module is used for setting the comparison result corresponding to the comparison result of the comparison result of the failed comparison in the target level as comparison failure in the previous level when there is a comparison result of failed comparison in the target level and the target level has an upper level; The second supplementing module is used to use the comparison result of the target level as the second reason for the comparison result of the previous level that failed to be compared, and to supplement the migration effect according to the second reason to obtain the supplemented migration effect.

[0087] It should be noted that the embodiment of the device for obtaining the policy migration effect in this specification and the embodiment of the method for obtaining the policy migration effect in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding method for obtaining the policy migration effect mentioned above, and the repeated parts will not be repeated.

[0088] Each module in the above-mentioned device for obtaining the effect of policy migration can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the terminal device or the processor on the server side in the form of hardware, or can be stored in the memory in the terminal device or the memory on the server side in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0089] Further, corresponding to the method for obtaining the effect of policy migration described above, based on the same technical concept, one or more embodiments of this specification also provide an electronic device, which is used to execute the method for obtaining the effect of policy migration described above. Figure 8 A schematic diagram of the structure of an electronic device provided for one or more embodiments of this specification.

[0090] Based on the same idea, one or more embodiments of this specification also provide an electronic device, such as Figure 8As shown. The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors 801 and memory 802, and the memory 802 may store one or more storage applications or data. Among them, the memory 802 can be a temporary storage or a permanent storage. The application stored in the memory 802 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the electronic device. Furthermore, the processor 801 can be configured to communicate with the memory 802 to execute a series of computer executable instructions in the memory 802 on the electronic device. The electronic device may also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input and output interfaces 805, and one or more keyboards 806.

[0091] In a specific embodiment, the electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the electronic device, and the one or more programs configured to be executed by one or more processors include the following computer executable instructions: Acquire, from a first platform on which the target strategy is run before migration, first link data generated during the operation of a first service adopting the target strategy; Acquire, from a second platform on which the target policy is run after migration, second link data generated during the operation of a second service adopting the target policy, where the first service and the second service have the same service type; Extracting first execution results corresponding to different levels in the hierarchical structure constituting the target policy from the first link data, and extracting second execution results corresponding to different levels in the hierarchical structure from the second link data; A comparison operation is performed on the first execution result and the second execution result at the same level to obtain a comparison result, and a migration effect of the target strategy is determined according to the comparison results at different levels.

[0092] It should be noted that the embodiment of the electronic device in this specification and the embodiment of the method for obtaining the effect of strategy migration in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding method for obtaining the effect of strategy migration mentioned above, and the repeated parts will not be repeated.

[0093] Furthermore, corresponding to the method for obtaining the effect of policy migration described above, based on the same technical concept, one or more embodiments of this specification further provide a storage medium for storing computer executable instructions. In a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instructions stored in the storage medium are executed by the processor, the following process can be implemented: Acquire, from a first platform on which the target strategy is run before migration, first link data generated during the operation of a first service adopting the target strategy; Acquire, from a second platform on which the target policy is run after migration, second link data generated during the operation of a second service adopting the target policy, where the first service and the second service have the same service type; Extracting first execution results corresponding to different levels in the hierarchical structure constituting the target policy from the first link data, and extracting second execution results corresponding to different levels in the hierarchical structure from the second link data; A comparison operation is performed on the first execution result and the second execution result at the same level to obtain a comparison result, and a migration effect of the target strategy is determined according to the comparison results at different levels.

[0094] It should be noted that the embodiment of the storage medium in this specification and the method for obtaining the policy migration effect in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding method for obtaining the policy migration effect mentioned above, and the repeated parts will not be repeated.

[0095] Furthermore, corresponding to the method for obtaining the effect of policy migration described above, based on the same technical concept, one or more embodiments of this specification further provide a computer program product, the computer program product including a computer program, which can implement the following process when executed by a processor: Acquire, from a first platform on which the target strategy is run before migration, first link data generated during the operation of a first service adopting the target strategy; Acquire, from a second platform on which the target policy is run after migration, second link data generated during the operation of a second service adopting the target policy, where the first service and the second service have the same service type; Extracting first execution results corresponding to different levels in the hierarchical structure constituting the target policy from the first link data, and extracting second execution results corresponding to different levels in the hierarchical structure from the second link data; A comparison operation is performed on the first execution result and the second execution result at the same level to obtain a comparison result, and a migration effect of the target strategy is determined according to the comparison results at different levels.

[0096] It should be noted that the embodiment of the computer program product in this specification and the embodiment of the method for obtaining the effect of policy migration in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding method for obtaining the effect of policy migration mentioned above, and the repeated parts will not be repeated.

[0097] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0098] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0099] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.

[0100] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0101] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0102] It should be understood by those skilled in the art that one or more embodiments of the present specification may be provided as a method, system or computer program product. Therefore, one or more embodiments of the present specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0103] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0104] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0105] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0106] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0107] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0108] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0109] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0110] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0111] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0112] The above description is only an embodiment of this document and is not intended to limit this document. For those skilled in the art, this document may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document should be included in the scope of the claims of this document.

Claims

1. A method for obtaining a policy migration effect, comprising: Acquire, from a first platform on which the target strategy is run before migration, first link data generated during the operation of a first service adopting the target strategy; Acquire, from a second platform on which the target policy is run after migration, second link data generated during the operation of a second service adopting the target policy, where the first service and the second service have the same service type; Extracting first execution results corresponding to different levels in the hierarchical structure constituting the target policy from the first link data, and extracting second execution results corresponding to different levels in the hierarchical structure from the second link data; A comparison operation is performed on the first execution result and the second execution result at the same level to obtain a comparison result, and the migration effect of the target strategy is determined according to the comparison results at different levels.

2. The method according to claim 1, wherein extracting first execution results corresponding to different levels in the hierarchical structure constituting the target policy from the first link data, and extracting second execution results corresponding to different levels in the hierarchical structure from the second link data comprises: Determine a first comparison subject of a target level in the hierarchical structure from the first link data, and determine a second comparison subject of the target level from the second link data; Determining the first execution result from the first link data based on the first comparison object included in the first comparison subject; Based on the second comparison object included in the second comparison subject, the second execution result is determined from the second link data.

3. The method according to claim 2, wherein the hierarchical structure comprises a policy layer, a rule layer and a condition layer, and the step of determining a first comparison subject of a target layer in the hierarchical structure from the first link data and determining a second comparison subject of the target layer from the second link data comprises: In the case where the target layer is a policy layer, a first comparison subject of the first service at the policy layer is determined according to an identifier of the first service and an identifier of a policy corresponding to the first service at the policy layer, and a second comparison subject of the second service at the policy layer is determined according to an identifier of the second service and an identifier of a policy corresponding to the second service at the policy layer; In the case where the target layer is the rule layer, a first comparison subject of the first business at the rule layer is determined according to the identifier of the first business, the identifier of the policy corresponding to the first business at the policy layer, and the identifier of the rule corresponding to the first business at the rule layer; and a second comparison subject of the second business at the rule layer is determined according to the identifier of the second business, the identifier of the policy corresponding to the second business at the policy layer, and the identifier of the rule corresponding to the second business at the rule layer; When the target layer is a conditional layer, the first comparison subject of the first business at the conditional layer is determined according to the identification of the first business, the identification of the policy corresponding to the first business at the policy layer, the identification of the rule corresponding to the first business at the rule layer, and the identification of the condition corresponding to the first business at the conditional layer; the second comparison subject of the second business at the conditional layer is determined according to the identification of the second business, the identification of the policy corresponding to the second business at the policy layer, the identification of the rule corresponding to the second business at the rule layer, and the identification of the condition corresponding to the second business at the conditional layer.

4. According to the method of claim 1, the step of comparing the first execution result and the second execution result at the same level to obtain the comparison result comprises: Determine, from each level of the hierarchical structure, a plurality of association relationship groups including a first execution result and a second execution result, wherein in the same association relationship group, a first comparison subject of the first execution result and a second comparison subject of the second execution result are the same; A comparison operation is performed on the first execution result and the second execution result in the association relationship group to obtain the comparison result.

5. The method according to claim 4, before determining a plurality of association relationship groups including the first execution result and the second execution result from each level of the hierarchical structure, the method comprises: Based on the first mapping relationship of the first comparison subject, a conversion operation is performed on the identifier of the first comparison subject in the first execution result to obtain a converted first execution result; Based on the second mapping relationship of the second comparison subject, a conversion operation is performed on the identifier of the second comparison subject in the second execution result to obtain a converted second execution result.

6. The method according to claim 2, wherein the comparison result includes a comparison success and a comparison failure, and the step of determining the migration effect of the target strategy according to the comparison results at different levels includes: In the case where there is no comparison failure in the comparison results at different levels, the migration effect of the target strategy is in line with expectations; In the case where there is a comparison failure among the comparison results at different levels, the migration effect of the target strategy does not meet expectations.

7. The method according to claim 6, further comprising: When there is a comparison result of a failed comparison at the target level and there is a next level at the target level, obtaining the comparison result of the next level; According to the comparison result of the next level, a first reason why there is a comparison failure in the target level is determined, and according to the first reason, the migration effect is supplemented to obtain a supplemented migration effect.

8. The method according to claim 6, further comprising: When there is a comparison result with failed comparison in the target level and there is an upper level in the target level, the comparison result with failed comparison in the target level corresponding to the comparison result in the upper level is set as comparison failure; The comparison result of the target level is used as the second reason for the comparison result of the previous level that failed to compare, and the migration effect is supplemented according to the second reason to obtain the supplemented migration effect.

9. A device for obtaining a policy migration effect, comprising: A first link module, used to obtain, from a first platform on which the target strategy is run before migration, first link data generated during the operation of a first service adopting the target strategy; A second link module, used to obtain second link data generated during the operation of a second service adopting the target policy from a second platform on which the target policy is operated after migration, wherein the first service and the second service have the same service type; An execution result module, used to extract first execution results corresponding to different levels in the hierarchical structure constituting the target policy from the first link data, and to extract second execution results corresponding to different levels in the hierarchical structure from the second link data; The migration effect module is used to compare the first execution result and the second execution result at the same level to obtain a comparison result, and determine the migration effect of the target strategy according to the comparison results at different levels.

10. An electronic device comprising: processor, and a memory arranged to store computer executable instructions which, when executed, cause the processor to: Acquire, from a first platform on which the target strategy is run before migration, first link data generated during the operation of a first service adopting the target strategy; Acquire, from a second platform on which the target policy is run after migration, second link data generated during the operation of a second service adopting the target policy, where the first service and the second service have the same service type; Extracting first execution results corresponding to different levels in the hierarchical structure constituting the target policy from the first link data, and extracting second execution results corresponding to different levels in the hierarchical structure from the second link data; A comparison operation is performed on the first execution result and the second execution result at the same level to obtain a comparison result, and the migration effect of the target strategy is determined according to the comparison results at different levels.