/**
 * Operations Insights API
 * Use the Operations Insights API to perform data extraction operations to obtain database
resource utilization, performance statistics, and reference information. For more information,
see [About Oracle Cloud Infrastructure Operations Insights](https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html).

 * OpenAPI spec version: 20200630
 *
 *
 * 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" ) ; /**
 * SQL Insights response.
 *
 */ export interface SqlInsightAggregationCollection { /**
     * The start timestamp that was passed into the request.
     */ "timeIntervalStart" : Date ; /**
     * The end timestamp that was passed into the request.
     */ "timeIntervalEnd" : Date ; "inventory" : model . SqlInventory ; /**
     * List of insights.
     */ "items" : Array < model . SqlInsightAggregation > ; "thresholds" : model . SqlInsightThresholds ; } export namespace SqlInsightAggregationCollection { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "inventory" : obj . inventory ? model . SqlInventory . getJsonObj ( obj . inventory ) : undefined , "items" : obj . items ? obj . items . map ( item => { return model . SqlInsightAggregation . getJsonObj ( item ) ; } ) : undefined , "thresholds" : obj . thresholds ? model . SqlInsightThresholds . getJsonObj ( obj . thresholds ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "inventory" : obj . inventory ? model . SqlInventory . getDeserializedJsonObj ( obj . inventory ) : undefined , "items" : obj . items ? obj . items . map ( item => { return model . SqlInsightAggregation . getDeserializedJsonObj ( item ) ; } ) : undefined , "thresholds" : obj . thresholds ? model . SqlInsightThresholds . getDeserializedJsonObj ( obj . thresholds ) : undefined } } ; return jsonObj ; } }