Skip to content

To include support for RegexPatternMappingProfile , FunctionProfile in the config file generator tool #1087

@PrathibaJee

Description

@PrathibaJee

Following two new profiles are introduced in the DPMDP application ,

  1. RegexPatternMappingProfile
  2. FunctionProfile

Note : For empty list, please add [] as the value

Config file generator tool needs to be updated to automate this new profiles.

FunctionProfile :

  - profile-name: 'FunctionProfile'
    uuid: '^[a-z]{2,6}-([0-9]+)-([0-9]+)-([0-9]+)-function-p-[0-9]{3}$'
    capability:
      function-name: string
      function-description: string
      parameter-list:
        - parameter: _StringProfile
          owner: {'platform', 'engineering', 'user'}
      sub-function-list: [_FunctionProfile]
    configuration:
      is-active: boolean

corresponding translation is ,

{
  "uuid": "^[a-z]{2,6}-([0-9]+)-([0-9]+)-([0-9]+)-function-p-[0-9]{3}$",
  "profile-name": "function-profile-1-0:PROFILE_NAME_TYPE_FUNCTION_PROFILE",
  "function-profile-1-0:function-profile-pac": {
    "function-profile-capability": {
      "function-name": "string",
      "function-description": "string",
      "parameter-list": [
        {
          "parameter": "_StringProfile",
          "owner": "platform|engineering|user"
        }
      ],
      "sub-function-list": [
        "_FunctionProfile"
      ]
    },
    "function-profile-configuration": {
      "is-active": "boolean"
    }
  }
}

RegexPatternMappingProfile :

- profile-name: 'RegexPatternMappingProfile'
    uuid: '^[a-z]{2,6}-([0-9]+)-([0-9]+)-([0-9]+)-mapping-p-[0-9]{3}$'
    capability:
      mapping-name: string
      purpose: string
    configuration:
      mapping-list:
        - regex-string: string
          map-to-string: string
{
  "uuid": "^[a-z]{2,6}-([0-9]+)-([0-9]+)-([0-9]+)-mapping-p-[0-9]{3}$",
  "profile-name": "regex-pattern-mapping-profile-1-0:PROFILE_NAME_TYPE_REGEX_PATTERN_MAPPING_PROFILE",
  "regex-pattern-mapping-profile-1-0:regex-pattern-mapping-profile-pac": {
    "regex-pattern-mapping-profile-capability": {
      "mapping-name": "string",
      "purpose": "string"
    },
    "regex-pattern-mapping-profile-configuration": {
      "mapping-list": [
        {
          "regex-string": "string",
          "map-to-string": "string"
        }
      ]
    }
  }
}

Reference : https://github.com/openBackhaul/DevicePerformanceManagementDataProcessor/blob/develop/spec/DevicePerformanceManagementDataProcessor%2Bprofiles.yaml

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions