/* * 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 xray-2016-04-12.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.XRay.Model { /// /// Aggregated request sampling data for a sampling rule across all services for a 10-second /// window. /// public partial class SamplingStatisticSummary { private int? _borrowCount; private int? _requestCount; private string _ruleName; private int? _sampledCount; private DateTime? _timestamp; /// /// Gets and sets the property BorrowCount. /// /// The number of requests recorded with borrowed reservoir quota. /// /// public int BorrowCount { get { return this._borrowCount.GetValueOrDefault(); } set { this._borrowCount = value; } } // Check to see if BorrowCount property is set internal bool IsSetBorrowCount() { return this._borrowCount.HasValue; } /// /// Gets and sets the property RequestCount. /// /// The number of requests that matched the rule. /// /// 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 RuleName. /// /// The name of the sampling rule. /// /// public string RuleName { get { return this._ruleName; } set { this._ruleName = value; } } // Check to see if RuleName property is set internal bool IsSetRuleName() { return this._ruleName != null; } /// /// Gets and sets the property SampledCount. /// /// The number of requests recorded. /// /// public int SampledCount { get { return this._sampledCount.GetValueOrDefault(); } set { this._sampledCount = value; } } // Check to see if SampledCount property is set internal bool IsSetSampledCount() { return this._sampledCount.HasValue; } /// /// Gets and sets the property Timestamp. /// /// The start time of the reporting window. /// /// public DateTime Timestamp { get { return this._timestamp.GetValueOrDefault(); } set { this._timestamp = value; } } // Check to see if Timestamp property is set internal bool IsSetTimestamp() { return this._timestamp.HasValue; } } }