CN116128349A - Index service configuration and application method, computer device and computer readable storage medium - Google Patents

Index service configuration and application method, computer device and computer readable storage medium Download PDF

Info

Publication number
CN116128349A
CN116128349A CN202310004364.6A CN202310004364A CN116128349A CN 116128349 A CN116128349 A CN 116128349A CN 202310004364 A CN202310004364 A CN 202310004364A CN 116128349 A CN116128349 A CN 116128349A
Authority
CN
China
Prior art keywords
index
service
index service
new
new index
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.)
Pending
Application number
CN202310004364.6A
Other languages
Chinese (zh)
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.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software 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 Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN202310004364.6A priority Critical patent/CN116128349A/en
Publication of CN116128349A publication Critical patent/CN116128349A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06393Score-carding, benchmarking or key performance indicator [KPI] analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Educational Administration (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an index service configuration and application method, a computer device and a computer readable storage medium, wherein the method comprises the steps of obtaining index configuration information, adding new indexes into an index system, and setting columns of the new indexes; according to the new index, adding new index service according to the application scene, establishing a mapping relation between the new index and the new index service, and setting columns of the new index service; testing and verifying the newly added index service, and if the newly added index service passes the verification, releasing the newly added index service; when the trigger condition of the new index service is met, acquiring an index value corresponding to the new index according to the new index service, and returning an execution result. The invention also provides a computer device for realizing the method and a computer readable storage medium. The invention can support the online configuration mode of the index service, realize the visual configuration of the index service by service personnel, and apply the index service to specific service scenes.

Description

Index service configuration and application method, computer device and computer readable storage medium
Technical Field
The invention relates to the technical field of index service processing, in particular to a method for configuring and applying index service, and also relates to a computer device and a computer readable storage medium for realizing the method.
Background
In daily management of enterprises, various indexes are often required, for example, when certain data is to be counted, classification statistics are required according to the generation time, generation mode and the like of the data, wherein the generation time, the generation mode of the data are the indexes of statistics. The traditional data statistics mode is to carry out statistics according to scattered single software programs, and the processing modes of different software on data are different, so that the statistics caliber between different indexes is inconsistent, and the data statistics is inaccurate.
In addition, in order to reveal the potential reasons of the business risks and early warning of the risks in the business scene, the business data and the business processes of the enterprise are required to be brought into a supervision range, in order to liberate supervision staff from the scene, the supervision cost is reduced, the accuracy of the business operation is improved, the control rules are required to be permeated into a key business chain by relying on an informatization platform, the situation that the business operation is not legal is found to be controlled timely and early warning is required timely, and the potential risks of the business data and the compliance operation problem of the business processes are eliminated.
In order to facilitate statistics of indexes, the index service is used for managing various indexes, and particularly, the statistics caliber of various indexes is unified through the index service, which is very important for data statistics. In the current index service application scenario, the index service can only be developed by codes in advance and is built in a business system, and generally, the index service needs to be predefined. Because the actual service scene is continuously changed, but the preset index service cannot meet the service scene which is changed in real time, when different scenes appear, the service index service needs are collected by operators, and the index service in the service system is continuously updated to meet the requirements of the service scene. Therefore, the existing index service needs to maintain and update the index service in the business system continuously, the maintenance process needs to continuously input manpower and time, and the process cost of the index service is high.
Disclosure of Invention
A first object of the present invention is to provide an index service configuration and application method that is convenient to maintain and has low process cost.
The second object of the present invention is to provide a computer device for implementing the above-mentioned running device index service configuration and application method.
A third object of the present invention is to provide a computer readable storage medium for implementing the above-mentioned running device index service configuration and application method.
In order to achieve the main purpose of the invention, the index service configuration and application method provided by the invention comprises the steps of obtaining index configuration information, adding new indexes into an index system, and setting columns of the new indexes; according to the new index, adding new index service according to the application scene, establishing a mapping relation between the new index and the new index service, and setting columns of the new index service; testing and verifying the newly added index service, and if the newly added index service passes the verification, releasing the newly added index service; when the trigger condition of the new index service is met, acquiring an index value corresponding to the new index according to the new index service, and returning an execution result.
According to the scheme, the visual configuration of the index service by the service personnel is realized by supporting the online configuration of the index service, and the index service is applied to a specific service scene, so that the index service is adapted to the application scene, and thus, the index service can respond to the scene change at any time, the application range and efficiency of the index service in the scene are improved, and the maintenance cost of the index service in the application scene is reduced.
In addition, the invention connects the index service with the application scene, the business scene can configure the application index service in the production environment, and the hot deployment of the index service is realized, so that the configuration of the index service is more convenient, and the process cost is lower. In addition, the index service is configured and applied online, the delivery period of the service requirement is shortened, and the agile change of the application system is realized.
In a preferred scheme, the step of meeting the service triggering condition of the new indicator comprises the following steps: the service caller performs the newly added index service access.
Therefore, when the service calling party calls the newly added index service to access, the newly added index service triggering condition is considered to be met, and the newly added index service is applied to acquire the corresponding index value so as to acquire the corresponding statistical data.
Further, the method for obtaining the index value corresponding to the new index according to the new index service includes: and acquiring an index value corresponding to the new index from a preset index service according to the new index service.
Therefore, the index value corresponding to the new index is acquired from the preset index service, the acquisition of the index value can be automatically realized, and the data statistics is simpler and more convenient.
Further, the setting of the column of the new index includes: the name of the new index, the data carrier, the statistical caliber, the statistical term and the statistical period.
Therefore, the set index meets the use requirements of different business scenes by enabling different index dimensions.
In a preferred scheme, before setting the columns of the new index, determining the configuration mode of the new index, and setting the columns of the new index according to the configuration mode of the new index.
Optionally, setting a column of the new index service includes: the method comprises the steps of identifying a new index service, the name of the new index service, the address of the new index service, the index corresponding to the new index service, an input parameter and an output parameter.
Therefore, the dimension of different index services is adopted, so that the index services can meet the use requirements of different business scenes, and the use requirements of different indexes can be matched.
Further, the one newly added index service corresponds to one or more indexes. If one newly added index service corresponds to a plurality of indexes, the indexes corresponding to the newly added index service are a plurality of indexes when columns of the newly added index service are set.
In this way, a proper newly added index service can be set according to the requirements of actual application scenes, so that the newly added index service can cover one or more indexes, and the index service can better match different indexes.
In order to achieve the second object, the present invention provides a computer device including a processor and a memory, wherein the memory stores a computer program, and the computer program realizes the steps of the index service configuration and application method when executed by the processor.
In order to achieve the third object, the present invention provides a computer program stored on a computer readable storage medium, which when executed by a processor, implements the steps of the above-mentioned index service configuration and application method.
Drawings
FIG. 1 is a flow chart of an embodiment of the index service configuration and application method of the present invention.
FIG. 2 is a diagram of an interface for indicating an index configuration in an embodiment of an index service configuration and application method of the present invention.
FIG. 3 is a diagram of an operation interface for index service configuration in an embodiment of the present invention.
FIG. 4 is a diagram of an interface for editing an index service configuration in an embodiment of an application method of the present invention.
FIG. 5 is a diagram of index service configuration and index service mapping selection in an embodiment of the present invention.
FIG. 6 is a diagram illustrating the distribution of index service tests in an embodiment of an index service configuration and application method of the present invention.
The invention is further described below with reference to the drawings and examples.
Detailed Description
The index service configuration and application method is applied to dynamically configuring indexes and index services, and a set of components is provided in a configuration period to lead a business index model into an index center in a business system so as to complete data object modeling; constructing various indexes based on the service, supporting the service system to select the index of the current bill in the configuration period and constructing corresponding index service; and, index service is released after passing the test, and is invoked after successful release. The index service provides a standard result return structure and is in seamless connection with the service system, so that the data interaction between the index center and the service system is realized.
The index service configuration and application method of the present invention can be run on a computer device, for example, the computer device can be a PC, a smart phone, a tablet computer, etc., and the computer is provided with a processor and a memory, and the memory stores a computer program, through which the index service configuration and application method is implemented.
Index service configuration and application method embodiment:
the steps of the present embodiment will be described below with reference to an example. In the electricity selling business, there is a demand for statistical summarization of distributed photovoltaic auxiliary and auxiliary administrative levels, so as to comprehensively analyze and adjust electricity selling prices. Based on the service background, when the distributed photovoltaic auxiliary system is performed, a corresponding index service can be selected, and according to the defined index, the index is corresponding to the distributed photovoltaic auxiliary service object, after the mapping is completed and the index service is released, a downstream service system can call and acquire the index value corresponding to the index service, so that the index service support configuration mode is applied to an application scene.
Referring to fig. 1, the method of the present embodiment first executes step S1 to obtain index configuration information and add a new index. For example, if a new index needs to be added during the service, the corresponding index is dynamically added. For example, in the above example, if the index of the photovoltaic help needs to be newly increased when the business is developed, the index of the "distributed photovoltaic help" is increased in the index page.
Then, step S2 is executed to set a column of the new index. Specifically, a new index is added to the index system, and a column of the new index is set. Applying the above example, in the distributed photovoltaic help system, the index definition configuration is performed according to the service requirement, as shown in fig. 2.
The newly added index is configured on the page shown in fig. 2, and before the column of the newly added index is set, the configuration mode of the newly added index is determined first, and the column of the newly added index is set according to the configuration mode of the newly added index. For example, a mode of setting a new index is a standard mode or a derivative mode, and a plurality of columns of the new index need to be set, and corresponding information is filled in each column. Wherein, the columns of the set new index comprise: the name of the new index, the data carrier, the statistical caliber, the statistical term and the statistical period. Using the above example, the statistical aperture may include a plurality of different apertures such as "set", "user", "power supply office", and the like, and the statistical period may be a plurality of different periods such as daily, monthly, quarterly, yearly, and the like. In this way, the selection of the index can be very flexible.
In addition, the configuration of the index can also set a plurality of columns such as index description, data range and the like, and the columns are not required to be filled in according to actual needs.
Next, step S3 is executed to add a corresponding index service according to the application scenario. After the index is added, if the index needs to be counted, the index service needs to be applied to complete the acquisition of the index value. Therefore, it is necessary to add a corresponding index service according to the needs of the application scenario. For example, enter the index service configuration main interface as shown in fig. 3, where a new index service is created. It will be appreciated that the index service configuration main interface shown in fig. 3 is also a page for managing the index service.
Then, step S4 is executed to set columns of the newly added index service, specifically, to set each column of the newly added index service. In the above example, the index service editing page shown in fig. 4 is entered, and a plurality of columns of the newly added index service may be set on the page, where the set columns include the identifier of the newly added index service, the name of the newly added index service, the address of the newly added index service, the index corresponding to the newly added index service, the input parameter, the output parameter, and the like. Wherein the input parameters may include names of the respective parameters, parameter association information, parameter types, operators, etc., and the output parameters also include parameter names, parameter association information, parameter types, operators, etc.
After setting the columns of each index service, a mapping relationship between the newly added index and the newly added index service needs to be established, as shown in fig. 5, a correspondence relationship between the index service and the index may be set, for example, names of the indexes are displayed in a table, information such as a aided statistics period, an aided level and the like can be embodied in the index names, and for different statistics periods and aided levels, actually, index values need to be acquired from different index services when statistics data is performed.
In this embodiment, one newly added index service corresponds to one or more indexes, and the corresponding indexes may be newly added indexes or existing indexes. If one newly added index service corresponds to a plurality of indexes, the indexes corresponding to the newly added index service are a plurality of indexes when columns of the newly added index service are set. For example, information of a plurality of associated indices needs to be written in a column of the index configuration.
Then, step S5 is executed to perform test verification on the newly added index service. When testing and verifying the index service, the index service to be tested and verified needs to be selected first, and the test and verification is performed according to the input parameter values defined by the index service, as shown in fig. 6, which is an interface diagram of the release of the index service test. When the index service performs test verification, corresponding index values are obtained from preset index services according to various contents of the index service, whether the index values are correct or not is judged, whether the mapping relation between the newly added index and the newly added index service is correct or not is verified, and test verification release is performed.
Then, step S6 is executed to determine whether the verification is passed, and if the index service passes the test verification, step S7 is executed to issue the new index service passing the verification, for example, issue in the index system. If the judgment result of the step S6 is no, which indicates that the newly added index service does not pass the test verification, the step S10 is executed, and the newly added index service is not released.
After the new index service is released, step S8 is executed to determine whether the new index service is triggered, for example, the service caller executes the access of the new index service. In the process of service, a service calling party can call the newly added index service according to the actual service requirement, and at the moment, the newly added index service can be called through a prequalification API interface. If the trigger condition of the new index service is satisfied, step S9 is executed, an index value corresponding to the new index is obtained according to the new index service, and the execution result is returned.
If the judgment result of the step S8 is no, the trigger adjustment of the newly added index service is not satisfied, and the waiting is continued.
According to the method, after the service personnel obtains the return result of the index service execution, judgment can be made on the current scene according to the return result so as to finish the service scene application. By completing the steps, the configuration and application of the index service in the application scene are achieved, the service is not required to be interrupted in the implementation of the steps, the hot deployment of the index service can be achieved, the service demand delivery period is shortened, and the quick change and quick delivery are achieved.
Computer apparatus embodiment:
the computer apparatus of the present embodiment may be an intelligent terminal device or a desktop computer, and the computer apparatus has a processor, a memory, and a computer program stored in the memory and executable on the processor, for example, an information processing program for implementing the above information processing method, and the processor implements the steps of the above index service configuration and application method when executing the computer program.
For example, a computer program may be split into one or more modules, which are stored in memory and executed by a processor to perform the various modules of the invention. One or more of the modules may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program in the terminal device.
It should be noted that the terminal device may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, and the like. The terminal device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the schematic diagram of the present invention is merely an example of a terminal device and is not limiting of the terminal device, and may include more or less components than those illustrated, or may combine some components, or different components, e.g., the terminal device may also include an input-output device, a network access device, a bus, etc.
The processor referred to in the present invention may be a central processing unit (Central Processing Unit, CPU), or other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being a control center of the terminal device, and the various interfaces and lines being used to connect the various parts of the overall terminal device.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the terminal device by running or executing the computer programs and/or modules stored in the memory, and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Computer-readable storage medium:
the computer program stored in the computer means may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as a stand alone product. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of the index service configuration and application method when executed by a processor.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
Finally, it should be emphasized that the present invention is not limited to the above embodiments, for example, the changes of the specific columns set when setting the new index or the changes of the specific columns set when setting the new index service, and these changes should also be included in the protection scope of the claims of the present invention.

Claims (10)

1. The index service configuration and application method is characterized by comprising the following steps:
acquiring index configuration information, adding new indexes into an index system, and setting columns of the new indexes;
according to the new index, adding new index service according to an application scene, establishing a mapping relation between the new index and the new index service, and setting columns of the new index service;
testing and verifying the new index service, and if the new index service passes the verification, releasing the new index service;
when the trigger condition of the new index service is met, acquiring an index value corresponding to the new index according to the new index service, and returning an execution result.
2. The index service configuration and application method according to claim 1, wherein:
the step of meeting the newly added index service triggering condition comprises the following steps: and the service calling party executes the newly added index service access.
3. The index service configuration and application method according to claim 1 or 2, characterized in that:
the obtaining the index value corresponding to the new index according to the new index service comprises the following steps: and acquiring an index value corresponding to the new index from a preset index service according to the new index service.
4. The index service configuration and application method according to claim 1 or 2, characterized in that:
setting the columns of the new index comprises: the name of the new index, the data carrier, the statistical caliber, the statistical item and the statistical period.
5. The index service configuration and application method according to claim 1 or 2, characterized in that:
currently, a configuration mode of the new index is determined, and columns of the new index are set according to the configuration mode of the new index.
6. The index service configuration and application method according to claim 1 or 2, characterized in that:
setting the columns of the newly added index service comprises the following steps: the identification of the new index service, the name of the new index service, the address of the new index service, the index corresponding to the new index service, the input parameter and the output parameter.
7. The index service configuration and application method according to claim 6, wherein:
one of the newly added metrics corresponds to one or more of the metrics.
8. The index service configuration and application method according to claim 7, wherein:
and if one new index service corresponds to a plurality of indexes, setting a column of the new index service, wherein the indexes corresponding to the new index service are a plurality of indexes.
9. Computer device, characterized in that it comprises a processor and a memory, said memory storing a computer program which, when executed by the processor, implements the steps of the index service configuration and application method according to any one of claims 1 to 8.
10. A computer readable storage medium having stored thereon a computer program characterized by: the computer program, when executed by a processor, performs the steps of the index service configuration and application method as claimed in any one of claims 1 to 8.
CN202310004364.6A 2023-01-03 2023-01-03 Index service configuration and application method, computer device and computer readable storage medium Pending CN116128349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310004364.6A CN116128349A (en) 2023-01-03 2023-01-03 Index service configuration and application method, computer device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310004364.6A CN116128349A (en) 2023-01-03 2023-01-03 Index service configuration and application method, computer device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116128349A true CN116128349A (en) 2023-05-16

Family

ID=86307549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310004364.6A Pending CN116128349A (en) 2023-01-03 2023-01-03 Index service configuration and application method, computer device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116128349A (en)

Similar Documents

Publication Publication Date Title
CN111221726A (en) Test data generation method and device, storage medium and intelligent equipment
CN113780991B (en) Dynamic cost management and control method and device for construction engineering project and electronic equipment
WO2019214014A1 (en) Online product management method and apparatus, terminal device, and storage medium
CN110764999A (en) Automatic testing method and device, computer device and storage medium
CN113722289A (en) Method, device, electronic equipment and medium for constructing data service
CN110472298B (en) Method, device, equipment and storage medium for constructing electric power market model
CN109446047B (en) Performance test platform script storage method, device, equipment and storage medium
CN116228153A (en) Engineering project design change price management method, system, equipment and medium
CN111190814A (en) Software test case generation method and device, storage medium and terminal
CN114493515A (en) Power grid asset auditing method and device, storage medium and computer equipment
CN111984882A (en) Data processing method, system and equipment
CN111723004B (en) Measurement method for agile software development, measurement data output method and device
CN113378538A (en) Document structured information input method, electronic equipment and storage medium
CN114064445A (en) Test method, device, equipment and computer readable storage medium
CN116128349A (en) Index service configuration and application method, computer device and computer readable storage medium
WO2019232916A1 (en) Project control method and apparatus, and electronic device and medium
CN115268734A (en) Quotation generation method, device, equipment and storage medium based on quotation tool
CN114860362A (en) Interface updating method and device
CN112085344A (en) Equipment health analysis method and device and electronic equipment
CN110221952B (en) Service data processing method and device and service data processing system
CN113743791A (en) Business evaluation method and device for business work order, electronic equipment and medium
CN112131219A (en) Customer maintenance management method and system
CN113011869A (en) Test data generation method and device and computer readable storage medium
CN112733516B (en) Method, device, equipment and storage medium for processing quick message
CN112364058B (en) Auditing method and device for commodity price configuration

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