/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the sagemaker-2017-07-24.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SageMaker.Model { /// /// The metrics of recommendations. /// public partial class RecommendationMetrics { private float? _costPerHour; private float? _costPerInference; private float? _cpuUtilization; private int? _maxInvocations; private float? _memoryUtilization; private int? _modelLatency; private int? _modelSetupTime; /// /// Gets and sets the property CostPerHour. /// /// Defines the cost per hour for the instance. /// /// [AWSProperty(Required=true)] public float CostPerHour { get { return this._costPerHour.GetValueOrDefault(); } set { this._costPerHour = value; } } // Check to see if CostPerHour property is set internal bool IsSetCostPerHour() { return this._costPerHour.HasValue; } /// /// Gets and sets the property CostPerInference. /// /// Defines the cost per inference for the instance . /// /// [AWSProperty(Required=true)] public float CostPerInference { get { return this._costPerInference.GetValueOrDefault(); } set { this._costPerInference = value; } } // Check to see if CostPerInference property is set internal bool IsSetCostPerInference() { return this._costPerInference.HasValue; } /// /// Gets and sets the property CpuUtilization. /// /// The expected CPU utilization at maximum invocations per minute for the instance. /// /// /// /// NaN indicates that the value is not available. /// /// [AWSProperty(Min=0)] public float CpuUtilization { get { return this._cpuUtilization.GetValueOrDefault(); } set { this._cpuUtilization = value; } } // Check to see if CpuUtilization property is set internal bool IsSetCpuUtilization() { return this._cpuUtilization.HasValue; } /// /// Gets and sets the property MaxInvocations. /// /// The expected maximum number of requests per minute for the instance. /// /// [AWSProperty(Required=true)] public int MaxInvocations { get { return this._maxInvocations.GetValueOrDefault(); } set { this._maxInvocations = value; } } // Check to see if MaxInvocations property is set internal bool IsSetMaxInvocations() { return this._maxInvocations.HasValue; } /// /// Gets and sets the property MemoryUtilization. /// /// The expected memory utilization at maximum invocations per minute for the instance. /// /// /// /// NaN indicates that the value is not available. /// /// [AWSProperty(Min=0)] public float MemoryUtilization { get { return this._memoryUtilization.GetValueOrDefault(); } set { this._memoryUtilization = value; } } // Check to see if MemoryUtilization property is set internal bool IsSetMemoryUtilization() { return this._memoryUtilization.HasValue; } /// /// Gets and sets the property ModelLatency. /// /// The expected model latency at maximum invocation per minute for the instance. /// /// [AWSProperty(Required=true)] public int ModelLatency { get { return this._modelLatency.GetValueOrDefault(); } set { this._modelLatency = value; } } // Check to see if ModelLatency property is set internal bool IsSetModelLatency() { return this._modelLatency.HasValue; } /// /// Gets and sets the property ModelSetupTime. /// /// The time it takes to launch new compute resources for a serverless endpoint. The time /// can vary depending on the model size, how long it takes to download the model, and /// the start-up time of the container. /// /// /// /// NaN indicates that the value is not available. /// /// [AWSProperty(Min=0)] public int ModelSetupTime { get { return this._modelSetupTime.GetValueOrDefault(); } set { this._modelSetupTime = value; } } // Check to see if ModelSetupTime property is set internal bool IsSetModelSetupTime() { return this._modelSetupTime.HasValue; } } }