Get the analysis code of a rule set revision

post/ruleSets/{ruleSetId}/revisions/{revisionId}/analysisCode
Internal-Use Only

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

Request Samples

1

Response Samples

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

Path Parameters

NameTypeRequiredDescription
revisionId
string
true

The rule set revision ID.

ruleSetId
string
true

The rule set ID.

Request Body

Information that describes the specific execution to which the analysis code should be applicable (as specified by the scoreExecutionId) and the type of analysis that is to be performed by the code.

A request that contains hints to generate the analysis code using the scoring execution.

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

The score execution ID.

analysisType
string<enumeration>
true

The type of analysis that needs to be done.

Allowed values:
ruleFiredDetailsruleFiredSummary
hints
object
false

Hints for generating the analysis code.

version
integer
false

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

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.Schema