Rule Sets

Get the analysis code of a rule set revision

Returns the analysis code necessary for collecting the information about the rules that fired.

post/ruleSets/{ruleSetId}/revisions/{revisionId}/analysisCode

Request

  • Base URL: https://example.com/businessRules
  • URL: https://example.com/businessRules/ruleSets/{ruleSetId}/revisions/{revisionId}/analysisCode
  • Auth: none declared

Path parameters

ruleSetIdstring required

The rule set ID.

revisionIdstring required

The rule set revision ID.

Request body

scoreExecutionIdstring required

The score execution ID.

analysisType'ruleFiredDetails' | 'ruleFiredSummary' enumeration required

The type of analysis that needs to be done.

hintsobject

Hints for generating the analysis code.

versioninteger

This media type's schema version number. This representation is version 1.

Example request

{
  "scoreExecutionId": "6f4bced9-5bbd-476c-8ef8-3378678b0702",
  "analysisType": "ruleFiredSummary",
  "hints": {
    "outputLibraryName": "PUBLIC"
  }
}

Response

The request succeeded.

codestring required

Executable code generated by a Score Object.

codeTypestring media-type required

Type of the code.

outputTableNamestring required

Name of the table that will be generated when the generated code is executed.

outputLibraryNamestring required

Name of the library where the table will be generated when the code is executed.

analysisTypestring required

Type of analysis which the code will perform.

versioninteger

This media type's schema version number. This representation is version 1.

Example response

{
  "code": "/* ds2 code of an object which generates XYZ output table */",
  "codeType": "text/vnd.sas.source.ds2",
  "outputTableName": "XYZ",
  "outputLibraryName": "HPS",
  "analysisType": "ruleFiredSummary"
}

Changes

No recorded changes to this operation across all 1 revision of this API.