1// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved. 2// 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. 3// Code generated. DO NOT EDIT. 4 5// LogAnalytics API 6// 7// The LogAnalytics API for the LogAnalytics service. 8// 9 10package loganalytics 11 12import ( 13 "github.com/oracle/oci-go-sdk/common" 14) 15 16// WorkRequest A description of workrequest status 17type WorkRequest struct { 18 19 // Type of the work request 20 OperationType LogAnalyticsOperationTypesEnum `mandatory:"true" json:"operationType"` 21 22 // Status of current work request. 23 Status OperationStatusEnum `mandatory:"true" json:"status"` 24 25 // The id of the work request. 26 Id *string `mandatory:"true" json:"id"` 27 28 // The ocid of the compartment that contains the work request. Work requests should be scoped to 29 // the same compartment as the resource the work request affects. If the work request affects multiple resources, 30 // and those resources are not in the same compartment, it is up to the service team to pick the primary 31 // resource whose compartment should be used 32 CompartmentId *string `mandatory:"true" json:"compartmentId"` 33 34 // The resources affected by this work request. 35 Resources []WorkRequestResource `mandatory:"true" json:"resources"` 36 37 // Percentage of the request completed. 38 PercentComplete *float32 `mandatory:"true" json:"percentComplete"` 39 40 // The date and time the request was created, as described in 41 // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. 42 TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` 43 44 // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), 45 // section 14.29. 46 TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` 47 48 // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). 49 TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` 50} 51 52func (m WorkRequest) String() string { 53 return common.PointerString(m) 54} 55