/**
 * LogAnalytics API
 * The LogAnalytics API for the LogAnalytics service.

 * OpenAPI spec version: 20200601
 *
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import * as model from "../model" ; import common = require ( "oci-common" ) ; /**
 * Job details outlining parameters specified when job was submitted.
 *
 */ export interface QueryWorkRequest { /**
     * Unique OCID identifier to reference this query job work Request with.
     *
     */ "id" : string ; /**
     * Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
     */ "compartmentId" : string ; /**
     * When the job was started.
     */ "timeStarted" : Date ; /**
     * When the work request was accepted. Should match timeStarted in all cases.
     *
     */ "timeAccepted" ? : Date ; /**
     * When the job finished execution.
     */ "timeFinished" ? : Date ; /**
     * When the job will expire.
     */ "timeExpires" ? : Date ; /**
     * Percentage progress completion of the query.
     *  Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
     */ "percentComplete" ? : number ; /**
     * Work request status.
     *
     */ "status" ? : model . WorkRequestStatus ; /**
     * Asynchronous action name.
     *
     */ "operationType" ? : model . QueryOperationType ; /**
     * Current execution mode for the job.
     */ "mode" : model . JobMode ; /**
     * When the job was put in to the background.
     */ "timeBackgroundAt" ? : Date ; "timeFilter" ? : model . TimeRange ; /**
     * List of filters applied when the query executed.
     *
     */ "scopeFilters" ? : Array < model . ScopeFilter > ; /**
     * Default subsystem to qualify fields with in the queryString if not specified.
     *
     */ "subSystem" : model . SubSystemName ; /**
     * Display version of the user speciified queryString.
     *
     */ "displayQueryString" : string ; /**
     * Internal version of the user specified queryString.
     *
     */ "internalQueryString" : string ; } export namespace QueryWorkRequest { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "timeFilter" : obj . timeFilter ? model . TimeRange . getJsonObj ( obj . timeFilter ) : undefined , "scopeFilters" : obj . scopeFilters ? obj . scopeFilters . map ( item => { return model . ScopeFilter . getJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "timeFilter" : obj . timeFilter ? model . TimeRange . getDeserializedJsonObj ( obj . timeFilter ) : undefined , "scopeFilters" : obj . scopeFilters ? obj . scopeFilters . map ( item => { return model . ScopeFilter . getDeserializedJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } }