/**
 * Oracle Cloud AI Services API
 * OCI AI Service solutions can help Enterprise customers integrate AI into their products immediately by using our proven,
pre-trained/custom models or containers, and without a need to set up in house team of AI and ML experts.
This allows enterprises to focus on business drivers and development work rather than AI/ML operations, shortening the time to market.

 * OpenAPI spec version: 20210101
 *
 *
 * 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" ) ; /**
 * This is the specialised JSON format that we accept as Training data, with an additional
 * field for 'requestType' which is a required field used deciding whether it is an inline
 * request or contains embedded data.
 *
 */ export interface InlineDetectAnomaliesRequest extends model . DetectAnomaliesDetails { /**
     * List of signal names.
     */ "signalNames" : Array < string > ; /**
     * Array containing data.
     */ "data" : Array < model . DataItem > ; "requestType" : string ; } export namespace InlineDetectAnomaliesRequest { export function getJsonObj ( obj , isParentJsonObj ? ) { const jsonObj = { ... ( isParentJsonObj ? obj : ( model . DetectAnomaliesDetails . getJsonObj ( obj ) as InlineDetectAnomaliesRequest ) ) , ... { "data" : obj . data ? obj . data . map ( item => { return model . DataItem . getJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } export const requestType = "INLINE" ; export function getDeserializedJsonObj ( obj , isParentJsonObj ? ) { const jsonObj = { ... ( isParentJsonObj ? obj : ( model . DetectAnomaliesDetails . getDeserializedJsonObj ( obj ) as InlineDetectAnomaliesRequest ) ) , ... { "data" : obj . data ? obj . data . map ( item => { return model . DataItem . getDeserializedJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } }