Hi, I want my dashboard to display the time and status (Ran to completion / Faulted …) of the cube build job, which the dashboard references.
I wrote the script below for the dashboard’s Ready script:
var metricSet1 = table1.metricSetBindings[0].dataResult.metricSet;
metricSet1.getAnalysisStructure().done(function (dataCube1) {
filterRule = new dundas.scheduling.JobQueryFilterRule();
filterRule.field = dundas.scheduling.JobQueryField.RELATED_ITEM_ID;
filterRule.value = dataCube1.id;
new dundas.scheduling.SchedulingService().queryJobs({filter: [filterRule]}).done(function (jobs) {
console.log("jobs:", jobs);
<to display the time and status of the job>
});
});
But, I just got the error:
job/query/ (POST) error:
status:400 Bad Request
response message:The request is invalid.
exception message:
exception type:
stack trace:
Could someone tell me what’s wrong and how to modify the script?