CN114840597A - Component parameter format conversion method, device, equipment and storage medium - Google Patents

Component parameter format conversion method, device, equipment and storage medium Download PDF

Info

Publication number
CN114840597A
CN114840597A CN202210776449.1A CN202210776449A CN114840597A CN 114840597 A CN114840597 A CN 114840597A CN 202210776449 A CN202210776449 A CN 202210776449A CN 114840597 A CN114840597 A CN 114840597A
Authority
CN
China
Prior art keywords
format conversion
data
converted
target
format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210776449.1A
Other languages
Chinese (zh)
Other versions
CN114840597B (en
Inventor
孟凤娟
刘博�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
DBAPPSecurity Co Ltd
Original Assignee
DBAPPSecurity Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by DBAPPSecurity Co Ltd filed Critical DBAPPSecurity Co Ltd
Priority to CN202210776449.1A priority Critical patent/CN114840597B/en
Publication of CN114840597A publication Critical patent/CN114840597A/en
Application granted granted Critical
Publication of CN114840597B publication Critical patent/CN114840597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a component parameter format conversion method, a device, equipment and a storage medium, which relate to the technical field of data format conversion and comprise the following steps: acquiring a data list output by an upstream target component; extracting data to be converted from the data list; and carrying out format conversion on the data to be converted according to a preset target format conversion method to obtain the target format data after the format conversion. According to the method and the device, the data list output by the upstream target component is obtained, format conversion is carried out on the data to be converted extracted from the data list according to a pre-configured format conversion method, and therefore the target format data after format conversion is obtained, the unification of the context data transmission format of the component is achieved, the problem that a user writes a script is solved, the time for the user to write the format conversion script is saved, and the technical requirements on the user are reduced.

Description

Component parameter format conversion method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data format conversion technologies, and in particular, to a method, an apparatus, a device, and a storage medium for converting a component parameter format.
Background
Currently, since the SOAR (Security organization, Automation and Response) component can interface with devices of various manufacturers, but the product of each manufacturer is directed to fields with the same meaning, the data format is not standard, which results in that when context data is transferred, the output of the upstream device cannot be used as the input of the downstream device due to the problem of the data format. When the next component participates in the process, if the input of the component cannot correspond to the output format of the selected other component, a data format script can be written to process the data, so that a new value is assembled and output, the input of the component corresponds to the output format of the selected other component, and the new value is taken as the input parameter of the component.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus, a device and a storage medium for converting a format of a component parameter, which can implement unification of a context data transmission format of a component and solve a problem of writing a script by a user, thereby saving time for writing the format conversion script by the user and reducing a technical requirement for the user. The specific scheme is as follows:
in a first aspect, the present application discloses a component parameter format conversion method, including:
acquiring a data list output by an upstream target component;
extracting data to be converted from the data list;
and carrying out format conversion on the data to be converted according to a preset target format conversion method to obtain the target format data after the format conversion.
Optionally, the obtaining a data list output by the upstream target component includes:
and acquiring a data list in json format output by the upstream target component.
Optionally, the extracting data to be converted from the data list includes:
and filtering the data in the data list to obtain a filtered list, and extracting the data to be converted from the filtered list.
Optionally, the filtering the data in the data list to obtain a filtered list includes:
setting a filtering rule for filtering data;
and filtering the data in the data list according to the filtering rule to obtain a filtered list.
Optionally, the extracting data to be converted from the filtered list includes:
extracting a numerical value corresponding to the data to be converted from the filtered list to obtain a numerical value set to be converted;
correspondingly, the performing format conversion on the data to be converted according to a preconfigured target format conversion method to obtain format-converted target format data includes:
and carrying out format conversion on each numerical value in the numerical value set to be converted according to a preset format conversion method to obtain a target format numerical value set after format conversion.
Optionally, before performing format conversion on the data to be converted according to a preconfigured target format conversion method to obtain format-converted target format data, the method further includes:
creating a method library containing format conversion methods;
and configuring the target format conversion method based on the format conversion method which is selected from the method library and corresponds to the current target format to be converted.
Optionally, the configuring the target format conversion method based on the format conversion method selected from the method library and corresponding to the current target format to be converted includes:
determining an execution sequence among format conversion methods selected from the method library;
and configuring a target format conversion method according to each format conversion method configured to be involved and the execution sequence.
In a second aspect, the present application discloses a device for converting component parameter format, comprising:
the list acquisition module is used for acquiring a data list output by the upstream target component;
the data extraction module is used for extracting data to be converted from the data list;
and the format conversion module is used for carrying out format conversion on the data to be converted according to a preset target format conversion method to obtain target format data after the format conversion.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the component parameter format conversion method disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the component parameter format conversion method disclosed in the foregoing.
Therefore, the application provides a component parameter format conversion method, which comprises the following steps: acquiring a data list output by an upstream target component; extracting data to be converted from the data list; and carrying out format conversion on the data to be converted according to a preset target format conversion method to obtain the target format data after the format conversion. Therefore, the data list output by the upstream target component is obtained, format conversion is carried out on the data to be converted extracted from the data list according to the pre-configured format conversion method, the target format data after format conversion is obtained, the unification of the context data transmission formats of the components is realized, the problem that a user writes a script is solved, the time for the user to write the format conversion script is saved, and the technical requirements on the user are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a component parameter format conversion method disclosed herein;
FIG. 2 is a schematic illustration of a configuration format conversion method disclosed herein;
FIG. 3 is a flow chart of a specific component parameter format conversion method disclosed herein;
FIG. 4 is a flow chart of another specific component parameter format conversion method disclosed herein;
FIG. 5 is a flow chart of a specific component parameter format conversion method disclosed herein;
FIG. 6 is a schematic diagram of a component parameter format conversion apparatus disclosed in the present application;
fig. 7 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Currently, since the SOAR component interfaces with devices of various manufacturers, but the device product of each manufacturer is directed to fields with the same meaning, the data format is not standard, which results in that when context data is transferred, the device output at the upstream cannot be used as the device input at the downstream due to the problem of the data format. Therefore, the application provides a component parameter format conversion scheme, which can realize the unification of the context data transmission formats of the SOAR components and solve the problem of script writing by a user, thereby saving the time for writing the format conversion script by the user and reducing the technical requirements on the user.
The embodiment of the invention discloses a component parameter format conversion method, which comprises the following steps of:
step S11: and acquiring a data list output by the upstream target component.
In this embodiment, a data list output by the upstream target component is obtained, specifically, a data list in json format output by the upstream target component is obtained. It can be understood that, when the upstream target component outputs the data list, the data list may be output according to a preset target format, that is, the upstream target component outputs the data list in the preset target format. For example, the content of the upstream component output parameter is typically json' list. And then acquiring the list of json output by the upstream target component. Wherein the upstream target component may generally be an SOAR component.
Step S12: and extracting data to be converted from the data list.
In this embodiment, the data list output by the upstream target component contains more field data, and the data to be converted can be extracted from the data list output by the upstream target component.
Step S13: and carrying out format conversion on the data to be converted according to a preset target format conversion method to obtain the target format data after the format conversion.
In this embodiment, format conversion is performed on the data to be converted according to a preconfigured target format conversion method, so as to obtain target format data after format conversion. It can be understood that a target format conversion method of a target format to be converted is configured in advance, and then format conversion is performed on data to be converted according to the target format conversion method, so that format-converted target format data corresponding to the data to be converted can be obtained. For example, if the preconfigured target format conversion method is Base64Decode (), a decoding result of Base64 of the data to be converted is obtained; if the pre-configured target format conversion method is Base64Decode (), obtaining the encoding result of Base64 of the data to be converted; if the pre-configured target format conversion method is URL decode (), obtaining a decoding result of a Uniform Resource Locator (URL) of data to be converted; if the pre-configured target format conversion method is urlEncode (), obtaining the URL coding result of the data to be converted; if the pre-configured target format conversion method is concat (), obtaining the result of adding prefixes and suffixes to the data to be converted; if the pre-configured target format conversion method is cut (), obtaining a result of reassembling the required data after the data to be converted is cut according to the separators; if the pre-configured target format conversion method is length (), obtaining a character length result of the data to be converted; if the pre-configured target format conversion method is parseMap (), converting the json character string corresponding to the data to be converted into a json object; if the pre-configured target format conversion method is regexGroups (), extracting group members according to the regular expression, and putting the members in a list to return; if the pre-configured target format conversion method is place (), replacing the target character string; and if the pre-configured target format conversion method is split () the character string is split into a plurality of character strings according to the separators.
In this embodiment, before performing format conversion on the data to be converted according to a preconfigured target format conversion method to obtain format-converted target format data, the method further includes: creating a method library containing format conversion methods; and configuring the target format conversion method based on the format conversion method which is selected from the method library and corresponds to the current target format to be converted. It is understood that the format conversion method corresponding to the current target format to be converted is selected from the method library, and the selected format conversion method may be one or more format conversion methods, for example, a character string de-spacing method and an additional character string method are selected from the method library. Then determining the execution sequence among the format conversion methods selected from the method library; and then configuring a target format conversion method according to each format conversion method configured to be involved and the execution sequence. As shown in fig. 2, the format conversion method of concat () is selected, and the entries for the concat () are configured, that is, the character string "19" is added to the prefix of the data to be converted, and the character string "/24" is added to the suffix of the data to be converted. It is noted that the format conversion methods in the created method library may include, but are not limited to, methods of character string de-spacing, character string conversion capitalization or lowercase, additional character strings, and the like. The method comprises the steps of selecting a format conversion method from a method library and configuring parameters of the format conversion method to be visual, and realizing visualization of a data format conversion interface.
In this embodiment, format conversion is performed on the data to be converted according to a preconfigured target format conversion method, and after the target format data after format conversion is obtained, the target format data is transmitted to a downstream target component as an input parameter.
Therefore, the data list output by the upstream target component is obtained, format conversion is carried out on the data to be converted extracted from the data list according to the pre-configured format conversion method, the target format data after format conversion is obtained, the unification of the context data transmission formats of the components is achieved, the problem that a user writes a script is solved, the time for the user to write the format conversion script is saved, and the technical requirements on the user are reduced.
Referring to fig. 3, the embodiment of the present invention discloses a specific component parameter format conversion method, and compared with the previous embodiment, the embodiment further describes and optimizes the technical solution.
Step S21: and acquiring a data list output by the upstream target component.
Step S22: and filtering the data in the data list to obtain a filtered list, and extracting the data to be converted from the filtered list.
In this embodiment, after the data list output by the upstream target component is acquired, the data in the data list is filtered to obtain a filtered list. Specifically, a filtering rule for filtering data is set; and filtering the data in the data list according to the filtering rule to obtain a filtered list. It can be understood that some data in the data list is filtered according to the set filtering rule, so as to obtain a filtered list satisfying the condition. For example, the data in the data list is filtered using filtering relationship operators, where the filtering relationship operators may include, but are not limited to, equal to, greater than, less than, regular match, whether in a list, contained, and the like.
In this embodiment, after the data in the data list is filtered to obtain a filtered list, the data to be converted is extracted from the filtered list, that is, the data of which the format is to be converted is extracted from the filtered list.
Step S23: and carrying out format conversion on the data to be converted according to a preset target format conversion method to obtain the target format data after the format conversion.
For the details of the step S21 and the step S23, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated herein.
Therefore, the data list output by the upstream target component is obtained, the data in the data list is filtered to obtain the filtered list, and then the format conversion is performed on the data to be converted extracted from the filtered list according to the pre-configured format conversion method, so that the target format data after the format conversion is obtained, the unification of the context data transmission formats of the components is realized, the problem of script writing by a user is solved, the time for the user to write the format conversion script is saved, and the technical requirements on the user are reduced.
Referring to fig. 4, the embodiment of the present invention discloses a specific component parameter format conversion method, and compared with the previous embodiment, the embodiment further describes and optimizes the technical solution.
Step S31: and acquiring a data list output by the upstream target component.
Step S32: and filtering the data in the data list to obtain a filtered list.
Step S33: and extracting the numerical value corresponding to the field to be converted from the filtered list to obtain a value set to be converted.
In this embodiment, the data in the filtered list exists in the form of fields, and each field corresponds to a corresponding numerical value, so that the numerical value corresponding to the field to be converted can be directly extracted from the filtered list, and a to-be-converted value set formed by the extracted numerical values corresponding to the field to be converted is obtained.
Step S34: and carrying out format conversion on each numerical value in the numerical value set to be converted according to a preset format conversion method to obtain a target format numerical value set after format conversion.
In this embodiment, the numerical values corresponding to the fields to be converted are extracted from the filtered list, and a to-be-converted value set formed by the numerical values corresponding to the extracted to-be-converted numerical values is obtained, so that format conversion is performed on each numerical value in the to-be-converted value set according to a pre-configured format conversion method, and a target format value set after format conversion is obtained. That is to say, after format conversion is performed on the numerical value corresponding to the field to be converted according to a pre-configured format conversion method, a target format field corresponding to the field to be converted can be obtained, and after format conversion is performed on each numerical value in the numerical value set to be converted, a target format numerical value set corresponding to the numerical value set to be converted is obtained.
As shown in fig. 5, taking blocking IP by a linked firewall as an example, so that the component output parameter includes IP, and blocking a network segment of a subnet mask of the IP obtained after modifying the IP, the specific process includes: the get component outputs a List of json, for example:
[ { "intk":1, "strk": 1.1.1.1"}, {" intk ":2," strk ": 2.1.1" }, { "intk":3, "strk": 3.1.1.1"} ], then it is determined that the filtering relation operator is greater than, a filtering rule that intk is greater than 1 is set based on the filtering relation operator, the List of json output by the obtained component is filtered according to the filtering rule, i.e., the fields of {" intk ":1," strk ": 1.1.1" }, { "intk":2, "strk": 2.1.1 "}, {" intk ":3," strk ": 3.1.1" } ] are filtered, resulting in the List of json satisfying the condition: [ { "intk":2, "strk": 2.1.1.1"}, {" intk ":3," strk ": 3.1.1.1" } ], and further extract the numerical value of the field to be converted from the List of json that satisfies the condition, to obtain the corresponding numerical value set of [ "2.1.1.1", "3.1.1.1" ], then perform format conversion on each numerical value in the numerical value set according to a preconfigured target format method, specifically, first select the format conversion method corresponding to the current target format to be converted from the method library, for example, select a method of deleting empty characters and a method of adding prefix and suffix to character strings, i.e., fun1: trim () and fun2: concat (), then determine the execution sequence of the selected format conversion method, and configure the entry parameters of each method as described above in fig. 2, to obtain fun2: con ("19", "/24"), that is to add "19" to the prefix of the numerical value to be converted character string ",19", and adding a character string '/24' to the suffix, wherein the setting of the target format conversion method is completed by configuring the entry parameter of the format conversion method and determining the execution sequence corresponding to the format conversion method, so that each numerical value in the numerical value sets of [ '2.1.1.1', '3.1.1' ] is subjected to format conversion according to the target format conversion method to obtain the subnet mask set of [ '192.1.1.1/24', '193.1.1.1/24' ], and the subnet mask set is used as the entry parameter of the firewall to perform IP blocking, namely, the IP sets of the network segments 192.1.1.1/24 and 193.1.1.1/24 are blocked. The content of the component output parameter in this embodiment is generally a json List, and by obtaining (GET) data, performing conditional filtering (Filter) on the data, and then performing conversion (Transform) on the data by using various format conversion methods, target format data is obtained, and the target format data is used as a reference of a subsequent component, so that the uniformity of the transfer format of the context data of the SOAR component is realized.
For the details of the above steps S31 to S32, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Therefore, the data list output by the upstream target component is obtained, the data in the data list is filtered to obtain the filtered list, and then the format conversion is performed on the numerical value corresponding to the field to be converted extracted from the filtered list according to the preset format conversion method, so that the target format data after the format conversion is obtained, the unification of the context data transmission formats of the components is realized, the problem of script writing of a user is solved, the time of writing the format conversion script of the user is saved, and the technical requirements on the user are reduced.
Correspondingly, the embodiment of the present application further discloses a device for converting component parameter format, as shown in fig. 6, the device includes:
a list obtaining module 11, configured to obtain a data list output by an upstream target component;
a data extraction module 12, configured to extract data to be converted from the data list;
and the format conversion module 13 is configured to perform format conversion on the data to be converted according to a preconfigured target format conversion method, so as to obtain target format data after format conversion.
As can be seen from the above, in the embodiment of the present application, a data list output by an upstream target component is obtained, and then format conversion is performed on data to be converted extracted from the data list according to a pre-configured format conversion method, so as to obtain format-converted target format data, thereby realizing unification of the context data transfer formats of the components, and solving the problem of script writing by a user, thereby saving time for the user to write a format conversion script, and reducing technical requirements for the user.
In some specific embodiments, the list obtaining module 11 may specifically include:
and the list acquisition unit is used for acquiring a data list of json format output by the upstream target component.
In some specific embodiments, the data extraction module 12 may specifically include:
the first data filtering unit is used for filtering data in the data list to obtain a filtered list;
and the first data extraction unit is used for extracting the data to be converted from the filtered list.
In some specific embodiments, the first data filtering unit may specifically include:
a filtering rule setting unit for setting a filtering rule for filtering data;
and the second data filtering unit is used for filtering the data in the data list according to the filtering rule to obtain a filtered list.
In some specific embodiments, the first data extracting unit may specifically include:
the second numerical value extraction unit is used for extracting the numerical value corresponding to the field to be converted from the filtered list to obtain a value set to be converted;
in some specific embodiments, the format conversion module 13 may specifically include:
and the format conversion unit is used for carrying out format conversion on each numerical value in the numerical value set to be converted according to a preset format conversion method to obtain a target format numerical value set after the format conversion.
In some specific embodiments, the component parameter format conversion apparatus may further include:
a method library creating module for creating a method library containing format conversion methods;
and the method configuration module is used for configuring the target format conversion method based on the format conversion method which is selected from the method library and corresponds to the current target format to be converted.
In some specific embodiments, the method configuring module may specifically include:
an execution sequence determining unit for determining an execution sequence between the format conversion methods selected from the method library;
and the method configuration unit is used for configuring a target format conversion method according to each format conversion method configured to be involved and the execution sequence.
Furthermore, the embodiment of the application also provides electronic equipment. FIG. 7 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and the contents of the diagram should not be construed as limiting the scope of use of the present application in any way.
Fig. 7 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the component parameter format conversion method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage manner may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, Netware, Unix, Linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the component parameter format conversion method disclosed in any of the foregoing embodiments and executed by the electronic device 20.
Further, an embodiment of the present application further discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the method for converting a component parameter format disclosed in any of the foregoing embodiments is implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above details of the component parameter format conversion method, apparatus, device and storage medium provided by the present invention, and the specific examples are applied herein to explain the principle and implementation of the present invention, and the descriptions of the above examples are only used to help understand the method and core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A component parameter format conversion method, comprising:
acquiring a data list output by an upstream target component;
extracting data to be converted from the data list;
and carrying out format conversion on the data to be converted according to a preset target format conversion method to obtain the target format data after the format conversion.
2. The component parameter format conversion method according to claim 1, wherein the obtaining of the data list output by the upstream target component comprises:
and acquiring a data list in json format output by the upstream target component.
3. The component parameter format conversion method according to claim 1, wherein the extracting data to be converted from the data list includes:
and filtering the data in the data list to obtain a filtered list, and extracting the data to be converted from the filtered list.
4. The method according to claim 3, wherein the filtering the data in the data list to obtain a filtered list comprises:
setting a filtering rule for filtering data;
and filtering the data in the data list according to the filtering rule to obtain a filtered list.
5. The component parameter format conversion method according to claim 3, wherein the extracting data to be converted from the filtered list includes:
extracting the numerical value corresponding to the field to be converted from the filtered list to obtain a value set to be converted;
correspondingly, the performing format conversion on the data to be converted according to a preconfigured target format conversion method to obtain format-converted target format data includes:
and carrying out format conversion on each numerical value in the numerical value set to be converted according to a preset format conversion method to obtain a target format numerical value set after format conversion.
6. The component parameter format conversion method according to any one of claims 1 to 5, wherein before performing format conversion on the data to be converted according to a preconfigured target format conversion method to obtain format-converted target format data, the method further includes:
creating a method library containing format conversion methods;
and configuring the target format conversion method based on the format conversion method which is selected from the method library and corresponds to the current target format to be converted.
7. The component parameter format conversion method according to claim 6, wherein the configuring the target format conversion method based on the format conversion method selected from the method library and corresponding to the target format to be currently converted includes:
determining an execution sequence among format conversion methods selected from the method library;
and configuring a target format conversion method according to each format conversion method configured to be involved and the execution sequence.
8. A component parameter format conversion apparatus, comprising:
the list acquisition module is used for acquiring a data list output by the upstream target component;
the data extraction module is used for extracting data to be converted from the data list;
and the format conversion module is used for carrying out format conversion on the data to be converted according to a preset target format conversion method to obtain target format data after the format conversion.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the component parameter format conversion method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the component parameter format conversion method of any of claims 1 to 7.
CN202210776449.1A 2022-07-04 2022-07-04 Component parameter format conversion method, device, equipment and storage medium Active CN114840597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210776449.1A CN114840597B (en) 2022-07-04 2022-07-04 Component parameter format conversion method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210776449.1A CN114840597B (en) 2022-07-04 2022-07-04 Component parameter format conversion method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114840597A true CN114840597A (en) 2022-08-02
CN114840597B CN114840597B (en) 2023-03-14

Family

ID=82574418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210776449.1A Active CN114840597B (en) 2022-07-04 2022-07-04 Component parameter format conversion method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114840597B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201304914D0 (en) * 2013-03-18 2013-05-01 Rapid Addition Ltd Transactional message format data conversion
WO2018076815A1 (en) * 2016-10-28 2018-05-03 宁德时代新能源科技股份有限公司 Format conversion method and system
CN108052474A (en) * 2018-01-02 2018-05-18 上海壹账通金融科技有限公司 Conversion method of data format, device, equipment and computer readable storage medium
CN109710863A (en) * 2018-11-27 2019-05-03 平安科技(深圳)有限公司 Information conversion method, device, computer equipment and storage medium
CN110457256A (en) * 2019-08-01 2019-11-15 大众问问(北京)信息科技有限公司 Date storage method, device, computer equipment and storage medium
CN110515894A (en) * 2019-08-02 2019-11-29 济南浪潮数据技术有限公司 Data format conversion method, device, equipment and readable storage medium
CN110659028A (en) * 2019-09-30 2020-01-07 北京达佳互联信息技术有限公司 Data processing system, method, device, electronic equipment and storage medium
CN110781230A (en) * 2019-09-12 2020-02-11 腾讯大地通途(北京)科技有限公司 Data access method, device and equipment
CN111651314A (en) * 2019-03-04 2020-09-11 北京奇虎科技有限公司 Cloud-based Promethus rule file management method and device
CN113419727A (en) * 2021-06-22 2021-09-21 之江实验室 Method and system for converting deep learning training process data into visual data
CN113486939A (en) * 2021-06-30 2021-10-08 平安证券股份有限公司 Method, device, terminal and storage medium for processing pictures
CN114661746A (en) * 2022-02-28 2022-06-24 北京达佳互联信息技术有限公司 Statement conversion method and device, electronic equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201304914D0 (en) * 2013-03-18 2013-05-01 Rapid Addition Ltd Transactional message format data conversion
WO2018076815A1 (en) * 2016-10-28 2018-05-03 宁德时代新能源科技股份有限公司 Format conversion method and system
CN108052474A (en) * 2018-01-02 2018-05-18 上海壹账通金融科技有限公司 Conversion method of data format, device, equipment and computer readable storage medium
CN109710863A (en) * 2018-11-27 2019-05-03 平安科技(深圳)有限公司 Information conversion method, device, computer equipment and storage medium
CN111651314A (en) * 2019-03-04 2020-09-11 北京奇虎科技有限公司 Cloud-based Promethus rule file management method and device
CN110457256A (en) * 2019-08-01 2019-11-15 大众问问(北京)信息科技有限公司 Date storage method, device, computer equipment and storage medium
CN110515894A (en) * 2019-08-02 2019-11-29 济南浪潮数据技术有限公司 Data format conversion method, device, equipment and readable storage medium
CN110781230A (en) * 2019-09-12 2020-02-11 腾讯大地通途(北京)科技有限公司 Data access method, device and equipment
CN110659028A (en) * 2019-09-30 2020-01-07 北京达佳互联信息技术有限公司 Data processing system, method, device, electronic equipment and storage medium
CN113419727A (en) * 2021-06-22 2021-09-21 之江实验室 Method and system for converting deep learning training process data into visual data
CN113486939A (en) * 2021-06-30 2021-10-08 平安证券股份有限公司 Method, device, terminal and storage medium for processing pictures
CN114661746A (en) * 2022-02-28 2022-06-24 北京达佳互联信息技术有限公司 Statement conversion method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
M. OWEN等: ""10-Gbits/s all-optical 3R regeneration and format conversion using a gain-switched DFB laser"", 《CONFERENCE ON LASERS AND ELECTRO-OPTICS (CLEO 2000). TECHNICAL DIGEST. POSTCONFERENCE EDITION. TOPS VOL.39 (IEEE CAT. NO.00CH37088)》 *
田劲松等: ""基于组件技术的 GIS 数据格式转换方法"", 《测绘技术装备》 *

Also Published As

Publication number Publication date
CN114840597B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
US9059895B2 (en) Configurable network management system event processing using simple network management table indices
EP2458499A1 (en) Method and equipment for generating widget
US20190050376A1 (en) Automatic value formatting based on intrinsic structural semantics
CN111090417A (en) Binary file analysis method, device, equipment and medium
US20220138074A1 (en) Method, electronic device and computer program product for processing data
WO2020123692A2 (en) Internet of things system topology generation
CN113268955A (en) Message conversion method and device
CN104267921A (en) Page display control method and server
CN115329170A (en) Webpage crawling method, device, equipment and storage medium
CN114840597B (en) Component parameter format conversion method, device, equipment and storage medium
CN110377888B (en) HTML-based manuscript auditing editor real-time trace marking method and device
CN111597112A (en) Automatic test method and device and electronic equipment
CN111124530A (en) Method and device for calculating first rendering time of browser, browser and storage medium
US10409573B1 (en) Batch script decomposer
CN113453371B (en) Method, base station, and computer storage medium for wireless communication
CN113778543B (en) Page content updating method and device applied to plug-in
CN114860240A (en) Low-code page creating method, device, equipment and medium
CN109359384B (en) Method and device for calling silk-screen mark into printed circuit board
CN115063123A (en) Intelligent manufacturing method and system and electronic equipment
CN116384345A (en) Data format conversion method, device, equipment and medium
CN110297647A (en) A kind of front end engineering updates the method and terminal of npm packet
CN110516263A (en) A kind of text interpretation method and device
CN112925573B (en) Method, device, equipment and computer readable medium for loading web page
US20230289237A1 (en) Automated nesting of existing stacks in a root stack within an aws environment
CN109388536B (en) Data collection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant