Get a score analysis
get/executions/{executionId}/analyses/{analysisId}
Returns the representation of the specified score analysis.
1{2 "codeFileUri": "/files/files/0267d01f-4824-44e5-9abc-4ad3fb0a6414",3 "createdBy": "edmdev",4 "creationTimeStamp": "2022-12-26T07:34:10.69495Z",5 "id": "1fc42c82-47de-415a-86ef-11a3a6b94330",6 "links": [7 {8 "method": "GET",9 "rel": "up",10 "href": "/scoreExecution/executions/c35f3134-64ad-49f5-b031-e5f4b5bc9ef7/analyses",11 "uri": "/scoreExecution/executions/c35f3134-64ad-49f5-b031-e5f4b5bc9ef7/analyses",12 "type": "application/vnd.sas.collection"13 },14 {15 "method": "GET",16 "rel": "self",17 "href": "/scoreExecution/executions/c35f3134-64ad-49f5-b031-e5f4b5bc9ef7/analyses/1fc42c82-47de-415a-86ef-11a3a6b94330",18 "uri": "/scoreExecution/executions/c35f3134-64ad-49f5-b031-e5f4b5bc9ef7/analyses/1fc42c82-47de-415a-86ef-11a3a6b94330",19 "type": "application/vnd.sas.score.analysis"20 },21 {22 "method": "GET",23 "rel": "alternate",24 "href": "/scoreExecution/executions/c35f3134-64ad-49f5-b031-e5f4b5bc9ef7/analyses/1fc42c82-47de-415a-86ef-11a3a6b94330",25 "uri": "/scoreExecution/executions/c35f3134-64ad-49f5-b031-e5f4b5bc9ef7/analyses/1fc42c82-47de-415a-86ef-11a3a6b94330",26 "type": "application/vnd.sas.summary"27 },28 {29 "method": "DELETE",30 "rel": "delete",31 "href": "/scoreExecution/executions/c35f3134-64ad-49f5-b031-e5f4b5bc9ef7/analyses/1fc42c82-47de-415a-86ef-11a3a6b94330",32 "uri": "/scoreExecution/executions/c35f3134-64ad-49f5-b031-e5f4b5bc9ef7/analyses/1fc42c82-47de-415a-86ef-11a3a6b94330"33 },34 {35 "method": "GET",36 "rel": "state",37 "href": "/scoreExecution/executions/c35f3134-64ad-49f5-b031-e5f4b5bc9ef7/analyses/1fc42c82-47de-415a-86ef-11a3a6b94330/state",38 "uri": "/scoreExecution/executions/c35f3134-64ad-49f5-b031-e5f4b5bc9ef7/analyses/1fc42c82-47de-415a-86ef-11a3a6b94330/state",39 "type": "text/plain"40 }41 ],42 "logFileUri": "/files/files/7494ca81-f2a2-44b7-aa41-49b9d01f05db",43 "modifiedBy": "edmdev",44 "modifiedTimeStamp": "2022-12-26T07:34:11.848218Z",45 "outputTable": {46 "tableName": "d_single_treatment_group_Test_1_d_single_treatment_group_2022-12-26_07-33-38_ruleFired",47 "libraryName": "Public",48 "serverName": "cas-shared-default"49 },50 "results": {51 "debuginfo_1": "",52 "elapsedTime": "1036",53 "executedCode": "outputLibraryName=\"Public\";\noutputTableName=\"d_single_treatment_group_Test_1_d_single_treatment_group_2022-12-26_07-33-38_ruleFired\";\nanalysisCode=\"\n\n/* decision rule fired detail*/\nthread dcm_rf_detail_thread / inline;\n dcl varchar(100) \"\"DECISION_NAME\"\";\n dcl char(36) \"\"DECISION_ID\"\";\n dcl char(36) \"\"DECISION_VERSION_ID\"\";\n dcl varchar(100) \"\"RULE_NM\"\";\n dcl varchar(100) \"\"RULE_SET_NM\"\";\n dcl char(36) \"\"RULE_SET_ID\"\";\n dcl varchar(100) \"\"RULE_SET_VERSION\"\";\n dcl char(36) \"\"RULE_SET_VERSION_ID\"\";\n dcl char(36) \"\"RULE_ID\"\";\n dcl varchar(0) \"\"NODE_ID\"\";\n dcl char(36) \"\"rule_action_fire_id\"\";\n dcl integer \"\"ruleFiredSequence\"\";\n\n dcl package hash ruleFireFlagOffsetHash;\n dcl package hiter ruleFiredHashIterator;\n dcl integer ruleFiredFlagPosition;\n\n keep \"\"decision_name\"\" \"\"decision_id\"\" \"\"decision_version_id\"\"\n \"\"rule_action_fire_id\"\" \"\"RULE_NM\"\" \"\"RULE_SET_ID\"\" \"\"RULE_SET_VERSION_ID\"\"\n \"\"RULE_SET_NM\"\" \"\"NODE_ID\"\" \"\"RULE_ID\"\" \"\"ruleFiredSequence\"\" \"\"_recordCorrelationKey\"\";\n\n retain \"\"DECISION_NAME\"\";\n retain \"\"DECISION_ID\"\" '18a63cf2-c51e-41d0-8fee-2ac4eb134844';\n retain \"\"DECISION_VERSION_ID\"\" '676f5d0f-bc32-4c75-972e-cc122b45684b';\n\n method init(); \n ruleFireFlagOffsetHash = _new_ [this] hash();\n ruleFireFlagOffsetHash.keys([RULE_ID NODE_ID]);\n ruleFireFlagOffsetHash.data([RULE_ID NODE_ID ruleFiredFlagPosition RULE_NM RULE_SET_ID RULE_SET_VERSION_ID RULE_SET_NM]);\n ruleFireFlagOffsetHash.defineDone();\n ruleFiredFlagPosition = 1;\n \"\"DECISION_NAME\"\"='d_single_treatment_group';\n\n ruleFiredHashIterator = _new_ hiter('ruleFireFlagOffsetHash');\n end;\n\n method run();\n dcl double rfLen; \n set \"\"Public\"\".\"\"d_single_treatment_group_Test_1_d_single_treatment_group_2022-12-26_07-33-38_output\"\" \n (keep=(\"\"rulesfiredforrecordcount\"\" \"\"_recordCorrelationKey\"\" \"\"ruleFiredFlags\"\"));\n\n if \"\"rulesfiredforrecordcount\"\" > 0 then do;\n\n rfLen = lengthc(\"\"ruleFiredFlags\"\");\n ruleFiredHashIterator.first();\n do until (ruleFiredHashIterator.next());\n if ruleFiredFlagPosition > 0 and ruleFiredFlagPosition <= rfLen then do;\n if (substr(\"\"ruleFiredFlags\"\",ruleFiredFlagPosition,1) = '1') then do;\n \"\"rule_action_fire_id\"\"=uuidgen();\n \"\"ruleFiredSequence\"\" = ruleFiredFlagPosition;\n output ;\n end;\n end;\n end;\n\n end;\n end;\n\n method term();\n ruleFiredHashIterator.delete();\n rulefireFlagoffsethash.delete();\n end;\nendthread;\n\ndata \"\"Public\"\".\"\"d_single_treatment_group_Test_1_d_single_treatment_group_2022-12-26_07-33-38_ruleFired\"\" (overwrite=yes) ;\n dcl thread dcm_rf_detail_thread _t;\n\n method run();\n set from _t ;\n output;\n end;\nenddata;\n\";\ninputLibraryName=\"Public\";\ninputTableName=\"d_single_treatment_group_Test_1_d_single_treatment_group_2022-12-26_07-33-38_output\";\nmodelLibName = outputLibraryName;\nmodelTableName = 'TempModel_' || uuidgen();\nmodelName = modelTableName;\n\nloadActionSet \"modelPublishing\";\nloadActionSet \"ds2\";\nloadActionSet \"table\";\n\naction publishModel submit / modelTable={name=modelTableName, caslib=modelLibName} modelName=modelName program=analysisCode;\n\nparmlist={\n modelTable={\n name=modelTableName,\n caslib=modelLibName\n },\n modelName=modelName,\n inTable={\n name=inputTableName,\n caslib=inputLibraryName\n },\n outTable={\n name=outputTableName,\n caslib=outputLibraryName\n }\n};\naction runModelLocal submit / parmlist;\nrun;\n\naction promote / caslib=outputLibraryName, name=outputTableName, targetLib=outputLibraryName;\n\naction dropTable / caslib=outputLibraryName, name=modelTableName;\naction endSession;\n",54 "jobId": "c21c592e-8294-41d7-99f9-75116ae4c3ba",55 "reason_1": "ok",56 "severity_1": "error",57 "statusCode_1": "0",58 "status_1": ""59 },60 "scoreAnalysisRequest": {61 "version": 1,62 "scoreExecutionId": "c35f3134-64ad-49f5-b031-e5f4b5bc9ef7",63 "name": "ruleFiredDetails",64 "hints": {65 "modelLib": "public",66 "modelName": "c35f3134-64ad-49f5-b031-e5f4b5bc9ef7",67 "modelTable": "c35f3134-64ad-49f5-b031-e5f4b5bc9ef7"68 },69 "analysisType": "ruleFiredDetails"70 },71 "scoreExecutionId": "c35f3134-64ad-49f5-b031-e5f4b5bc9ef7",72 "state": "failed",73 "version": 174}