Beispiel #1
0
        public String GetLearningInstanceValidationSummary(Boolean RespInJsonFormat, String LearningInstanceID)
        {
            String       Resp   = "";
            String       Req    = this.broker.RestEndpointURL + ":" + this.broker.RestAuthEndpointPort + "/IQBot/api/projects/" + LearningInstanceID + "/detail-summary";
            RestResponse MyResp = RestUtils.SendGetRequest(Req, this.broker.RestAuthToken, this.broker.IQBotMajorVersion);

            //Console.WriteLine("DEBUG :"+MyResp.RetResponse);
            JsonObjects.LearningInstanceDetails.Response r      = JsonConvert.DeserializeObject <JsonObjects.LearningInstanceDetails.Response>(MyResp.RetResponse);
            JsonObjects.LearningInstanceDetails.Data     LIData = r.data;

            Resp = "InValidationQueue,ProdValidatedFiles" + "\n";
            if (RespInJsonFormat)
            {
                Resp = MyResp.RetResponse;
            }
            else
            {
                int InValidationQueue  = LIData.pendingForReview;
                int ProdValidatedFiles = LIData.productionReviewFiles;



                Resp = Resp + InValidationQueue + "," + ProdValidatedFiles + "\n";
            }


            return(Resp);
        }
Beispiel #2
0
        public String GetLearningInstanceDetailsSTAGING(Boolean RespInJsonFormat, String LearningInstanceID)
        {
            String       Resp   = "";
            String       Req    = this.broker.RestEndpointURL + ":" + this.broker.RestAuthEndpointPort + "/IQBot/api/projects/" + LearningInstanceID + "/detail-summary";
            RestResponse MyResp = RestUtils.SendGetRequest(Req, this.broker.RestAuthToken, this.broker.IQBotMajorVersion);

            JsonObjects.LearningInstanceDetails.Response r      = JsonConvert.DeserializeObject <JsonObjects.LearningInstanceDetails.Response>(MyResp.RetResponse);
            JsonObjects.LearningInstanceDetails.Data     LIData = r.data;

            Resp = "StagingPageCount,StagingTestedFiles,StagingTestFilesPercentage,StagingAccuracy,StagingUnclassified," +
                   "StagingSTP,StagingSucessFiles,StagingTotalBots,StagingTotalFiles,StagingTotalGroups,StagingFailed" + "\n";
            if (RespInJsonFormat)
            {
                Resp = MyResp.RetResponse;
            }
            else
            {
                int StagingPageCount           = LIData.stagingPageCount;
                int StagingTestedFiles         = LIData.stagingTestedFiles;
                int StagingTestFilesPercentage = LIData.stagingTestedFilesPercentage;
                int StagingAccuracy            = LIData.stagingAccuracy;
                int StagingUnclassified        = LIData.stagingDocumentsUnclassified;
                int StagingSTP         = LIData.stagingSTP;
                int StagingSucessFiles = LIData.stagingSuccessFiles;
                int StagingTotalBots   = LIData.stagingTotalBots;
                int StagingTotalFiles  = LIData.stagingTotalFiles;
                int StagingTotalGroups = LIData.stagingTotalGroups;
                int StagingFailed      = LIData.stagingFailedFiles;

                Resp = Resp + StagingPageCount + "," + StagingTestedFiles + "," + StagingTestFilesPercentage + "," + StagingAccuracy + "," + StagingUnclassified +
                       "," + StagingSTP + "," + StagingSucessFiles + "," + StagingTotalBots + "," + StagingTotalFiles + "," + StagingTotalGroups + "," + StagingFailed + "\n";
            }


            return(Resp);
        }
Beispiel #3
0
        public String GetLearningInstanceDetailsPROD(Boolean RespInJsonFormat, String LearningInstanceID)
        {
            String       Resp   = "";
            String       Req    = this.broker.RestEndpointURL + ":" + this.broker.RestAuthEndpointPort + "/IQBot/api/projects/" + LearningInstanceID + "/detail-summary";
            RestResponse MyResp = RestUtils.SendGetRequest(Req, this.broker.RestAuthToken, this.broker.IQBotMajorVersion);

            JsonObjects.LearningInstanceDetails.Response r      = JsonConvert.DeserializeObject <JsonObjects.LearningInstanceDetails.Response>(MyResp.RetResponse);
            JsonObjects.LearningInstanceDetails.Data     LIData = r.data;

            Resp = "ProdPageCount,ProdProcessedFiles,ProdProcessedFilesPercentage,ProdAccuracy,ProdUnclassified," +
                   "ProdSTP,ProdSuccessFiles,ProdTotalBots,ProdTotalFiles,ProdTotalGroups,ProdInvalid" + "\n";
            if (RespInJsonFormat)
            {
                Resp = MyResp.RetResponse;
            }
            else
            {
                int ProdPageCount                = LIData.productionPageCount;
                int ProdProcessedFiles           = LIData.productionProcessedFiles;
                int ProdProcessedFilesPercentage = LIData.productionProcessedFilesPercentage;
                int ProdAccuracy     = LIData.productionAccuracy;
                int ProdUnclassified = LIData.productionDocumentsUnclassified;
                int ProdSTP          = LIData.productionSTP;
                int ProdSuccessFiles = LIData.productionSuccessFiles;
                int ProdTotalBots    = LIData.productionTotalBots;
                int ProdTotalFiles   = LIData.productionTotalFiles;
                int ProdTotalGroups  = LIData.productionTotalGroups;
                int ProdInvalid      = LIData.productionInvalidFiles;

                Resp = Resp + ProdPageCount + "," + ProdProcessedFiles + "," + ProdProcessedFilesPercentage + "," + ProdAccuracy + "," + ProdUnclassified +
                       "," + ProdSTP + "," + ProdSuccessFiles + "," + ProdTotalBots + "," + ProdTotalFiles + "," + ProdTotalGroups + "," + ProdInvalid + "\n";
            }


            return(Resp);
        }