/*
* 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 elasticbeanstalk-2010-12-01.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.ElasticBeanstalk.Model
{
///
/// Application request metrics for an AWS Elastic Beanstalk environment.
///
public partial class ApplicationMetrics
{
private int? _duration;
private Latency _latency;
private int? _requestCount;
private StatusCodes _statusCodes;
///
/// Gets and sets the property Duration.
///
/// The amount of time that the metrics cover (usually 10 seconds). For example, you might
/// have 5 requests (request_count
) within the most recent time slice of
/// 10 seconds (duration
).
///
///
public int Duration
{
get { return this._duration.GetValueOrDefault(); }
set { this._duration = value; }
}
// Check to see if Duration property is set
internal bool IsSetDuration()
{
return this._duration.HasValue;
}
///
/// Gets and sets the property Latency.
///
/// Represents the average latency for the slowest X percent of requests over the last
/// 10 seconds. Latencies are in seconds with one millisecond resolution.
///
///
public Latency Latency
{
get { return this._latency; }
set { this._latency = value; }
}
// Check to see if Latency property is set
internal bool IsSetLatency()
{
return this._latency != null;
}
///
/// Gets and sets the property RequestCount.
///
/// Average number of requests handled by the web server per second over the last 10 seconds.
///
///
public int RequestCount
{
get { return this._requestCount.GetValueOrDefault(); }
set { this._requestCount = value; }
}
// Check to see if RequestCount property is set
internal bool IsSetRequestCount()
{
return this._requestCount.HasValue;
}
///
/// Gets and sets the property StatusCodes.
///
/// Represents the percentage of requests over the last 10 seconds that resulted in each
/// type of status code response.
///
///
public StatusCodes StatusCodes
{
get { return this._statusCodes; }
set { this._statusCodes = value; }
}
// Check to see if StatusCodes property is set
internal bool IsSetStatusCodes()
{
return this._statusCodes != null;
}
}
}