/* * 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 { /// /// Container for the parameters to the GetTraceSummaries operation. /// Retrieves IDs and annotations for traces available for a specified time frame using /// an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces. /// /// /// /// A filter expression can target traced requests that hit specific service nodes or /// edges, have errors, or come from a known user. For example, the following filter expression /// targets traces that pass through api.example.com: /// /// /// /// service("api.example.com") /// /// /// /// This filter expression finds traces that have an annotation named account /// with the value 12345: /// /// /// /// annotation.account = "12345" /// /// /// /// For a full list of indexed fields and keywords that you can use in filter expressions, /// see Using /// Filter Expressions in the Amazon Web Services X-Ray Developer Guide. /// /// public partial class GetTraceSummariesRequest : AmazonXRayRequest { private DateTime? _endTime; private string _filterExpression; private string _nextToken; private bool? _sampling; private SamplingStrategy _samplingStrategy; private DateTime? _startTime; private TimeRangeType _timeRangeType; /// /// Gets and sets the property EndTime. /// /// The end of the time frame for which to retrieve traces. /// /// [AWSProperty(Required=true)] public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// /// Gets and sets the property FilterExpression. /// /// Specify a filter expression to retrieve trace summaries for services or requests that /// meet certain requirements. /// /// public string FilterExpression { get { return this._filterExpression; } set { this._filterExpression = value; } } // Check to see if FilterExpression property is set internal bool IsSetFilterExpression() { return this._filterExpression != null; } /// /// Gets and sets the property NextToken. /// /// Specify the pagination token returned by a previous request to retrieve the next page /// of results. /// /// public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// /// Gets and sets the property Sampling. /// /// Set to true to get summaries for only a subset of available traces. /// /// public bool Sampling { get { return this._sampling.GetValueOrDefault(); } set { this._sampling = value; } } // Check to see if Sampling property is set internal bool IsSetSampling() { return this._sampling.HasValue; } /// /// Gets and sets the property SamplingStrategy. /// /// A parameter to indicate whether to enable sampling on trace summaries. Input parameters /// are Name and Value. /// /// public SamplingStrategy SamplingStrategy { get { return this._samplingStrategy; } set { this._samplingStrategy = value; } } // Check to see if SamplingStrategy property is set internal bool IsSetSamplingStrategy() { return this._samplingStrategy != null; } /// /// Gets and sets the property StartTime. /// /// The start of the time frame for which to retrieve traces. /// /// [AWSProperty(Required=true)] public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// /// Gets and sets the property TimeRangeType. /// /// A parameter to indicate whether to query trace summaries by TraceId or Event time. /// /// public TimeRangeType TimeRangeType { get { return this._timeRangeType; } set { this._timeRangeType = value; } } // Check to see if TimeRangeType property is set internal bool IsSetTimeRangeType() { return this._timeRangeType != null; } } }