/*
* 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
{
///
/// Information about an application that processed requests, users that made requests,
/// or downstream services, resources, and applications that an application used.
///
public partial class Service
{
private string _accountId;
private List _durationHistogram = new List();
private List _edges = new List();
private DateTime? _endTime;
private string _name;
private List _names = new List();
private int? _referenceId;
private List _responseTimeHistogram = new List();
private bool? _root;
private DateTime? _startTime;
private string _state;
private ServiceStatistics _summaryStatistics;
private string _type;
///
/// Gets and sets the property AccountId.
///
/// Identifier of the Amazon Web Services account in which the service runs.
///
///
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
///
/// Gets and sets the property DurationHistogram.
///
/// A histogram that maps the spread of service durations.
///
///
public List DurationHistogram
{
get { return this._durationHistogram; }
set { this._durationHistogram = value; }
}
// Check to see if DurationHistogram property is set
internal bool IsSetDurationHistogram()
{
return this._durationHistogram != null && this._durationHistogram.Count > 0;
}
///
/// Gets and sets the property Edges.
///
/// Connections to downstream services.
///
///
public List Edges
{
get { return this._edges; }
set { this._edges = value; }
}
// Check to see if Edges property is set
internal bool IsSetEdges()
{
return this._edges != null && this._edges.Count > 0;
}
///
/// Gets and sets the property EndTime.
///
/// The end time of the last segment that the service generated.
///
///
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 Name.
///
/// The canonical name of the service.
///
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Names.
///
/// A list of names for the service, including the canonical name.
///
///
public List Names
{
get { return this._names; }
set { this._names = value; }
}
// Check to see if Names property is set
internal bool IsSetNames()
{
return this._names != null && this._names.Count > 0;
}
///
/// Gets and sets the property ReferenceId.
///
/// Identifier for the service. Unique within the service map.
///
///
public int ReferenceId
{
get { return this._referenceId.GetValueOrDefault(); }
set { this._referenceId = value; }
}
// Check to see if ReferenceId property is set
internal bool IsSetReferenceId()
{
return this._referenceId.HasValue;
}
///
/// Gets and sets the property ResponseTimeHistogram.
///
/// A histogram that maps the spread of service response times.
///
///
public List ResponseTimeHistogram
{
get { return this._responseTimeHistogram; }
set { this._responseTimeHistogram = value; }
}
// Check to see if ResponseTimeHistogram property is set
internal bool IsSetResponseTimeHistogram()
{
return this._responseTimeHistogram != null && this._responseTimeHistogram.Count > 0;
}
///
/// Gets and sets the property Root.
///
/// Indicates that the service was the first service to process a request.
///
///
public bool Root
{
get { return this._root.GetValueOrDefault(); }
set { this._root = value; }
}
// Check to see if Root property is set
internal bool IsSetRoot()
{
return this._root.HasValue;
}
///
/// Gets and sets the property StartTime.
///
/// The start time of the first segment that the service generated.
///
///
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 State.
///
/// The service's state.
///
///
public string State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property SummaryStatistics.
///
/// Aggregated statistics for the service.
///
///
public ServiceStatistics SummaryStatistics
{
get { return this._summaryStatistics; }
set { this._summaryStatistics = value; }
}
// Check to see if SummaryStatistics property is set
internal bool IsSetSummaryStatistics()
{
return this._summaryStatistics != null;
}
///
/// Gets and sets the property Type.
///
/// The type of service.
///
/// -
///
/// Amazon Web Services Resource - The type of an Amazon Web Services resource. For example,
///
AWS::EC2::Instance
for an application running on Amazon EC2 or AWS::DynamoDB::Table
/// for an Amazon DynamoDB table that the application used.
///
/// -
///
/// Amazon Web Services Service - The type of an Amazon Web Services service. For example,
///
AWS::DynamoDB
for downstream calls to Amazon DynamoDB that didn't target
/// a specific table.
///
/// -
///
///
client
- Represents the clients that sent requests to a root service.
///
/// -
///
///
remote
- A downstream service of indeterminate type.
///
///
///
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}