repo_name stringlengths 1 52 | repo_creator stringclasses 6
values | programming_language stringclasses 4
values | code stringlengths 0 9.68M | num_lines int64 1 234k |
|---|---|---|---|---|
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the DeleteMetricStream operation.
/// </summary>
public partial class DeleteMetricStreamResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the DescribeAlarmHistory operation.
/// Retrieves the history for the specified alarm. You can filter the results by date
/// range or item type. If an alarm name is not specified, the histories for either all
/// metric alarms or all composite alarms are returned.
///
///
/// <para>
/// CloudWatch retains the history of an alarm even if you delete the alarm.
/// </para>
///
/// <para>
/// To use this operation and return information about a composite alarm, you must be
/// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is
/// scoped to <code>*</code>. You can't return information about composite alarms if your
/// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope.
/// </para>
/// </summary>
public partial class DescribeAlarmHistoryRequest : AmazonCloudWatchRequest
{
private string _alarmName;
private List<string> _alarmTypes = new List<string>();
private DateTime? _endDateUtc;
private HistoryItemType _historyItemType;
private int? _maxRecords;
private string _nextToken;
private ScanBy _scanBy;
private DateTime? _startDateUtc;
/// <summary>
/// Gets and sets the property AlarmName.
/// <para>
/// The name of the alarm.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AlarmName
{
get { return this._alarmName; }
set { this._alarmName = value; }
}
// Check to see if AlarmName property is set
internal bool IsSetAlarmName()
{
return this._alarmName != null;
}
/// <summary>
/// Gets and sets the property AlarmTypes.
/// <para>
/// Use this parameter to specify whether you want the operation to return metric alarms
/// or composite alarms. If you omit this parameter, only metric alarms are returned.
/// </para>
/// </summary>
public List<string> AlarmTypes
{
get { return this._alarmTypes; }
set { this._alarmTypes = value; }
}
// Check to see if AlarmTypes property is set
internal bool IsSetAlarmTypes()
{
return this._alarmTypes != null && this._alarmTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property EndDateUtc.
/// <para>
/// The ending date to retrieve alarm history.
/// </para>
/// </summary>
public DateTime EndDateUtc
{
get { return this._endDateUtc.GetValueOrDefault(); }
set { this._endDate = this._endDateUtc = value; }
}
// Check to see if EndDateUtc property is set
internal bool IsSetEndDateUtc()
{
return this._endDateUtc.HasValue;
}
/// <summary>
/// Gets and sets the property HistoryItemType.
/// <para>
/// The type of alarm histories to retrieve.
/// </para>
/// </summary>
public HistoryItemType HistoryItemType
{
get { return this._historyItemType; }
set { this._historyItemType = value; }
}
// Check to see if HistoryItemType property is set
internal bool IsSetHistoryItemType()
{
return this._historyItemType != null;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of alarm history records to retrieve.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to indicate that there is more data available.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property ScanBy.
/// <para>
/// Specified whether to return the newest or oldest alarm history first. Specify <code>TimestampDescending</code>
/// to have the newest event history returned first, and specify <code>TimestampAscending</code>
/// to have the oldest history returned first.
/// </para>
/// </summary>
public ScanBy ScanBy
{
get { return this._scanBy; }
set { this._scanBy = value; }
}
// Check to see if ScanBy property is set
internal bool IsSetScanBy()
{
return this._scanBy != null;
}
/// <summary>
/// Gets and sets the property StartDateUtc.
/// <para>
/// The starting date to retrieve alarm history.
/// </para>
/// </summary>
public DateTime StartDateUtc
{
get { return this._startDateUtc.GetValueOrDefault(); }
set { this._startDate = this._startDateUtc = value; }
}
// Check to see if StartDateUtc property is set
internal bool IsSetStartDateUtc()
{
return this._startDateUtc.HasValue;
}
#region Backwards compatible properties
private DateTime? _endDate;
private DateTime? _startDate;
/// <summary>
/// Gets and sets the property EndDateUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use EndDateUtc instead. Setting either EndDate or EndDateUtc
/// results in both EndDate and EndDateUtc being assigned, the latest assignment to either
/// one of the two property is reflected in the value of both. EndDate is provided for
/// backwards compatibility only and assigning a non-Utc DateTime to it results in the
/// wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The ending date to retrieve alarm history.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use EndDateUtc instead. Setting either EndDate or EndDateUtc results in both EndDate and " +
"EndDateUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. EndDate is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime EndDate
{
get { return this._endDate.GetValueOrDefault(); }
set
{
this._endDate = value;
this._endDateUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
/// <summary>
/// Gets and sets the property StartDateUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use StartDateUtc instead. Setting either StartDate or
/// StartDateUtc results in both StartDate and StartDateUtc being assigned, the latest
/// assignment to either one of the two property is reflected in the value of both. StartDate
/// is provided for backwards compatibility only and assigning a non-Utc DateTime to it
/// results in the wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The starting date to retrieve alarm history.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use StartDateUtc instead. Setting either StartDate or StartDateUtc results in both StartDate and " +
"StartDateUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. StartDate is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime StartDate
{
get { return this._startDate.GetValueOrDefault(); }
set
{
this._startDate = value;
this._startDateUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
#endregion
}
} | 273 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the DescribeAlarmHistory operation.
/// </summary>
public partial class DescribeAlarmHistoryResponse : AmazonWebServiceResponse
{
private List<AlarmHistoryItem> _alarmHistoryItems = new List<AlarmHistoryItem>();
private string _nextToken;
/// <summary>
/// Gets and sets the property AlarmHistoryItems.
/// <para>
/// The alarm histories, in JSON format.
/// </para>
/// </summary>
public List<AlarmHistoryItem> AlarmHistoryItems
{
get { return this._alarmHistoryItems; }
set { this._alarmHistoryItems = value; }
}
// Check to see if AlarmHistoryItems property is set
internal bool IsSetAlarmHistoryItems()
{
return this._alarmHistoryItems != null && this._alarmHistoryItems.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token that marks the start of the next batch of returned results.
/// </para>
/// </summary>
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;
}
}
} | 76 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the DescribeAlarmsForMetric operation.
/// Retrieves the alarms for the specified metric. To filter the results, specify a statistic,
/// period, or unit.
///
///
/// <para>
/// This operation retrieves only standard alarms that are based on the specified metric.
/// It does not return alarms based on math expressions that use the specified metric,
/// or composite alarms that use the specified metric.
/// </para>
/// </summary>
public partial class DescribeAlarmsForMetricRequest : AmazonCloudWatchRequest
{
private List<Dimension> _dimensions = new List<Dimension>();
private string _extendedStatistic;
private string _metricName;
private string _awsNamespace;
private int? _period;
private Statistic _statistic;
private StandardUnit _unit;
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions associated with the metric. If the metric has any associated dimensions,
/// you must specify them in order for the call to succeed.
/// </para>
/// </summary>
[AWSProperty(Max=30)]
public List<Dimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property ExtendedStatistic.
/// <para>
/// The percentile statistic for the metric. Specify a value between p0.0 and p100.
/// </para>
/// </summary>
public string ExtendedStatistic
{
get { return this._extendedStatistic; }
set { this._extendedStatistic = value; }
}
// Check to see if ExtendedStatistic property is set
internal bool IsSetExtendedStatistic()
{
return this._extendedStatistic != null;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
/// <summary>
/// Gets and sets the property Period.
/// <para>
/// The period, in seconds, over which the statistic is applied.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int Period
{
get { return this._period.GetValueOrDefault(); }
set { this._period = value; }
}
// Check to see if Period property is set
internal bool IsSetPeriod()
{
return this._period.HasValue;
}
/// <summary>
/// Gets and sets the property Statistic.
/// <para>
/// The statistic for the metric, other than percentiles. For percentile statistics, use
/// <code>ExtendedStatistics</code>.
/// </para>
/// </summary>
public Statistic Statistic
{
get { return this._statistic; }
set { this._statistic = value; }
}
// Check to see if Statistic property is set
internal bool IsSetStatistic()
{
return this._statistic != null;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// The unit for the metric.
/// </para>
/// </summary>
public StandardUnit Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
}
} | 186 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the DescribeAlarmsForMetric operation.
/// </summary>
public partial class DescribeAlarmsForMetricResponse : AmazonWebServiceResponse
{
private List<MetricAlarm> _metricAlarms = new List<MetricAlarm>();
/// <summary>
/// Gets and sets the property MetricAlarms.
/// <para>
/// The information for each alarm with the specified metric.
/// </para>
/// </summary>
public List<MetricAlarm> MetricAlarms
{
get { return this._metricAlarms; }
set { this._metricAlarms = value; }
}
// Check to see if MetricAlarms property is set
internal bool IsSetMetricAlarms()
{
return this._metricAlarms != null && this._metricAlarms.Count > 0;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the DescribeAlarms operation.
/// Retrieves the specified alarms. You can filter the results by specifying a prefix
/// for the alarm name, the alarm state, or a prefix for any action.
///
///
/// <para>
/// To use this operation and return information about composite alarms, you must be signed
/// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>.
/// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code>
/// permission has a narrower scope.
/// </para>
/// </summary>
public partial class DescribeAlarmsRequest : AmazonCloudWatchRequest
{
private string _actionPrefix;
private string _alarmNamePrefix;
private List<string> _alarmNames = new List<string>();
private List<string> _alarmTypes = new List<string>();
private string _childrenOfAlarmName;
private int? _maxRecords;
private string _nextToken;
private string _parentsOfAlarmName;
private StateValue _stateValue;
/// <summary>
/// Gets and sets the property ActionPrefix.
/// <para>
/// Use this parameter to filter the results of the operation to only those alarms that
/// use a certain alarm action. For example, you could specify the ARN of an SNS topic
/// to find all alarms that send notifications to that topic.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string ActionPrefix
{
get { return this._actionPrefix; }
set { this._actionPrefix = value; }
}
// Check to see if ActionPrefix property is set
internal bool IsSetActionPrefix()
{
return this._actionPrefix != null;
}
/// <summary>
/// Gets and sets the property AlarmNamePrefix.
/// <para>
/// An alarm name prefix. If you specify this parameter, you receive information about
/// all alarms that have names that start with this prefix.
/// </para>
///
/// <para>
/// If this parameter is specified, you cannot specify <code>AlarmNames</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AlarmNamePrefix
{
get { return this._alarmNamePrefix; }
set { this._alarmNamePrefix = value; }
}
// Check to see if AlarmNamePrefix property is set
internal bool IsSetAlarmNamePrefix()
{
return this._alarmNamePrefix != null;
}
/// <summary>
/// Gets and sets the property AlarmNames.
/// <para>
/// The names of the alarms to retrieve information about.
/// </para>
/// </summary>
[AWSProperty(Max=100)]
public List<string> AlarmNames
{
get { return this._alarmNames; }
set { this._alarmNames = value; }
}
// Check to see if AlarmNames property is set
internal bool IsSetAlarmNames()
{
return this._alarmNames != null && this._alarmNames.Count > 0;
}
/// <summary>
/// Gets and sets the property AlarmTypes.
/// <para>
/// Use this parameter to specify whether you want the operation to return metric alarms
/// or composite alarms. If you omit this parameter, only metric alarms are returned.
/// </para>
/// </summary>
public List<string> AlarmTypes
{
get { return this._alarmTypes; }
set { this._alarmTypes = value; }
}
// Check to see if AlarmTypes property is set
internal bool IsSetAlarmTypes()
{
return this._alarmTypes != null && this._alarmTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property ChildrenOfAlarmName.
/// <para>
/// If you use this parameter and specify the name of a composite alarm, the operation
/// returns information about the "children" alarms of the alarm you specify. These are
/// the metric alarms and composite alarms referenced in the <code>AlarmRule</code> field
/// of the composite alarm that you specify in <code>ChildrenOfAlarmName</code>. Information
/// about the composite alarm that you name in <code>ChildrenOfAlarmName</code> is not
/// returned.
/// </para>
///
/// <para>
/// If you specify <code>ChildrenOfAlarmName</code>, you cannot specify any other parameters
/// in the request except for <code>MaxRecords</code> and <code>NextToken</code>. If you
/// do so, you receive a validation error.
/// </para>
/// <note>
/// <para>
/// Only the <code>Alarm Name</code>, <code>ARN</code>, <code>StateValue</code> (OK/ALARM/INSUFFICIENT_DATA),
/// and <code>StateUpdatedTimestamp</code> information are returned by this operation
/// when you use this parameter. To get complete information about these alarms, perform
/// another <code>DescribeAlarms</code> operation and specify the parent alarm names in
/// the <code>AlarmNames</code> parameter.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ChildrenOfAlarmName
{
get { return this._childrenOfAlarmName; }
set { this._childrenOfAlarmName = value; }
}
// Check to see if ChildrenOfAlarmName property is set
internal bool IsSetChildrenOfAlarmName()
{
return this._childrenOfAlarmName != null;
}
/// <summary>
/// Gets and sets the property MaxRecords.
/// <para>
/// The maximum number of alarm descriptions to retrieve.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int MaxRecords
{
get { return this._maxRecords.GetValueOrDefault(); }
set { this._maxRecords = value; }
}
// Check to see if MaxRecords property is set
internal bool IsSetMaxRecords()
{
return this._maxRecords.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to indicate that there is more data available.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property ParentsOfAlarmName.
/// <para>
/// If you use this parameter and specify the name of a metric or composite alarm, the
/// operation returns information about the "parent" alarms of the alarm you specify.
/// These are the composite alarms that have <code>AlarmRule</code> parameters that reference
/// the alarm named in <code>ParentsOfAlarmName</code>. Information about the alarm that
/// you specify in <code>ParentsOfAlarmName</code> is not returned.
/// </para>
///
/// <para>
/// If you specify <code>ParentsOfAlarmName</code>, you cannot specify any other parameters
/// in the request except for <code>MaxRecords</code> and <code>NextToken</code>. If you
/// do so, you receive a validation error.
/// </para>
/// <note>
/// <para>
/// Only the Alarm Name and ARN are returned by this operation when you use this parameter.
/// To get complete information about these alarms, perform another <code>DescribeAlarms</code>
/// operation and specify the parent alarm names in the <code>AlarmNames</code> parameter.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ParentsOfAlarmName
{
get { return this._parentsOfAlarmName; }
set { this._parentsOfAlarmName = value; }
}
// Check to see if ParentsOfAlarmName property is set
internal bool IsSetParentsOfAlarmName()
{
return this._parentsOfAlarmName != null;
}
/// <summary>
/// Gets and sets the property StateValue.
/// <para>
/// Specify this parameter to receive information only about alarms that are currently
/// in the state that you specify.
/// </para>
/// </summary>
public StateValue StateValue
{
get { return this._stateValue; }
set { this._stateValue = value; }
}
// Check to see if StateValue property is set
internal bool IsSetStateValue()
{
return this._stateValue != null;
}
}
} | 271 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the DescribeAlarms operation.
/// </summary>
public partial class DescribeAlarmsResponse : AmazonWebServiceResponse
{
private List<CompositeAlarm> _compositeAlarms = new List<CompositeAlarm>();
private List<MetricAlarm> _metricAlarms = new List<MetricAlarm>();
private string _nextToken;
/// <summary>
/// Gets and sets the property CompositeAlarms.
/// <para>
/// The information about any composite alarms returned by the operation.
/// </para>
/// </summary>
public List<CompositeAlarm> CompositeAlarms
{
get { return this._compositeAlarms; }
set { this._compositeAlarms = value; }
}
// Check to see if CompositeAlarms property is set
internal bool IsSetCompositeAlarms()
{
return this._compositeAlarms != null && this._compositeAlarms.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricAlarms.
/// <para>
/// The information about any metric alarms returned by the operation.
/// </para>
/// </summary>
public List<MetricAlarm> MetricAlarms
{
get { return this._metricAlarms; }
set { this._metricAlarms = value; }
}
// Check to see if MetricAlarms property is set
internal bool IsSetMetricAlarms()
{
return this._metricAlarms != null && this._metricAlarms.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token that marks the start of the next batch of returned results.
/// </para>
/// </summary>
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;
}
}
} | 95 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the DescribeAnomalyDetectors operation.
/// Lists the anomaly detection models that you have created in your account. For single
/// metric anomaly detectors, you can list all of the models in your account or filter
/// the results to only the models that are related to a certain namespace, metric name,
/// or metric dimension. For metric math anomaly detectors, you can list them by adding
/// <code>METRIC_MATH</code> to the <code>AnomalyDetectorTypes</code> array. This will
/// return all metric math anomaly detectors in your account.
/// </summary>
public partial class DescribeAnomalyDetectorsRequest : AmazonCloudWatchRequest
{
private List<string> _anomalyDetectorTypes = new List<string>();
private List<Dimension> _dimensions = new List<Dimension>();
private int? _maxResults;
private string _metricName;
private string _awsNamespace;
private string _nextToken;
/// <summary>
/// Gets and sets the property AnomalyDetectorTypes.
/// <para>
/// The anomaly detector types to request when using <code>DescribeAnomalyDetectorsInput</code>.
/// If empty, defaults to <code>SINGLE_METRIC</code>.
/// </para>
/// </summary>
[AWSProperty(Max=2)]
public List<string> AnomalyDetectorTypes
{
get { return this._anomalyDetectorTypes; }
set { this._anomalyDetectorTypes = value; }
}
// Check to see if AnomalyDetectorTypes property is set
internal bool IsSetAnomalyDetectorTypes()
{
return this._anomalyDetectorTypes != null && this._anomalyDetectorTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// Limits the results to only the anomaly detection models that are associated with the
/// specified metric dimensions. If there are multiple metrics that have these dimensions
/// and have anomaly detection models associated, they're all returned.
/// </para>
/// </summary>
[AWSProperty(Max=30)]
public List<Dimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return in one operation. The maximum value that you
/// can specify is 100.
/// </para>
///
/// <para>
/// To retrieve the remaining results, make another call with the returned <code>NextToken</code>
/// value.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// Limits the results to only the anomaly detection models that are associated with the
/// specified metric name. If there are multiple metrics with this name in different namespaces
/// that have anomaly detection models, they're all returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// Limits the results to only the anomaly detection models that are associated with the
/// specified namespace.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Use the token returned by the previous operation to request the next page of results.
/// </para>
/// </summary>
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;
}
}
} | 175 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the DescribeAnomalyDetectors operation.
/// </summary>
public partial class DescribeAnomalyDetectorsResponse : AmazonWebServiceResponse
{
private List<AnomalyDetector> _anomalyDetectors = new List<AnomalyDetector>();
private string _nextToken;
/// <summary>
/// Gets and sets the property AnomalyDetectors.
/// <para>
/// The list of anomaly detection models returned by the operation.
/// </para>
/// </summary>
public List<AnomalyDetector> AnomalyDetectors
{
get { return this._anomalyDetectors; }
set { this._anomalyDetectors = value; }
}
// Check to see if AnomalyDetectors property is set
internal bool IsSetAnomalyDetectors()
{
return this._anomalyDetectors != null && this._anomalyDetectors.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token that you can use in a subsequent operation to retrieve the next set of results.
/// </para>
/// </summary>
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;
}
}
} | 76 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the DescribeInsightRules operation.
/// Returns a list of all the Contributor Insights rules in your account.
///
///
/// <para>
/// For more information about Contributor Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using
/// Contributor Insights to Analyze High-Cardinality Data</a>.
/// </para>
/// </summary>
public partial class DescribeInsightRulesRequest : AmazonCloudWatchRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return in one operation. If you omit this parameter,
/// the default of 500 is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=500)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Include this value, if it was returned by the previous operation, to get the next
/// set of rules.
/// </para>
/// </summary>
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;
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the DescribeInsightRules operation.
/// </summary>
public partial class DescribeInsightRulesResponse : AmazonWebServiceResponse
{
private List<InsightRule> _insightRules = new List<InsightRule>();
private string _nextToken;
/// <summary>
/// Gets and sets the property InsightRules.
/// <para>
/// The rules returned by the operation.
/// </para>
/// </summary>
public List<InsightRule> InsightRules
{
get { return this._insightRules; }
set { this._insightRules = value; }
}
// Check to see if InsightRules property is set
internal bool IsSetInsightRules()
{
return this._insightRules != null && this._insightRules.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If this parameter is present, it is a token that marks the start of the next batch
/// of returned results.
/// </para>
/// </summary>
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;
}
}
} | 77 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// A dimension is a name/value pair that is part of the identity of a metric. Because
/// dimensions are part of the unique identifier for a metric, whenever you add a unique
/// name/value pair to one of your metrics, you are creating a new variation of that metric.
/// For example, many Amazon EC2 metrics publish <code>InstanceId</code> as a dimension
/// name, and the actual instance ID as the value for that dimension.
///
///
/// <para>
/// You can assign up to 30 dimensions to a metric.
/// </para>
/// </summary>
public partial class Dimension
{
private string _name;
private string _value;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the dimension. Dimension names must contain only ASCII characters, must
/// include at least one non-whitespace character, and cannot start with a colon (<code>:</code>).
/// ASCII control characters are not supported as part of dimension names.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
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;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value of the dimension. Dimension values must contain only ASCII characters and
/// must include at least one non-whitespace character. ASCII control characters are not
/// supported as part of dimension values.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 91 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Represents filters for a dimension.
/// </summary>
public partial class DimensionFilter
{
private string _name;
private string _value;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The dimension name to be matched.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
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;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value of the dimension to be matched.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 78 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the DisableAlarmActions operation.
/// Disables the actions for the specified alarms. When an alarm's actions are disabled,
/// the alarm actions do not execute when the alarm state changes.
/// </summary>
public partial class DisableAlarmActionsRequest : AmazonCloudWatchRequest
{
private List<string> _alarmNames = new List<string>();
/// <summary>
/// Gets and sets the property AlarmNames.
/// <para>
/// The names of the alarms.
/// </para>
/// </summary>
[AWSProperty(Required=true, Max=100)]
public List<string> AlarmNames
{
get { return this._alarmNames; }
set { this._alarmNames = value; }
}
// Check to see if AlarmNames property is set
internal bool IsSetAlarmNames()
{
return this._alarmNames != null && this._alarmNames.Count > 0;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the DisableAlarmActions operation.
/// </summary>
public partial class DisableAlarmActionsResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the DisableInsightRules operation.
/// Disables the specified Contributor Insights rules. When rules are disabled, they do
/// not analyze log groups and do not incur costs.
/// </summary>
public partial class DisableInsightRulesRequest : AmazonCloudWatchRequest
{
private List<string> _ruleNames = new List<string>();
/// <summary>
/// Gets and sets the property RuleNames.
/// <para>
/// An array of the rule names to disable. If you need to find out the names of your rules,
/// use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html">DescribeInsightRules</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> RuleNames
{
get { return this._ruleNames; }
set { this._ruleNames = value; }
}
// Check to see if RuleNames property is set
internal bool IsSetRuleNames()
{
return this._ruleNames != null && this._ruleNames.Count > 0;
}
}
} | 61 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the DisableInsightRules operation.
/// </summary>
public partial class DisableInsightRulesResponse : AmazonWebServiceResponse
{
private List<PartialFailure> _failures = new List<PartialFailure>();
/// <summary>
/// Gets and sets the property Failures.
/// <para>
/// An array listing the rules that could not be disabled. You cannot disable built-in
/// rules.
/// </para>
/// </summary>
public List<PartialFailure> Failures
{
get { return this._failures; }
set { this._failures = value; }
}
// Check to see if Failures property is set
internal bool IsSetFailures()
{
return this._failures != null && this._failures.Count > 0;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the EnableAlarmActions operation.
/// Enables the actions for the specified alarms.
/// </summary>
public partial class EnableAlarmActionsRequest : AmazonCloudWatchRequest
{
private List<string> _alarmNames = new List<string>();
/// <summary>
/// Gets and sets the property AlarmNames.
/// <para>
/// The names of the alarms.
/// </para>
/// </summary>
[AWSProperty(Required=true, Max=100)]
public List<string> AlarmNames
{
get { return this._alarmNames; }
set { this._alarmNames = value; }
}
// Check to see if AlarmNames property is set
internal bool IsSetAlarmNames()
{
return this._alarmNames != null && this._alarmNames.Count > 0;
}
}
} | 59 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the EnableAlarmActions operation.
/// </summary>
public partial class EnableAlarmActionsResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the EnableInsightRules operation.
/// Enables the specified Contributor Insights rules. When rules are enabled, they immediately
/// begin analyzing log data.
/// </summary>
public partial class EnableInsightRulesRequest : AmazonCloudWatchRequest
{
private List<string> _ruleNames = new List<string>();
/// <summary>
/// Gets and sets the property RuleNames.
/// <para>
/// An array of the rule names to enable. If you need to find out the names of your rules,
/// use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html">DescribeInsightRules</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> RuleNames
{
get { return this._ruleNames; }
set { this._ruleNames = value; }
}
// Check to see if RuleNames property is set
internal bool IsSetRuleNames()
{
return this._ruleNames != null && this._ruleNames.Count > 0;
}
}
} | 61 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the EnableInsightRules operation.
/// </summary>
public partial class EnableInsightRulesResponse : AmazonWebServiceResponse
{
private List<PartialFailure> _failures = new List<PartialFailure>();
/// <summary>
/// Gets and sets the property Failures.
/// <para>
/// An array listing the rules that could not be enabled. You cannot disable or enable
/// built-in rules.
/// </para>
/// </summary>
public List<PartialFailure> Failures
{
get { return this._failures; }
set { this._failures = value; }
}
// Check to see if Failures property is set
internal bool IsSetFailures()
{
return this._failures != null && this._failures.Count > 0;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the GetDashboard operation.
/// Displays the details of the dashboard that you specify.
///
///
/// <para>
/// To copy an existing dashboard, use <code>GetDashboard</code>, and then use the data
/// returned within <code>DashboardBody</code> as the template for the new dashboard when
/// you call <code>PutDashboard</code> to create the copy.
/// </para>
/// </summary>
public partial class GetDashboardRequest : AmazonCloudWatchRequest
{
private string _dashboardName;
/// <summary>
/// Gets and sets the property DashboardName.
/// <para>
/// The name of the dashboard to be described.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DashboardName
{
get { return this._dashboardName; }
set { this._dashboardName = value; }
}
// Check to see if DashboardName property is set
internal bool IsSetDashboardName()
{
return this._dashboardName != null;
}
}
} | 66 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the GetDashboard operation.
/// </summary>
public partial class GetDashboardResponse : AmazonWebServiceResponse
{
private string _dashboardArn;
private string _dashboardBody;
private string _dashboardName;
/// <summary>
/// Gets and sets the property DashboardArn.
/// <para>
/// The Amazon Resource Name (ARN) of the dashboard.
/// </para>
/// </summary>
public string DashboardArn
{
get { return this._dashboardArn; }
set { this._dashboardArn = value; }
}
// Check to see if DashboardArn property is set
internal bool IsSetDashboardArn()
{
return this._dashboardArn != null;
}
/// <summary>
/// Gets and sets the property DashboardBody.
/// <para>
/// The detailed information about the dashboard, including what widgets are included
/// and their location on the dashboard. For more information about the <code>DashboardBody</code>
/// syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html">Dashboard
/// Body Structure and Syntax</a>.
/// </para>
/// </summary>
public string DashboardBody
{
get { return this._dashboardBody; }
set { this._dashboardBody = value; }
}
// Check to see if DashboardBody property is set
internal bool IsSetDashboardBody()
{
return this._dashboardBody != null;
}
/// <summary>
/// Gets and sets the property DashboardName.
/// <para>
/// The name of the dashboard.
/// </para>
/// </summary>
public string DashboardName
{
get { return this._dashboardName; }
set { this._dashboardName = value; }
}
// Check to see if DashboardName property is set
internal bool IsSetDashboardName()
{
return this._dashboardName != null;
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the GetInsightRuleReport operation.
/// This operation returns the time series data collected by a Contributor Insights rule.
/// The data includes the identity and number of contributors to the log group.
///
///
/// <para>
/// You can also optionally return one or more statistics about each data point in the
/// time series. These statistics can include the following:
/// </para>
/// <ul> <li>
/// <para>
/// <code>UniqueContributors</code> -- the number of unique contributors for each data
/// point.
/// </para>
/// </li> <li>
/// <para>
/// <code>MaxContributorValue</code> -- the value of the top contributor for each data
/// point. The identity of the contributor might change for each data point in the graph.
/// </para>
///
/// <para>
/// If this rule aggregates by COUNT, the top contributor for each data point is the contributor
/// with the most occurrences in that period. If the rule aggregates by SUM, the top contributor
/// is the contributor with the highest sum in the log field specified by the rule's <code>Value</code>,
/// during that period.
/// </para>
/// </li> <li>
/// <para>
/// <code>SampleCount</code> -- the number of data points matched by the rule.
/// </para>
/// </li> <li>
/// <para>
/// <code>Sum</code> -- the sum of the values from all contributors during the time period
/// represented by that data point.
/// </para>
/// </li> <li>
/// <para>
/// <code>Minimum</code> -- the minimum value from a single observation during the time
/// period represented by that data point.
/// </para>
/// </li> <li>
/// <para>
/// <code>Maximum</code> -- the maximum value from a single observation during the time
/// period represented by that data point.
/// </para>
/// </li> <li>
/// <para>
/// <code>Average</code> -- the average value from all contributors during the time period
/// represented by that data point.
/// </para>
/// </li> </ul>
/// </summary>
public partial class GetInsightRuleReportRequest : AmazonCloudWatchRequest
{
private DateTime? _endTime;
private int? _maxContributorCount;
private List<string> _metrics = new List<string>();
private string _orderBy;
private int? _period;
private string _ruleName;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The end time of the data to use in the report. When used in a raw HTTP Query API,
/// it is formatted as <code>yyyy-MM-dd'T'HH:mm:ss</code>. For example, <code>2019-07-01T23:59:59</code>.
/// </para>
/// </summary>
[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;
}
/// <summary>
/// Gets and sets the property MaxContributorCount.
/// <para>
/// The maximum number of contributors to include in the report. The range is 1 to 100.
/// If you omit this, the default of 10 is used.
/// </para>
/// </summary>
public int MaxContributorCount
{
get { return this._maxContributorCount.GetValueOrDefault(); }
set { this._maxContributorCount = value; }
}
// Check to see if MaxContributorCount property is set
internal bool IsSetMaxContributorCount()
{
return this._maxContributorCount.HasValue;
}
/// <summary>
/// Gets and sets the property Metrics.
/// <para>
/// Specifies which metrics to use for aggregation of contributor values for the report.
/// You can specify one or more of the following metrics:
/// </para>
/// <ul> <li>
/// <para>
/// <code>UniqueContributors</code> -- the number of unique contributors for each data
/// point.
/// </para>
/// </li> <li>
/// <para>
/// <code>MaxContributorValue</code> -- the value of the top contributor for each data
/// point. The identity of the contributor might change for each data point in the graph.
/// </para>
///
/// <para>
/// If this rule aggregates by COUNT, the top contributor for each data point is the contributor
/// with the most occurrences in that period. If the rule aggregates by SUM, the top contributor
/// is the contributor with the highest sum in the log field specified by the rule's <code>Value</code>,
/// during that period.
/// </para>
/// </li> <li>
/// <para>
/// <code>SampleCount</code> -- the number of data points matched by the rule.
/// </para>
/// </li> <li>
/// <para>
/// <code>Sum</code> -- the sum of the values from all contributors during the time period
/// represented by that data point.
/// </para>
/// </li> <li>
/// <para>
/// <code>Minimum</code> -- the minimum value from a single observation during the time
/// period represented by that data point.
/// </para>
/// </li> <li>
/// <para>
/// <code>Maximum</code> -- the maximum value from a single observation during the time
/// period represented by that data point.
/// </para>
/// </li> <li>
/// <para>
/// <code>Average</code> -- the average value from all contributors during the time period
/// represented by that data point.
/// </para>
/// </li> </ul>
/// </summary>
public List<string> Metrics
{
get { return this._metrics; }
set { this._metrics = value; }
}
// Check to see if Metrics property is set
internal bool IsSetMetrics()
{
return this._metrics != null && this._metrics.Count > 0;
}
/// <summary>
/// Gets and sets the property OrderBy.
/// <para>
/// Determines what statistic to use to rank the contributors. Valid values are SUM and
/// MAXIMUM.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string OrderBy
{
get { return this._orderBy; }
set { this._orderBy = value; }
}
// Check to see if OrderBy property is set
internal bool IsSetOrderBy()
{
return this._orderBy != null;
}
/// <summary>
/// Gets and sets the property Period.
/// <para>
/// The period, in seconds, to use for the statistics in the <code>InsightRuleMetricDatapoint</code>
/// results.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1)]
public int Period
{
get { return this._period.GetValueOrDefault(); }
set { this._period = value; }
}
// Check to see if Period property is set
internal bool IsSetPeriod()
{
return this._period.HasValue;
}
/// <summary>
/// Gets and sets the property RuleName.
/// <para>
/// The name of the rule that you want to see data from.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
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;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The start time of the data to use in the report. When used in a raw HTTP Query API,
/// it is formatted as <code>yyyy-MM-dd'T'HH:mm:ss</code>. For example, <code>2019-07-01T23:59:59</code>.
/// </para>
/// </summary>
[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;
}
}
} | 274 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the GetInsightRuleReport operation.
/// </summary>
public partial class GetInsightRuleReportResponse : AmazonWebServiceResponse
{
private double? _aggregateValue;
private string _aggregationStatistic;
private long? _approximateUniqueCount;
private List<InsightRuleContributor> _contributors = new List<InsightRuleContributor>();
private List<string> _keyLabels = new List<string>();
private List<InsightRuleMetricDatapoint> _metricDatapoints = new List<InsightRuleMetricDatapoint>();
/// <summary>
/// Gets and sets the property AggregateValue.
/// <para>
/// The sum of the values from all individual contributors that match the rule.
/// </para>
/// </summary>
public double AggregateValue
{
get { return this._aggregateValue.GetValueOrDefault(); }
set { this._aggregateValue = value; }
}
// Check to see if AggregateValue property is set
internal bool IsSetAggregateValue()
{
return this._aggregateValue.HasValue;
}
/// <summary>
/// Gets and sets the property AggregationStatistic.
/// <para>
/// Specifies whether this rule aggregates contributor data by COUNT or SUM.
/// </para>
/// </summary>
public string AggregationStatistic
{
get { return this._aggregationStatistic; }
set { this._aggregationStatistic = value; }
}
// Check to see if AggregationStatistic property is set
internal bool IsSetAggregationStatistic()
{
return this._aggregationStatistic != null;
}
/// <summary>
/// Gets and sets the property ApproximateUniqueCount.
/// <para>
/// An approximate count of the unique contributors found by this rule in this time period.
/// </para>
/// </summary>
public long ApproximateUniqueCount
{
get { return this._approximateUniqueCount.GetValueOrDefault(); }
set { this._approximateUniqueCount = value; }
}
// Check to see if ApproximateUniqueCount property is set
internal bool IsSetApproximateUniqueCount()
{
return this._approximateUniqueCount.HasValue;
}
/// <summary>
/// Gets and sets the property Contributors.
/// <para>
/// An array of the unique contributors found by this rule in this time period. If the
/// rule contains multiple keys, each combination of values for the keys counts as a unique
/// contributor.
/// </para>
/// </summary>
public List<InsightRuleContributor> Contributors
{
get { return this._contributors; }
set { this._contributors = value; }
}
// Check to see if Contributors property is set
internal bool IsSetContributors()
{
return this._contributors != null && this._contributors.Count > 0;
}
/// <summary>
/// Gets and sets the property KeyLabels.
/// <para>
/// An array of the strings used as the keys for this rule. The keys are the dimensions
/// used to classify contributors. If the rule contains more than one key, then each unique
/// combination of values for the keys is counted as a unique contributor.
/// </para>
/// </summary>
public List<string> KeyLabels
{
get { return this._keyLabels; }
set { this._keyLabels = value; }
}
// Check to see if KeyLabels property is set
internal bool IsSetKeyLabels()
{
return this._keyLabels != null && this._keyLabels.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricDatapoints.
/// <para>
/// A time series of metric data points that matches the time period in the rule request.
/// </para>
/// </summary>
public List<InsightRuleMetricDatapoint> MetricDatapoints
{
get { return this._metricDatapoints; }
set { this._metricDatapoints = value; }
}
// Check to see if MetricDatapoints property is set
internal bool IsSetMetricDatapoints()
{
return this._metricDatapoints != null && this._metricDatapoints.Count > 0;
}
}
} | 156 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the GetMetricData operation.
/// You can use the <code>GetMetricData</code> API to retrieve CloudWatch metric values.
/// The operation can also include a CloudWatch Metrics Insights query, and one or more
/// metric math functions.
///
///
/// <para>
/// A <code>GetMetricData</code> operation that does not include a query can retrieve
/// as many as 500 different metrics in a single request, with a total of as many as 100,800
/// data points. You can also optionally perform metric math expressions on the values
/// of the returned statistics, to create new time series that represent new insights
/// into your data. For example, using Lambda metrics, you could divide the Errors metric
/// by the Invocations metric to get an error rate time series. For more information about
/// metric math expressions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric
/// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
///
/// <para>
/// If you include a Metrics Insights query, each <code>GetMetricData</code> operation
/// can include only one query. But the same <code>GetMetricData</code> operation can
/// also retrieve other metrics. Metrics Insights queries can query only the most recent
/// three hours of metric data. For more information about Metrics Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html">Query
/// your metrics with CloudWatch Metrics Insights</a>.
/// </para>
///
/// <para>
/// Calls to the <code>GetMetricData</code> API have a different pricing structure than
/// calls to <code>GetMetricStatistics</code>. For more information about pricing, see
/// <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>.
/// </para>
///
/// <para>
/// Amazon CloudWatch retains metric data as follows:
/// </para>
/// <ul> <li>
/// <para>
/// Data points with a period of less than 60 seconds are available for 3 hours. These
/// data points are high-resolution metrics and are available only for custom metrics
/// that have been defined with a <code>StorageResolution</code> of 1.
/// </para>
/// </li> <li>
/// <para>
/// Data points with a period of 60 seconds (1-minute) are available for 15 days.
/// </para>
/// </li> <li>
/// <para>
/// Data points with a period of 300 seconds (5-minute) are available for 63 days.
/// </para>
/// </li> <li>
/// <para>
/// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15
/// months).
/// </para>
/// </li> </ul>
/// <para>
/// Data points that are initially published with a shorter period are aggregated together
/// for long-term storage. For example, if you collect data using a period of 1 minute,
/// the data remains available for 15 days with 1-minute resolution. After 15 days, this
/// data is still available, but is aggregated and retrievable only with a resolution
/// of 5 minutes. After 63 days, the data is further aggregated and is available with
/// a resolution of 1 hour.
/// </para>
///
/// <para>
/// If you omit <code>Unit</code> in your request, all data that was collected with any
/// unit is returned, along with the corresponding units that were specified when the
/// data was reported to CloudWatch. If you specify a unit, the operation returns only
/// data that was collected with that unit specified. If you specify a unit that does
/// not match the data collected, the results of the operation are null. CloudWatch does
/// not perform unit conversions.
/// </para>
///
/// <para>
/// <b>Using Metrics Insights queries with metric math</b>
/// </para>
///
/// <para>
/// You can't mix a Metric Insights query and metric math syntax in the same expression,
/// but you can reference results from a Metrics Insights query within other Metric math
/// expressions. A Metrics Insights query without a <b>GROUP BY</b> clause returns a single
/// time-series (TS), and can be used as input for a metric math expression that expects
/// a single time series. A Metrics Insights query with a <b>GROUP BY</b> clause returns
/// an array of time-series (TS[]), and can be used as input for a metric math expression
/// that expects an array of time series.
/// </para>
/// </summary>
public partial class GetMetricDataRequest : AmazonCloudWatchRequest
{
private DateTime? _endTimeUtc;
private LabelOptions _labelOptions;
private int? _maxDatapoints;
private List<MetricDataQuery> _metricDataQueries = new List<MetricDataQuery>();
private string _nextToken;
private ScanBy _scanBy;
private DateTime? _startTimeUtc;
/// <summary>
/// Gets and sets the property EndTimeUtc.
/// <para>
/// The time stamp indicating the latest data to be returned.
/// </para>
///
/// <para>
/// The value specified is exclusive; results include data points up to the specified
/// time stamp.
/// </para>
///
/// <para>
/// For better performance, specify <code>StartTime</code> and <code>EndTime</code> values
/// that align with the value of the metric's <code>Period</code> and sync up with the
/// beginning and end of an hour. For example, if the <code>Period</code> of a metric
/// is 5 minutes, specifying 12:05 or 12:30 as <code>EndTime</code> can get a faster response
/// from CloudWatch than setting 12:07 or 12:29 as the <code>EndTime</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime EndTimeUtc
{
get { return this._endTimeUtc.GetValueOrDefault(); }
set { this._endTime = this._endTimeUtc = value; }
}
// Check to see if EndTimeUtc property is set
internal bool IsSetEndTimeUtc()
{
return this._endTimeUtc.HasValue;
}
/// <summary>
/// Gets and sets the property LabelOptions.
/// <para>
/// This structure includes the <code>Timezone</code> parameter, which you can use to
/// specify your time zone so that the labels of returned data display the correct time
/// for your time zone.
/// </para>
/// </summary>
public LabelOptions LabelOptions
{
get { return this._labelOptions; }
set { this._labelOptions = value; }
}
// Check to see if LabelOptions property is set
internal bool IsSetLabelOptions()
{
return this._labelOptions != null;
}
/// <summary>
/// Gets and sets the property MaxDatapoints.
/// <para>
/// The maximum number of data points the request should return before paginating. If
/// you omit this, the default of 100,800 is used.
/// </para>
/// </summary>
public int MaxDatapoints
{
get { return this._maxDatapoints.GetValueOrDefault(); }
set { this._maxDatapoints = value; }
}
// Check to see if MaxDatapoints property is set
internal bool IsSetMaxDatapoints()
{
return this._maxDatapoints.HasValue;
}
/// <summary>
/// Gets and sets the property MetricDataQueries.
/// <para>
/// The metric queries to be returned. A single <code>GetMetricData</code> call can include
/// as many as 500 <code>MetricDataQuery</code> structures. Each of these structures can
/// specify either a metric to retrieve, a Metrics Insights query, or a math expression
/// to perform on retrieved data.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<MetricDataQuery> MetricDataQueries
{
get { return this._metricDataQueries; }
set { this._metricDataQueries = value; }
}
// Check to see if MetricDataQueries property is set
internal bool IsSetMetricDataQueries()
{
return this._metricDataQueries != null && this._metricDataQueries.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Include this value, if it was returned by the previous <code>GetMetricData</code>
/// operation, to get the next set of data points.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property ScanBy.
/// <para>
/// The order in which data points should be returned. <code>TimestampDescending</code>
/// returns the newest data first and paginates when the <code>MaxDatapoints</code> limit
/// is reached. <code>TimestampAscending</code> returns the oldest data first and paginates
/// when the <code>MaxDatapoints</code> limit is reached.
/// </para>
/// </summary>
public ScanBy ScanBy
{
get { return this._scanBy; }
set { this._scanBy = value; }
}
// Check to see if ScanBy property is set
internal bool IsSetScanBy()
{
return this._scanBy != null;
}
/// <summary>
/// Gets and sets the property StartTimeUtc.
/// <para>
/// The time stamp indicating the earliest data to be returned.
/// </para>
///
/// <para>
/// The value specified is inclusive; results include data points with the specified time
/// stamp.
/// </para>
///
/// <para>
/// CloudWatch rounds the specified time stamp as follows:
/// </para>
/// <ul> <li>
/// <para>
/// Start time less than 15 days ago - Round down to the nearest whole minute. For example,
/// 12:32:34 is rounded down to 12:32:00.
/// </para>
/// </li> <li>
/// <para>
/// Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval.
/// For example, 12:32:34 is rounded down to 12:30:00.
/// </para>
/// </li> <li>
/// <para>
/// Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval.
/// For example, 12:32:34 is rounded down to 12:00:00.
/// </para>
/// </li> </ul>
/// <para>
/// If you set <code>Period</code> to 5, 10, or 30, the start time of your request is
/// rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions
/// of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous
/// 10-second period, the start time of your request is rounded down and you receive data
/// from 01:05:10 to 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes
/// of data, using a period of 5 seconds, you receive data timestamped between 15:02:15
/// and 15:07:15.
/// </para>
///
/// <para>
/// For better performance, specify <code>StartTime</code> and <code>EndTime</code> values
/// that align with the value of the metric's <code>Period</code> and sync up with the
/// beginning and end of an hour. For example, if the <code>Period</code> of a metric
/// is 5 minutes, specifying 12:05 or 12:30 as <code>StartTime</code> can get a faster
/// response from CloudWatch than setting 12:07 or 12:29 as the <code>StartTime</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime StartTimeUtc
{
get { return this._startTimeUtc.GetValueOrDefault(); }
set { this._startTime = this._startTimeUtc = value; }
}
// Check to see if StartTimeUtc property is set
internal bool IsSetStartTimeUtc()
{
return this._startTimeUtc.HasValue;
}
#region Backwards compatible properties
private DateTime? _endTime;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property EndTimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc
/// results in both EndTime and EndTimeUtc being assigned, the latest assignment to either
/// one of the two property is reflected in the value of both. EndTime is provided for
/// backwards compatibility only and assigning a non-Utc DateTime to it results in the
/// wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The time stamp indicating the latest data to be returned.
/// </para>
///
/// <para>
/// The value specified is exclusive; results include data points up to the specified
/// time stamp.
/// </para>
///
/// <para>
/// For better performance, specify <code>StartTime</code> and <code>EndTime</code> values
/// that align with the value of the metric's <code>Period</code> and sync up with the
/// beginning and end of an hour. For example, if the <code>Period</code> of a metric
/// is 5 minutes, specifying 12:05 or 12:30 as <code>EndTime</code> can get a faster response
/// from CloudWatch than setting 12:07 or 12:29 as the <code>EndTime</code>.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc results in both EndTime and " +
"EndTimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. EndTime is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set
{
this._endTime = value;
this._endTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
/// <summary>
/// Gets and sets the property StartTimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use StartTimeUtc instead. Setting either StartTime or
/// StartTimeUtc results in both StartTime and StartTimeUtc being assigned, the latest
/// assignment to either one of the two property is reflected in the value of both. StartTime
/// is provided for backwards compatibility only and assigning a non-Utc DateTime to it
/// results in the wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The time stamp indicating the earliest data to be returned.
/// </para>
///
/// <para>
/// The value specified is inclusive; results include data points with the specified time
/// stamp.
/// </para>
///
/// <para>
/// CloudWatch rounds the specified time stamp as follows:
/// </para>
/// <ul> <li>
/// <para>
/// Start time less than 15 days ago - Round down to the nearest whole minute. For example,
/// 12:32:34 is rounded down to 12:32:00.
/// </para>
/// </li> <li>
/// <para>
/// Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval.
/// For example, 12:32:34 is rounded down to 12:30:00.
/// </para>
/// </li> <li>
/// <para>
/// Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval.
/// For example, 12:32:34 is rounded down to 12:00:00.
/// </para>
/// </li> </ul>
/// <para>
/// If you set <code>Period</code> to 5, 10, or 30, the start time of your request is
/// rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions
/// of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous
/// 10-second period, the start time of your request is rounded down and you receive data
/// from 01:05:10 to 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes
/// of data, using a period of 5 seconds, you receive data timestamped between 15:02:15
/// and 15:07:15.
/// </para>
///
/// <para>
/// For better performance, specify <code>StartTime</code> and <code>EndTime</code> values
/// that align with the value of the metric's <code>Period</code> and sync up with the
/// beginning and end of an hour. For example, if the <code>Period</code> of a metric
/// is 5 minutes, specifying 12:05 or 12:30 as <code>StartTime</code> can get a faster
/// response from CloudWatch than setting 12:07 or 12:29 as the <code>StartTime</code>.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use StartTimeUtc instead. Setting either StartTime or StartTimeUtc results in both StartTime and " +
"StartTimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. StartTime is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set
{
this._startTime = value;
this._startTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
#endregion
}
} | 441 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the GetMetricData operation.
/// </summary>
public partial class GetMetricDataResponse : AmazonWebServiceResponse
{
private List<MessageData> _messages = new List<MessageData>();
private List<MetricDataResult> _metricDataResults = new List<MetricDataResult>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Messages.
/// <para>
/// Contains a message about this <code>GetMetricData</code> operation, if the operation
/// results in such a message. An example of a message that might be returned is <code>Maximum
/// number of allowed metrics exceeded</code>. If there is a message, as much of the operation
/// as possible is still executed.
/// </para>
///
/// <para>
/// A message appears here only if it is related to the global <code>GetMetricData</code>
/// operation. Any message about a specific metric returned by the operation appears in
/// the <code>MetricDataResult</code> object returned for that metric.
/// </para>
/// </summary>
public List<MessageData> Messages
{
get { return this._messages; }
set { this._messages = value; }
}
// Check to see if Messages property is set
internal bool IsSetMessages()
{
return this._messages != null && this._messages.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricDataResults.
/// <para>
/// The metrics that are returned, including the metric name, namespace, and dimensions.
/// </para>
/// </summary>
public List<MetricDataResult> MetricDataResults
{
get { return this._metricDataResults; }
set { this._metricDataResults = value; }
}
// Check to see if MetricDataResults property is set
internal bool IsSetMetricDataResults()
{
return this._metricDataResults != null && this._metricDataResults.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token that marks the next batch of returned results.
/// </para>
/// </summary>
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;
}
}
} | 104 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the GetMetricStatistics operation.
/// Gets statistics for the specified metric.
///
///
/// <para>
/// The maximum number of data points returned from a single call is 1,440. If you request
/// more than 1,440 data points, CloudWatch returns an error. To reduce the number of
/// data points, you can narrow the specified time range and make multiple requests across
/// adjacent time ranges, or you can increase the specified period. Data points are not
/// returned in chronological order.
/// </para>
///
/// <para>
/// CloudWatch aggregates data points based on the length of the period that you specify.
/// For example, if you request statistics with a one-hour period, CloudWatch aggregates
/// all data points with time stamps that fall within each one-hour period. Therefore,
/// the number of values aggregated by CloudWatch is larger than the number of data points
/// returned.
/// </para>
///
/// <para>
/// CloudWatch needs raw data points to calculate percentile statistics. If you publish
/// data using a statistic set instead, you can only retrieve percentile statistics for
/// this data if one of the following conditions is true:
/// </para>
/// <ul> <li>
/// <para>
/// The SampleCount value of the statistic set is 1.
/// </para>
/// </li> <li>
/// <para>
/// The Min and the Max values of the statistic set are equal.
/// </para>
/// </li> </ul>
/// <para>
/// Percentile statistics are not available for metrics when any of the metric values
/// are negative numbers.
/// </para>
///
/// <para>
/// Amazon CloudWatch retains metric data as follows:
/// </para>
/// <ul> <li>
/// <para>
/// Data points with a period of less than 60 seconds are available for 3 hours. These
/// data points are high-resolution metrics and are available only for custom metrics
/// that have been defined with a <code>StorageResolution</code> of 1.
/// </para>
/// </li> <li>
/// <para>
/// Data points with a period of 60 seconds (1-minute) are available for 15 days.
/// </para>
/// </li> <li>
/// <para>
/// Data points with a period of 300 seconds (5-minute) are available for 63 days.
/// </para>
/// </li> <li>
/// <para>
/// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15
/// months).
/// </para>
/// </li> </ul>
/// <para>
/// Data points that are initially published with a shorter period are aggregated together
/// for long-term storage. For example, if you collect data using a period of 1 minute,
/// the data remains available for 15 days with 1-minute resolution. After 15 days, this
/// data is still available, but is aggregated and retrievable only with a resolution
/// of 5 minutes. After 63 days, the data is further aggregated and is available with
/// a resolution of 1 hour.
/// </para>
///
/// <para>
/// CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.
/// </para>
///
/// <para>
/// For information about metrics and dimensions supported by Amazon Web Services services,
/// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html">Amazon
/// CloudWatch Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
/// </summary>
public partial class GetMetricStatisticsRequest : AmazonCloudWatchRequest
{
private List<Dimension> _dimensions = new List<Dimension>();
private DateTime? _endTimeUtc;
private List<string> _extendedStatistics = new List<string>();
private string _metricName;
private string _awsNamespace;
private int? _period;
private DateTime? _startTimeUtc;
private List<string> _statistics = new List<string>();
private StandardUnit _unit;
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions. If the metric contains multiple dimensions, you must include a value
/// for each dimension. CloudWatch treats each unique combination of dimensions as a separate
/// metric. If a specific combination of dimensions was not published, you can't retrieve
/// statistics for it. You must specify the same dimensions that were used when the metrics
/// were created. For an example, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#dimension-combinations">Dimension
/// Combinations</a> in the <i>Amazon CloudWatch User Guide</i>. For more information
/// about specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing
/// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Max=30)]
public List<Dimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property EndTimeUtc.
/// <para>
/// The time stamp that determines the last data point to return.
/// </para>
///
/// <para>
/// The value specified is exclusive; results include data points up to the specified
/// time stamp. In a raw HTTP query, the time stamp must be in ISO 8601 UTC format (for
/// example, 2016-10-10T23:00:00Z).
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime EndTimeUtc
{
get { return this._endTimeUtc.GetValueOrDefault(); }
set { this._endTime = this._endTimeUtc = value; }
}
// Check to see if EndTimeUtc property is set
internal bool IsSetEndTimeUtc()
{
return this._endTimeUtc.HasValue;
}
/// <summary>
/// Gets and sets the property ExtendedStatistics.
/// <para>
/// The percentile statistics. Specify values between p0.0 and p100. When calling <code>GetMetricStatistics</code>,
/// you must specify either <code>Statistics</code> or <code>ExtendedStatistics</code>,
/// but not both. Percentile statistics are not available for metrics when any of the
/// metric values are negative numbers.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=10)]
public List<string> ExtendedStatistics
{
get { return this._extendedStatistics; }
set { this._extendedStatistics = value; }
}
// Check to see if ExtendedStatistics property is set
internal bool IsSetExtendedStatistics()
{
return this._extendedStatistics != null && this._extendedStatistics.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric, with or without spaces.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric, with or without spaces.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
/// <summary>
/// Gets and sets the property Period.
/// <para>
/// The granularity, in seconds, of the returned data points. For metrics with regular
/// resolution, a period can be as short as one minute (60 seconds) and must be a multiple
/// of 60. For high-resolution metrics that are collected at intervals of less than one
/// minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution
/// metrics are those metrics stored by a <code>PutMetricData</code> call that includes
/// a <code>StorageResolution</code> of 1 second.
/// </para>
///
/// <para>
/// If the <code>StartTime</code> parameter specifies a time stamp that is greater than
/// 3 hours ago, you must specify the period as follows or no data points in that time
/// range is returned:
/// </para>
/// <ul> <li>
/// <para>
/// Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
/// </para>
/// </li> <li>
/// <para>
/// Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
/// </para>
/// </li> <li>
/// <para>
/// Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1)]
public int Period
{
get { return this._period.GetValueOrDefault(); }
set { this._period = value; }
}
// Check to see if Period property is set
internal bool IsSetPeriod()
{
return this._period.HasValue;
}
/// <summary>
/// Gets and sets the property StartTimeUtc.
/// <para>
/// The time stamp that determines the first data point to return. Start times are evaluated
/// relative to the time that CloudWatch receives the request.
/// </para>
///
/// <para>
/// The value specified is inclusive; results include data points with the specified time
/// stamp. In a raw HTTP query, the time stamp must be in ISO 8601 UTC format (for example,
/// 2016-10-03T23:00:00Z).
/// </para>
///
/// <para>
/// CloudWatch rounds the specified time stamp as follows:
/// </para>
/// <ul> <li>
/// <para>
/// Start time less than 15 days ago - Round down to the nearest whole minute. For example,
/// 12:32:34 is rounded down to 12:32:00.
/// </para>
/// </li> <li>
/// <para>
/// Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval.
/// For example, 12:32:34 is rounded down to 12:30:00.
/// </para>
/// </li> <li>
/// <para>
/// Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval.
/// For example, 12:32:34 is rounded down to 12:00:00.
/// </para>
/// </li> </ul>
/// <para>
/// If you set <code>Period</code> to 5, 10, or 30, the start time of your request is
/// rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions
/// of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous
/// 10-second period, the start time of your request is rounded down and you receive data
/// from 01:05:10 to 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes
/// of data, using a period of 5 seconds, you receive data timestamped between 15:02:15
/// and 15:07:15.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime StartTimeUtc
{
get { return this._startTimeUtc.GetValueOrDefault(); }
set { this._startTime = this._startTimeUtc = value; }
}
// Check to see if StartTimeUtc property is set
internal bool IsSetStartTimeUtc()
{
return this._startTimeUtc.HasValue;
}
/// <summary>
/// Gets and sets the property Statistics.
/// <para>
/// The metric statistics, other than percentile. For percentile statistics, use <code>ExtendedStatistics</code>.
/// When calling <code>GetMetricStatistics</code>, you must specify either <code>Statistics</code>
/// or <code>ExtendedStatistics</code>, but not both.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=5)]
public List<string> Statistics
{
get { return this._statistics; }
set { this._statistics = value; }
}
// Check to see if Statistics property is set
internal bool IsSetStatistics()
{
return this._statistics != null && this._statistics.Count > 0;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// The unit for a given metric. If you omit <code>Unit</code>, all data that was collected
/// with any unit is returned, along with the corresponding units that were specified
/// when the data was reported to CloudWatch. If you specify a unit, the operation returns
/// only data that was collected with that unit specified. If you specify a unit that
/// does not match the data collected, the results of the operation are null. CloudWatch
/// does not perform unit conversions.
/// </para>
/// </summary>
public StandardUnit Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
#region Backwards compatible properties
private DateTime? _endTime;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property EndTimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc
/// results in both EndTime and EndTimeUtc being assigned, the latest assignment to either
/// one of the two property is reflected in the value of both. EndTime is provided for
/// backwards compatibility only and assigning a non-Utc DateTime to it results in the
/// wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The time stamp that determines the last data point to return.
/// </para>
///
/// <para>
/// The value specified is exclusive; results include data points up to the specified
/// time stamp. In a raw HTTP query, the time stamp must be in ISO 8601 UTC format (for
/// example, 2016-10-10T23:00:00Z).
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc results in both EndTime and " +
"EndTimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. EndTime is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set
{
this._endTime = value;
this._endTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
/// <summary>
/// Gets and sets the property StartTimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use StartTimeUtc instead. Setting either StartTime or
/// StartTimeUtc results in both StartTime and StartTimeUtc being assigned, the latest
/// assignment to either one of the two property is reflected in the value of both. StartTime
/// is provided for backwards compatibility only and assigning a non-Utc DateTime to it
/// results in the wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The time stamp that determines the first data point to return. Start times are evaluated
/// relative to the time that CloudWatch receives the request.
/// </para>
///
/// <para>
/// The value specified is inclusive; results include data points with the specified time
/// stamp. In a raw HTTP query, the time stamp must be in ISO 8601 UTC format (for example,
/// 2016-10-03T23:00:00Z).
/// </para>
///
/// <para>
/// CloudWatch rounds the specified time stamp as follows:
/// </para>
/// <ul> <li>
/// <para>
/// Start time less than 15 days ago - Round down to the nearest whole minute. For example,
/// 12:32:34 is rounded down to 12:32:00.
/// </para>
/// </li> <li>
/// <para>
/// Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval.
/// For example, 12:32:34 is rounded down to 12:30:00.
/// </para>
/// </li> <li>
/// <para>
/// Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval.
/// For example, 12:32:34 is rounded down to 12:00:00.
/// </para>
/// </li> </ul>
/// <para>
/// If you set <code>Period</code> to 5, 10, or 30, the start time of your request is
/// rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions
/// of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous
/// 10-second period, the start time of your request is rounded down and you receive data
/// from 01:05:10 to 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes
/// of data, using a period of 5 seconds, you receive data timestamped between 15:02:15
/// and 15:07:15.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use StartTimeUtc instead. Setting either StartTime or StartTimeUtc results in both StartTime and " +
"StartTimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. StartTime is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set
{
this._startTime = value;
this._startTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
#endregion
}
} | 484 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the GetMetricStatistics operation.
/// </summary>
public partial class GetMetricStatisticsResponse : AmazonWebServiceResponse
{
private List<Datapoint> _datapoints = new List<Datapoint>();
private string _label;
/// <summary>
/// Gets and sets the property Datapoints.
/// <para>
/// The data points for the specified metric.
/// </para>
/// </summary>
public List<Datapoint> Datapoints
{
get { return this._datapoints; }
set { this._datapoints = value; }
}
// Check to see if Datapoints property is set
internal bool IsSetDatapoints()
{
return this._datapoints != null && this._datapoints.Count > 0;
}
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// A label for the specified metric.
/// </para>
/// </summary>
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
}
} | 76 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the GetMetricStream operation.
/// Returns information about the metric stream that you specify.
/// </summary>
public partial class GetMetricStreamRequest : AmazonCloudWatchRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the metric stream to retrieve information about.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
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;
}
}
} | 59 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the GetMetricStream operation.
/// </summary>
public partial class GetMetricStreamResponse : AmazonWebServiceResponse
{
private string _arn;
private DateTime? _creationDate;
private List<MetricStreamFilter> _excludeFilters = new List<MetricStreamFilter>();
private string _firehoseArn;
private List<MetricStreamFilter> _includeFilters = new List<MetricStreamFilter>();
private bool? _includeLinkedAccountsMetrics;
private DateTime? _lastUpdateDate;
private string _name;
private MetricStreamOutputFormat _outputFormat;
private string _roleArn;
private string _state;
private List<MetricStreamStatisticsConfiguration> _statisticsConfigurations = new List<MetricStreamStatisticsConfiguration>();
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the metric stream.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date that the metric stream was created.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property ExcludeFilters.
/// <para>
/// If this array of metric namespaces is present, then these namespaces are the only
/// metric namespaces that are not streamed by this metric stream. In this case, all other
/// metric namespaces in the account are streamed by this metric stream.
/// </para>
/// </summary>
public List<MetricStreamFilter> ExcludeFilters
{
get { return this._excludeFilters; }
set { this._excludeFilters = value; }
}
// Check to see if ExcludeFilters property is set
internal bool IsSetExcludeFilters()
{
return this._excludeFilters != null && this._excludeFilters.Count > 0;
}
/// <summary>
/// Gets and sets the property FirehoseArn.
/// <para>
/// The ARN of the Amazon Kinesis Data Firehose delivery stream that is used by this metric
/// stream.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string FirehoseArn
{
get { return this._firehoseArn; }
set { this._firehoseArn = value; }
}
// Check to see if FirehoseArn property is set
internal bool IsSetFirehoseArn()
{
return this._firehoseArn != null;
}
/// <summary>
/// Gets and sets the property IncludeFilters.
/// <para>
/// If this array of metric namespaces is present, then these namespaces are the only
/// metric namespaces that are streamed by this metric stream.
/// </para>
/// </summary>
public List<MetricStreamFilter> IncludeFilters
{
get { return this._includeFilters; }
set { this._includeFilters = value; }
}
// Check to see if IncludeFilters property is set
internal bool IsSetIncludeFilters()
{
return this._includeFilters != null && this._includeFilters.Count > 0;
}
/// <summary>
/// Gets and sets the property IncludeLinkedAccountsMetrics.
/// <para>
/// If this is <code>true</code> and this metric stream is in a monitoring account, then
/// the stream includes metrics from source accounts that the monitoring account is linked
/// to.
/// </para>
/// </summary>
public bool IncludeLinkedAccountsMetrics
{
get { return this._includeLinkedAccountsMetrics.GetValueOrDefault(); }
set { this._includeLinkedAccountsMetrics = value; }
}
// Check to see if IncludeLinkedAccountsMetrics property is set
internal bool IsSetIncludeLinkedAccountsMetrics()
{
return this._includeLinkedAccountsMetrics.HasValue;
}
/// <summary>
/// Gets and sets the property LastUpdateDate.
/// <para>
/// The date of the most recent update to the metric stream's configuration.
/// </para>
/// </summary>
public DateTime LastUpdateDate
{
get { return this._lastUpdateDate.GetValueOrDefault(); }
set { this._lastUpdateDate = value; }
}
// Check to see if LastUpdateDate property is set
internal bool IsSetLastUpdateDate()
{
return this._lastUpdateDate.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the metric stream.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
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;
}
/// <summary>
/// Gets and sets the property OutputFormat.
/// <para>
/// The output format for the stream. Valid values are <code>json</code> and <code>opentelemetry0.7</code>.
/// For more information about metric stream output formats, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html">Metric
/// streams output formats</a>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public MetricStreamOutputFormat OutputFormat
{
get { return this._outputFormat; }
set { this._outputFormat = value; }
}
// Check to see if OutputFormat property is set
internal bool IsSetOutputFormat()
{
return this._outputFormat != null;
}
/// <summary>
/// Gets and sets the property RoleArn.
/// <para>
/// The ARN of the IAM role that is used by this metric stream.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The state of the metric stream. The possible values are <code>running</code> and <code>stopped</code>.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property StatisticsConfigurations.
/// <para>
/// Each entry in this array displays information about one or more metrics that include
/// additional statistics in the metric stream. For more information about the additional
/// statistics, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html">
/// CloudWatch statistics definitions</a>.
/// </para>
/// </summary>
public List<MetricStreamStatisticsConfiguration> StatisticsConfigurations
{
get { return this._statisticsConfigurations; }
set { this._statisticsConfigurations = value; }
}
// Check to see if StatisticsConfigurations property is set
internal bool IsSetStatisticsConfigurations()
{
return this._statisticsConfigurations != null && this._statisticsConfigurations.Count > 0;
}
}
} | 282 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the GetMetricWidgetImage operation.
/// You can use the <code>GetMetricWidgetImage</code> API to retrieve a snapshot graph
/// of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this
/// image into your services and products, such as wiki pages, reports, and documents.
/// You could also retrieve images regularly, such as every minute, and create your own
/// custom live dashboard.
///
///
/// <para>
/// The graph you retrieve can include all CloudWatch metric graph features, including
/// metric math and horizontal and vertical annotations.
/// </para>
///
/// <para>
/// There is a limit of 20 transactions per second for this API. Each <code>GetMetricWidgetImage</code>
/// action has the following limits:
/// </para>
/// <ul> <li>
/// <para>
/// As many as 100 metrics in the graph.
/// </para>
/// </li> <li>
/// <para>
/// Up to 100 KB uncompressed payload.
/// </para>
/// </li> </ul>
/// </summary>
public partial class GetMetricWidgetImageRequest : AmazonCloudWatchRequest
{
private string _metricWidget;
private string _outputFormat;
/// <summary>
/// Gets and sets the property MetricWidget.
/// <para>
/// A JSON string that defines the bitmap graph to be retrieved. The string includes the
/// metrics to include in the graph, statistics, annotations, title, axis limits, and
/// so on. You can include only one <code>MetricWidget</code> parameter in each <code>GetMetricWidgetImage</code>
/// call.
/// </para>
///
/// <para>
/// For more information about the syntax of <code>MetricWidget</code> see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Metric-Widget-Structure.html">GetMetricWidgetImage:
/// Metric Widget Structure and Syntax</a>.
/// </para>
///
/// <para>
/// If any metric on the graph could not load all the requested data points, an orange
/// triangle with an exclamation point appears next to the graph legend.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string MetricWidget
{
get { return this._metricWidget; }
set { this._metricWidget = value; }
}
// Check to see if MetricWidget property is set
internal bool IsSetMetricWidget()
{
return this._metricWidget != null;
}
/// <summary>
/// Gets and sets the property OutputFormat.
/// <para>
/// The format of the resulting image. Only PNG images are supported.
/// </para>
///
/// <para>
/// The default is <code>png</code>. If you specify <code>png</code>, the API returns
/// an HTTP response with the content-type set to <code>text/xml</code>. The image data
/// is in a <code>MetricWidgetImage</code> field. For example:
/// </para>
///
/// <para>
/// <code> <GetMetricWidgetImageResponse xmlns=<URLstring>></code>
/// </para>
///
/// <para>
/// <code> <GetMetricWidgetImageResult></code>
/// </para>
///
/// <para>
/// <code> <MetricWidgetImage></code>
/// </para>
///
/// <para>
/// <code> iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...</code>
/// </para>
///
/// <para>
/// <code> </MetricWidgetImage></code>
/// </para>
///
/// <para>
/// <code> </GetMetricWidgetImageResult></code>
/// </para>
///
/// <para>
/// <code> <ResponseMetadata></code>
/// </para>
///
/// <para>
/// <code> <RequestId>6f0d4192-4d42-11e8-82c1-f539a07e0e3b</RequestId></code>
///
/// </para>
///
/// <para>
/// <code> </ResponseMetadata></code>
/// </para>
///
/// <para>
/// <code></GetMetricWidgetImageResponse></code>
/// </para>
///
/// <para>
/// The <code>image/png</code> setting is intended only for custom HTTP requests. For
/// most use cases, and all actions using an Amazon Web Services SDK, you should use <code>png</code>.
/// If you specify <code>image/png</code>, the HTTP response has a content-type set to
/// <code>image/png</code>, and the body of the response is a PNG image.
/// </para>
/// </summary>
public string OutputFormat
{
get { return this._outputFormat; }
set { this._outputFormat = value; }
}
// Check to see if OutputFormat property is set
internal bool IsSetOutputFormat()
{
return this._outputFormat != null;
}
}
} | 169 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the GetMetricWidgetImage operation.
/// </summary>
public partial class GetMetricWidgetImageResponse : AmazonWebServiceResponse
{
private MemoryStream _metricWidgetImage;
/// <summary>
/// Gets and sets the property MetricWidgetImage.
/// <para>
/// The image of the graph, in the output format specified. The output is base64-encoded.
/// </para>
/// </summary>
public MemoryStream MetricWidgetImage
{
get { return this._metricWidgetImage; }
set { this._metricWidgetImage = value; }
}
// Check to see if MetricWidgetImage property is set
internal bool IsSetMetricWidgetImage()
{
return this._metricWidgetImage != null;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This structure contains the definition for a Contributor Insights rule. For more information
/// about this rule, see<a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">
/// Using Constributor Insights to analyze high-cardinality data</a> in the <i>Amazon
/// CloudWatch User Guide</i>.
/// </summary>
public partial class InsightRule
{
private string _definition;
private bool? _managedRule;
private string _name;
private string _schema;
private string _state;
/// <summary>
/// Gets and sets the property Definition.
/// <para>
/// The definition of the rule, as a JSON object. The definition contains the keywords
/// used to define contributors, the value to aggregate on if this rule returns a sum
/// instead of a count, and the filters. For details on the valid syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html">Contributor
/// Insights Rule Syntax</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=8192)]
public string Definition
{
get { return this._definition; }
set { this._definition = value; }
}
// Check to see if Definition property is set
internal bool IsSetDefinition()
{
return this._definition != null;
}
/// <summary>
/// Gets and sets the property ManagedRule.
/// <para>
/// An optional built-in rule that Amazon Web Services manages.
/// </para>
/// </summary>
public bool ManagedRule
{
get { return this._managedRule.GetValueOrDefault(); }
set { this._managedRule = value; }
}
// Check to see if ManagedRule property is set
internal bool IsSetManagedRule()
{
return this._managedRule.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
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;
}
/// <summary>
/// Gets and sets the property Schema.
/// <para>
/// For rules that you create, this is always <code>{"Name": "CloudWatchLogRule", "Version":
/// 1}</code>. For managed rules, this is <code>{"Name": "ServiceLogRule", "Version":
/// 1}</code>
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Schema
{
get { return this._schema; }
set { this._schema = value; }
}
// Check to see if Schema property is set
internal bool IsSetSchema()
{
return this._schema != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// Indicates whether the rule is enabled or disabled.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=32)]
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;
}
}
} | 145 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// One of the unique contributors found by a Contributor Insights rule. If the rule contains
/// multiple keys, then a unique contributor is a unique combination of values from all
/// the keys in the rule.
///
///
/// <para>
/// If the rule contains a single key, then each unique contributor is each unique value
/// for this key.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetInsightRuleReport.html">GetInsightRuleReport</a>.
/// </para>
/// </summary>
public partial class InsightRuleContributor
{
private double? _approximateAggregateValue;
private List<InsightRuleContributorDatapoint> _datapoints = new List<InsightRuleContributorDatapoint>();
private List<string> _keys = new List<string>();
/// <summary>
/// Gets and sets the property ApproximateAggregateValue.
/// <para>
/// An approximation of the aggregate value that comes from this contributor.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public double ApproximateAggregateValue
{
get { return this._approximateAggregateValue.GetValueOrDefault(); }
set { this._approximateAggregateValue = value; }
}
// Check to see if ApproximateAggregateValue property is set
internal bool IsSetApproximateAggregateValue()
{
return this._approximateAggregateValue.HasValue;
}
/// <summary>
/// Gets and sets the property Datapoints.
/// <para>
/// An array of the data points where this contributor is present. Only the data points
/// when this contributor appeared are included in the array.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<InsightRuleContributorDatapoint> Datapoints
{
get { return this._datapoints; }
set { this._datapoints = value; }
}
// Check to see if Datapoints property is set
internal bool IsSetDatapoints()
{
return this._datapoints != null && this._datapoints.Count > 0;
}
/// <summary>
/// Gets and sets the property Keys.
/// <para>
/// One of the log entry field keywords that is used to define contributors for this rule.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> Keys
{
get { return this._keys; }
set { this._keys = value; }
}
// Check to see if Keys property is set
internal bool IsSetKeys()
{
return this._keys != null && this._keys.Count > 0;
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// One data point related to one contributor.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetInsightRuleReport.html">GetInsightRuleReport</a>
/// and <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_InsightRuleContributor.html">InsightRuleContributor</a>.
/// </para>
/// </summary>
public partial class InsightRuleContributorDatapoint
{
private double? _approximateValue;
private DateTime? _timestamp;
/// <summary>
/// Gets and sets the property ApproximateValue.
/// <para>
/// The approximate value that this contributor added during this timestamp.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public double ApproximateValue
{
get { return this._approximateValue.GetValueOrDefault(); }
set { this._approximateValue = value; }
}
// Check to see if ApproximateValue property is set
internal bool IsSetApproximateValue()
{
return this._approximateValue.HasValue;
}
/// <summary>
/// Gets and sets the property Timestamp.
/// <para>
/// The timestamp of the data point.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
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;
}
}
} | 84 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// One data point from the metric time series returned in a Contributor Insights rule
/// report.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetInsightRuleReport.html">GetInsightRuleReport</a>.
/// </para>
/// </summary>
public partial class InsightRuleMetricDatapoint
{
private double? _average;
private double? _maxContributorValue;
private double? _maximum;
private double? _minimum;
private double? _sampleCount;
private double? _sum;
private DateTime? _timestamp;
private double? _uniqueContributors;
/// <summary>
/// Gets and sets the property Average.
/// <para>
/// The average value from all contributors during the time period represented by that
/// data point.
/// </para>
///
/// <para>
/// This statistic is returned only if you included it in the <code>Metrics</code> array
/// in your request.
/// </para>
/// </summary>
public double Average
{
get { return this._average.GetValueOrDefault(); }
set { this._average = value; }
}
// Check to see if Average property is set
internal bool IsSetAverage()
{
return this._average.HasValue;
}
/// <summary>
/// Gets and sets the property MaxContributorValue.
/// <para>
/// The maximum value provided by one contributor during this timestamp. Each timestamp
/// is evaluated separately, so the identity of the max contributor could be different
/// for each timestamp.
/// </para>
///
/// <para>
/// This statistic is returned only if you included it in the <code>Metrics</code> array
/// in your request.
/// </para>
/// </summary>
public double MaxContributorValue
{
get { return this._maxContributorValue.GetValueOrDefault(); }
set { this._maxContributorValue = value; }
}
// Check to see if MaxContributorValue property is set
internal bool IsSetMaxContributorValue()
{
return this._maxContributorValue.HasValue;
}
/// <summary>
/// Gets and sets the property Maximum.
/// <para>
/// The maximum value from a single occurence from a single contributor during the time
/// period represented by that data point.
/// </para>
///
/// <para>
/// This statistic is returned only if you included it in the <code>Metrics</code> array
/// in your request.
/// </para>
/// </summary>
public double Maximum
{
get { return this._maximum.GetValueOrDefault(); }
set { this._maximum = value; }
}
// Check to see if Maximum property is set
internal bool IsSetMaximum()
{
return this._maximum.HasValue;
}
/// <summary>
/// Gets and sets the property Minimum.
/// <para>
/// The minimum value from a single contributor during the time period represented by
/// that data point.
/// </para>
///
/// <para>
/// This statistic is returned only if you included it in the <code>Metrics</code> array
/// in your request.
/// </para>
/// </summary>
public double Minimum
{
get { return this._minimum.GetValueOrDefault(); }
set { this._minimum = value; }
}
// Check to see if Minimum property is set
internal bool IsSetMinimum()
{
return this._minimum.HasValue;
}
/// <summary>
/// Gets and sets the property SampleCount.
/// <para>
/// The number of occurrences that matched the rule during this data point.
/// </para>
///
/// <para>
/// This statistic is returned only if you included it in the <code>Metrics</code> array
/// in your request.
/// </para>
/// </summary>
public double SampleCount
{
get { return this._sampleCount.GetValueOrDefault(); }
set { this._sampleCount = value; }
}
// Check to see if SampleCount property is set
internal bool IsSetSampleCount()
{
return this._sampleCount.HasValue;
}
/// <summary>
/// Gets and sets the property Sum.
/// <para>
/// The sum of the values from all contributors during the time period represented by
/// that data point.
/// </para>
///
/// <para>
/// This statistic is returned only if you included it in the <code>Metrics</code> array
/// in your request.
/// </para>
/// </summary>
public double Sum
{
get { return this._sum.GetValueOrDefault(); }
set { this._sum = value; }
}
// Check to see if Sum property is set
internal bool IsSetSum()
{
return this._sum.HasValue;
}
/// <summary>
/// Gets and sets the property Timestamp.
/// <para>
/// The timestamp of the data point.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
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;
}
/// <summary>
/// Gets and sets the property UniqueContributors.
/// <para>
/// The number of unique contributors who published data during this timestamp.
/// </para>
///
/// <para>
/// This statistic is returned only if you included it in the <code>Metrics</code> array
/// in your request.
/// </para>
/// </summary>
public double UniqueContributors
{
get { return this._uniqueContributors.GetValueOrDefault(); }
set { this._uniqueContributors = value; }
}
// Check to see if UniqueContributors property is set
internal bool IsSetUniqueContributors()
{
return this._uniqueContributors.HasValue;
}
}
} | 238 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Request processing has failed due to some unknown error, exception, or failure.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalServiceException : AmazonCloudWatchException
{
/// <summary>
/// Constructs a new InternalServiceException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalServiceException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalServiceException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalServiceException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalServiceException
/// </summary>
/// <param name="innerException"></param>
public InternalServiceException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalServiceException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServiceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalServiceException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServiceException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InternalServiceException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InternalServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Data was not syntactically valid JSON.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidFormatException : AmazonCloudWatchException
{
/// <summary>
/// Constructs a new InvalidFormatException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidFormatException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidFormatException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidFormatException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidFormatException
/// </summary>
/// <param name="innerException"></param>
public InvalidFormatException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidFormatException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidFormatException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidFormatException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidFormatException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InvalidFormatException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InvalidFormatException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// The next token specified is invalid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidNextTokenException : AmazonCloudWatchException
{
/// <summary>
/// Constructs a new InvalidNextTokenException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidNextTokenException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidNextTokenException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="innerException"></param>
public InvalidNextTokenException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidNextTokenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidNextTokenException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InvalidNextTokenException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InvalidNextTokenException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Parameters were used together that cannot be used together.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidParameterCombinationException : AmazonCloudWatchException
{
/// <summary>
/// Constructs a new InvalidParameterCombinationException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidParameterCombinationException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidParameterCombinationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidParameterCombinationException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidParameterCombinationException
/// </summary>
/// <param name="innerException"></param>
public InvalidParameterCombinationException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidParameterCombinationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidParameterCombinationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidParameterCombinationException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidParameterCombinationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InvalidParameterCombinationException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InvalidParameterCombinationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// The value of an input parameter is bad or out-of-range.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidParameterValueException : AmazonCloudWatchException
{
/// <summary>
/// Constructs a new InvalidParameterValueException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidParameterValueException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidParameterValueException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidParameterValueException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidParameterValueException
/// </summary>
/// <param name="innerException"></param>
public InvalidParameterValueException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidParameterValueException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidParameterValueException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidParameterValueException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidParameterValueException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InvalidParameterValueException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InvalidParameterValueException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This structure includes the <code>Timezone</code> parameter, which you can use to
/// specify your time zone so that the labels that are associated with returned metrics
/// display the correct time for your time zone.
///
///
/// <para>
/// The <code>Timezone</code> value affects a label only if you have a time-based dynamic
/// expression in the label. For more information about dynamic expressions in labels,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html">Using
/// Dynamic Labels</a>.
/// </para>
/// </summary>
public partial class LabelOptions
{
private string _timezone;
/// <summary>
/// Gets and sets the property Timezone.
/// <para>
/// The time zone to use for metric data return in this operation. The format is <code>+</code>
/// or <code>-</code> followed by four digits. The first two digits indicate the number
/// of hours ahead or behind of UTC, and the final two digits are the number of minutes.
/// For example, +0130 indicates a time zone that is 1 hour and 30 minutes ahead of UTC.
/// The default is +0000.
/// </para>
/// </summary>
public string Timezone
{
get { return this._timezone; }
set { this._timezone = value; }
}
// Check to see if Timezone property is set
internal bool IsSetTimezone()
{
return this._timezone != null;
}
}
} | 71 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// The operation exceeded one or more limits.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class LimitExceededException : AmazonCloudWatchException
{
/// <summary>
/// Constructs a new LimitExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public LimitExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public LimitExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="innerException"></param>
public LimitExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public LimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public LimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the LimitExceededException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected LimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the ListDashboards operation.
/// Returns a list of the dashboards for your account. If you include <code>DashboardNamePrefix</code>,
/// only those dashboards with names starting with the prefix are listed. Otherwise, all
/// dashboards in your account are listed.
///
///
/// <para>
/// <code>ListDashboards</code> returns up to 1000 results on one page. If there are
/// more than 1000 dashboards, you can call <code>ListDashboards</code> again and include
/// the value you received for <code>NextToken</code> in the first call, to receive the
/// next 1000 results.
/// </para>
/// </summary>
public partial class ListDashboardsRequest : AmazonCloudWatchRequest
{
private string _dashboardNamePrefix;
private string _nextToken;
/// <summary>
/// Gets and sets the property DashboardNamePrefix.
/// <para>
/// If you specify this parameter, only the dashboards with names starting with the specified
/// string are listed. The maximum length is 255, and valid characters are A-Z, a-z, 0-9,
/// ".", "-", and "_".
/// </para>
/// </summary>
public string DashboardNamePrefix
{
get { return this._dashboardNamePrefix; }
set { this._dashboardNamePrefix = value; }
}
// Check to see if DashboardNamePrefix property is set
internal bool IsSetDashboardNamePrefix()
{
return this._dashboardNamePrefix != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to indicate that there is more data available.
/// </para>
/// </summary>
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;
}
}
} | 89 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the ListDashboards operation.
/// </summary>
public partial class ListDashboardsResponse : AmazonWebServiceResponse
{
private List<DashboardEntry> _dashboardEntries = new List<DashboardEntry>();
private string _nextToken;
/// <summary>
/// Gets and sets the property DashboardEntries.
/// <para>
/// The list of matching dashboards.
/// </para>
/// </summary>
public List<DashboardEntry> DashboardEntries
{
get { return this._dashboardEntries; }
set { this._dashboardEntries = value; }
}
// Check to see if DashboardEntries property is set
internal bool IsSetDashboardEntries()
{
return this._dashboardEntries != null && this._dashboardEntries.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token that marks the start of the next batch of returned results.
/// </para>
/// </summary>
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;
}
}
} | 76 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the ListManagedInsightRules operation.
/// Returns a list that contains the number of managed Contributor Insights rules in
/// your account.
/// </summary>
public partial class ListManagedInsightRulesRequest : AmazonCloudWatchRequest
{
private int? _maxResults;
private string _nextToken;
private string _resourceARN;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return in one operation. If you omit this parameter,
/// the default number is used. The default number is <code>100</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=500)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Include this value to get the next set of rules if the value was returned by the
/// previous operation.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The ARN of an Amazon Web Services resource that has managed Contributor Insights
/// rules.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
}
} | 102 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the ListManagedInsightRules operation.
/// </summary>
public partial class ListManagedInsightRulesResponse : AmazonWebServiceResponse
{
private List<ManagedRuleDescription> _managedRules = new List<ManagedRuleDescription>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ManagedRules.
/// <para>
/// The managed rules that are available for the specified Amazon Web Services resource.
///
/// </para>
/// </summary>
public List<ManagedRuleDescription> ManagedRules
{
get { return this._managedRules; }
set { this._managedRules = value; }
}
// Check to see if ManagedRules property is set
internal bool IsSetManagedRules()
{
return this._managedRules != null && this._managedRules.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Include this value to get the next set of rules if the value was returned by the
/// previous operation.
/// </para>
/// </summary>
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;
}
}
} | 78 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the ListMetrics operation.
/// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a>
/// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>
/// to get statistical data.
///
///
/// <para>
/// Up to 500 results are returned for any one call. To retrieve additional results, use
/// the returned token with subsequent calls.
/// </para>
///
/// <para>
/// After you create a metric, allow up to 15 minutes for the metric to appear. To see
/// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a>
/// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>.
/// </para>
///
/// <para>
/// If you are using CloudWatch cross-account observability, you can use this operation
/// in a monitoring account and view metrics from the linked source accounts. For more
/// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch
/// cross-account observability</a>.
/// </para>
///
/// <para>
/// <code>ListMetrics</code> doesn't return information about metrics if those metrics
/// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a>
/// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>.
/// </para>
/// </summary>
public partial class ListMetricsRequest : AmazonCloudWatchRequest
{
private List<DimensionFilter> _dimensions = new List<DimensionFilter>();
private bool? _includeLinkedAccounts;
private string _metricName;
private string _awsNamespace;
private string _nextToken;
private string _owningAccount;
private RecentlyActive _recentlyActive;
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions to filter against. Only the dimensions that match exactly will be returned.
/// </para>
/// </summary>
[AWSProperty(Max=10)]
public List<DimensionFilter> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property IncludeLinkedAccounts.
/// <para>
/// If you are using this operation in a monitoring account, specify <code>true</code>
/// to include metrics from source accounts in the returned data.
/// </para>
///
/// <para>
/// The default is <code>false</code>.
/// </para>
/// </summary>
public bool IncludeLinkedAccounts
{
get { return this._includeLinkedAccounts.GetValueOrDefault(); }
set { this._includeLinkedAccounts = value; }
}
// Check to see if IncludeLinkedAccounts property is set
internal bool IsSetIncludeLinkedAccounts()
{
return this._includeLinkedAccounts.HasValue;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric to filter against. Only the metrics with names that match exactly
/// will be returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The metric namespace to filter against. Only the namespace that matches exactly will
/// be returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to indicate that there is more data available.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property OwningAccount.
/// <para>
/// When you use this operation in a monitoring account, use this field to return metrics
/// only from one source account. To do so, specify that source account ID in this field,
/// and also specify <code>true</code> for <code>IncludeLinkedAccounts</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string OwningAccount
{
get { return this._owningAccount; }
set { this._owningAccount = value; }
}
// Check to see if OwningAccount property is set
internal bool IsSetOwningAccount()
{
return this._owningAccount != null;
}
/// <summary>
/// Gets and sets the property RecentlyActive.
/// <para>
/// To filter the results to show only metrics that have had data points published in
/// the past three hours, specify this parameter with a value of <code>PT3H</code>. This
/// is the only valid value for this parameter.
/// </para>
///
/// <para>
/// The results that are returned are an approximation of the value you specify. There
/// is a low probability that the returned results include metrics with last published
/// data as much as 40 minutes more than the specified time interval.
/// </para>
/// </summary>
public RecentlyActive RecentlyActive
{
get { return this._recentlyActive; }
set { this._recentlyActive = value; }
}
// Check to see if RecentlyActive property is set
internal bool IsSetRecentlyActive()
{
return this._recentlyActive != null;
}
}
} | 220 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the ListMetrics operation.
/// </summary>
public partial class ListMetricsResponse : AmazonWebServiceResponse
{
private List<Metric> _metrics = new List<Metric>();
private string _nextToken;
private List<string> _owningAccounts = new List<string>();
/// <summary>
/// Gets and sets the property Metrics.
/// <para>
/// The metrics that match your request.
/// </para>
/// </summary>
public List<Metric> Metrics
{
get { return this._metrics; }
set { this._metrics = value; }
}
// Check to see if Metrics property is set
internal bool IsSetMetrics()
{
return this._metrics != null && this._metrics.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token that marks the start of the next batch of returned results.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property OwningAccounts.
/// <para>
/// If you are using this operation in a monitoring account, this array contains the account
/// IDs of the source accounts where the metrics in the returned data are from.
/// </para>
///
/// <para>
/// This field is a 1:1 mapping between each metric that is returned and the ID of the
/// owning account.
/// </para>
/// </summary>
public List<string> OwningAccounts
{
get { return this._owningAccounts; }
set { this._owningAccounts = value; }
}
// Check to see if OwningAccounts property is set
internal bool IsSetOwningAccounts()
{
return this._owningAccounts != null && this._owningAccounts.Count > 0;
}
}
} | 101 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the ListMetricStreams operation.
/// Returns a list of metric streams in this account.
/// </summary>
public partial class ListMetricStreamsRequest : AmazonCloudWatchRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return in one operation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=500)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Include this value, if it was returned by the previous call, to get the next set of
/// metric streams.
/// </para>
/// </summary>
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;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the ListMetricStreams operation.
/// </summary>
public partial class ListMetricStreamsResponse : AmazonWebServiceResponse
{
private List<MetricStreamEntry> _entries = new List<MetricStreamEntry>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Entries.
/// <para>
/// The array of metric stream information.
/// </para>
/// </summary>
public List<MetricStreamEntry> Entries
{
get { return this._entries; }
set { this._entries = value; }
}
// Check to see if Entries property is set
internal bool IsSetEntries()
{
return this._entries != null && this._entries.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token that marks the start of the next batch of returned results. You can use
/// this token in a subsequent operation to get the next batch of results.
/// </para>
/// </summary>
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;
}
}
} | 77 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the ListTagsForResource operation.
/// Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor
/// Insights rules support tagging.
/// </summary>
public partial class ListTagsForResourceRequest : AmazonCloudWatchRequest
{
private string _resourceARN;
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The ARN of the CloudWatch resource that you want to view tags for.
/// </para>
///
/// <para>
/// The ARN format of an alarm is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:alarm:<i>alarm-name</i>
/// </code>
/// </para>
///
/// <para>
/// The ARN format of a Contributor Insights rule is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:insight-rule:<i>insight-rule-name</i>
/// </code>
/// </para>
///
/// <para>
/// For more information about ARN format, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies">
/// Resource Types Defined by Amazon CloudWatch</a> in the <i>Amazon Web Services General
/// Reference</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
}
} | 76 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the ListTagsForResource operation.
/// </summary>
public partial class ListTagsForResourceResponse : AmazonWebServiceResponse
{
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The list of tag keys and values associated with the resource you specified.
/// </para>
/// </summary>
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Contains the information that's required to enable a managed Contributor Insights
/// rule for an Amazon Web Services resource.
/// </summary>
public partial class ManagedRule
{
private string _resourceARN;
private List<Tag> _tags = new List<Tag>();
private string _templateName;
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The ARN of an Amazon Web Services resource that has managed Contributor Insights
/// rules.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// A list of key-value pairs that you can associate with a managed Contributor Insights
/// rule. You can associate as many as 50 tags with a rule. Tags can help you organize
/// and categorize your resources. You also can use them to scope user permissions by
/// granting a user permission to access or change only the resources that have certain
/// tag values. To associate tags with a rule, you must have the <code>cloudwatch:TagResource</code>
/// permission in addition to the <code>cloudwatch:PutInsightRule</code> permission. If
/// you are using this operation to update an existing Contributor Insights rule, any
/// tags that you specify in this parameter are ignored. To change the tags of an existing
/// rule, use <code>TagResource</code>.
/// </para>
/// </summary>
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property TemplateName.
/// <para>
/// The template name for the managed Contributor Insights rule, as returned by <code>ListManagedInsightRules</code>.
///
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string TemplateName
{
get { return this._templateName; }
set { this._templateName = value; }
}
// Check to see if TemplateName property is set
internal bool IsSetTemplateName()
{
return this._templateName != null;
}
}
} | 108 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Contains information about managed Contributor Insights rules, as returned by <code>ListManagedInsightRules</code>.
/// </summary>
public partial class ManagedRuleDescription
{
private string _resourceARN;
private ManagedRuleState _ruleState;
private string _templateName;
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// If a managed rule is enabled, this is the ARN for the related Amazon Web Services
/// resource.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
/// <summary>
/// Gets and sets the property RuleState.
/// <para>
/// Describes the state of a managed rule. If present, it contains information about
/// the Contributor Insights rule that contains information about the related Amazon Web
/// Services resource.
/// </para>
/// </summary>
public ManagedRuleState RuleState
{
get { return this._ruleState; }
set { this._ruleState = value; }
}
// Check to see if RuleState property is set
internal bool IsSetRuleState()
{
return this._ruleState != null;
}
/// <summary>
/// Gets and sets the property TemplateName.
/// <para>
/// The template name for the managed rule. Used to enable managed rules using <code>PutManagedInsightRules</code>.
///
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string TemplateName
{
get { return this._templateName; }
set { this._templateName = value; }
}
// Check to see if TemplateName property is set
internal bool IsSetTemplateName()
{
return this._templateName != null;
}
}
} | 101 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// The status of a managed Contributor Insights rule.
/// </summary>
public partial class ManagedRuleState
{
private string _ruleName;
private string _state;
/// <summary>
/// Gets and sets the property RuleName.
/// <para>
/// The name of the Contributor Insights rule that contains data for the specified Amazon
/// Web Services resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
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;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// Indicates whether the rule is enabled or disabled.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=32)]
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;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// A message returned by the <code>GetMetricData</code>API, including a code and a description.
///
///
/// <para>
/// If a cross-Region <code>GetMetricData</code> operation fails with a code of <code>Forbidden</code>
/// and a value of <code>Authentication too complex to retrieve cross region data</code>,
/// you can correct the problem by running the <code>GetMetricData</code> operation in
/// the same Region where the metric data is.
/// </para>
/// </summary>
public partial class MessageData
{
private string _code;
private string _value;
/// <summary>
/// Gets and sets the property Code.
/// <para>
/// The error code or status code associated with the message.
/// </para>
/// </summary>
public string Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The message text.
/// </para>
/// </summary>
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 84 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Represents a specific metric.
/// </summary>
public partial class Metric
{
private List<Dimension> _dimensions = new List<Dimension>();
private string _metricName;
private string _awsNamespace;
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions for the metric.
/// </para>
/// </summary>
[AWSProperty(Max=30)]
public List<Dimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric. This is a required field.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// The details about a metric alarm.
/// </summary>
public partial class MetricAlarm
{
private bool? _actionsEnabled;
private List<string> _alarmActions = new List<string>();
private string _alarmArn;
private DateTime? _alarmConfigurationUpdatedTimestamp;
private string _alarmDescription;
private string _alarmName;
private ComparisonOperator _comparisonOperator;
private int? _datapointsToAlarm;
private List<Dimension> _dimensions = new List<Dimension>();
private string _evaluateLowSampleCountPercentile;
private int? _evaluationPeriods;
private EvaluationState _evaluationState;
private string _extendedStatistic;
private List<string> _insufficientDataActions = new List<string>();
private string _metricName;
private List<MetricDataQuery> _metrics = new List<MetricDataQuery>();
private string _awsNamespace;
private List<string> _okActions = new List<string>();
private int? _period;
private string _stateReason;
private string _stateReasonData;
private DateTime? _stateTransitionedTimestamp;
private DateTime? _stateUpdatedTimestamp;
private StateValue _stateValue;
private Statistic _statistic;
private double? _threshold;
private string _thresholdMetricId;
private string _treatMissingData;
private StandardUnit _unit;
/// <summary>
/// Gets and sets the property ActionsEnabled.
/// <para>
/// Indicates whether actions should be executed during any changes to the alarm state.
/// </para>
/// </summary>
public bool ActionsEnabled
{
get { return this._actionsEnabled.GetValueOrDefault(); }
set { this._actionsEnabled = value; }
}
// Check to see if ActionsEnabled property is set
internal bool IsSetActionsEnabled()
{
return this._actionsEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property AlarmActions.
/// <para>
/// The actions to execute when this alarm transitions to the <code>ALARM</code> state
/// from any other state. Each action is specified as an Amazon Resource Name (ARN).
/// </para>
/// </summary>
[AWSProperty(Max=5)]
public List<string> AlarmActions
{
get { return this._alarmActions; }
set { this._alarmActions = value; }
}
// Check to see if AlarmActions property is set
internal bool IsSetAlarmActions()
{
return this._alarmActions != null && this._alarmActions.Count > 0;
}
/// <summary>
/// Gets and sets the property AlarmArn.
/// <para>
/// The Amazon Resource Name (ARN) of the alarm.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string AlarmArn
{
get { return this._alarmArn; }
set { this._alarmArn = value; }
}
// Check to see if AlarmArn property is set
internal bool IsSetAlarmArn()
{
return this._alarmArn != null;
}
/// <summary>
/// Gets and sets the property AlarmConfigurationUpdatedTimestamp.
/// <para>
/// The time stamp of the last update to the alarm configuration.
/// </para>
/// </summary>
public DateTime AlarmConfigurationUpdatedTimestamp
{
get { return this._alarmConfigurationUpdatedTimestamp.GetValueOrDefault(); }
set { this._alarmConfigurationUpdatedTimestamp = value; }
}
// Check to see if AlarmConfigurationUpdatedTimestamp property is set
internal bool IsSetAlarmConfigurationUpdatedTimestamp()
{
return this._alarmConfigurationUpdatedTimestamp.HasValue;
}
/// <summary>
/// Gets and sets the property AlarmDescription.
/// <para>
/// The description of the alarm.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1024)]
public string AlarmDescription
{
get { return this._alarmDescription; }
set { this._alarmDescription = value; }
}
// Check to see if AlarmDescription property is set
internal bool IsSetAlarmDescription()
{
return this._alarmDescription != null;
}
/// <summary>
/// Gets and sets the property AlarmName.
/// <para>
/// The name of the alarm.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AlarmName
{
get { return this._alarmName; }
set { this._alarmName = value; }
}
// Check to see if AlarmName property is set
internal bool IsSetAlarmName()
{
return this._alarmName != null;
}
/// <summary>
/// Gets and sets the property ComparisonOperator.
/// <para>
/// The arithmetic operation to use when comparing the specified statistic and threshold.
/// The specified statistic value is used as the first operand.
/// </para>
/// </summary>
public ComparisonOperator ComparisonOperator
{
get { return this._comparisonOperator; }
set { this._comparisonOperator = value; }
}
// Check to see if ComparisonOperator property is set
internal bool IsSetComparisonOperator()
{
return this._comparisonOperator != null;
}
/// <summary>
/// Gets and sets the property DatapointsToAlarm.
/// <para>
/// The number of data points that must be breaching to trigger the alarm.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int DatapointsToAlarm
{
get { return this._datapointsToAlarm.GetValueOrDefault(); }
set { this._datapointsToAlarm = value; }
}
// Check to see if DatapointsToAlarm property is set
internal bool IsSetDatapointsToAlarm()
{
return this._datapointsToAlarm.HasValue;
}
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions for the metric associated with the alarm.
/// </para>
/// </summary>
[AWSProperty(Max=30)]
public List<Dimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property EvaluateLowSampleCountPercentile.
/// <para>
/// Used only for alarms based on percentiles. If <code>ignore</code>, the alarm state
/// does not change during periods with too few data points to be statistically significant.
/// If <code>evaluate</code> or this parameter is not used, the alarm is always evaluated
/// and possibly changes state no matter how many data points are available.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string EvaluateLowSampleCountPercentile
{
get { return this._evaluateLowSampleCountPercentile; }
set { this._evaluateLowSampleCountPercentile = value; }
}
// Check to see if EvaluateLowSampleCountPercentile property is set
internal bool IsSetEvaluateLowSampleCountPercentile()
{
return this._evaluateLowSampleCountPercentile != null;
}
/// <summary>
/// Gets and sets the property EvaluationPeriods.
/// <para>
/// The number of periods over which data is compared to the specified threshold.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int EvaluationPeriods
{
get { return this._evaluationPeriods.GetValueOrDefault(); }
set { this._evaluationPeriods = value; }
}
// Check to see if EvaluationPeriods property is set
internal bool IsSetEvaluationPeriods()
{
return this._evaluationPeriods.HasValue;
}
/// <summary>
/// Gets and sets the property EvaluationState.
/// <para>
/// If the value of this field is <code>PARTIAL_DATA</code>, the alarm is being evaluated
/// based on only partial data. This happens if the query used for the alarm returns more
/// than 10,000 metrics. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create
/// alarms on Metrics Insights queries</a>.
/// </para>
/// </summary>
public EvaluationState EvaluationState
{
get { return this._evaluationState; }
set { this._evaluationState = value; }
}
// Check to see if EvaluationState property is set
internal bool IsSetEvaluationState()
{
return this._evaluationState != null;
}
/// <summary>
/// Gets and sets the property ExtendedStatistic.
/// <para>
/// The percentile statistic for the metric associated with the alarm. Specify a value
/// between p0.0 and p100.
/// </para>
/// </summary>
public string ExtendedStatistic
{
get { return this._extendedStatistic; }
set { this._extendedStatistic = value; }
}
// Check to see if ExtendedStatistic property is set
internal bool IsSetExtendedStatistic()
{
return this._extendedStatistic != null;
}
/// <summary>
/// Gets and sets the property InsufficientDataActions.
/// <para>
/// The actions to execute when this alarm transitions to the <code>INSUFFICIENT_DATA</code>
/// state from any other state. Each action is specified as an Amazon Resource Name (ARN).
/// </para>
/// </summary>
[AWSProperty(Max=5)]
public List<string> InsufficientDataActions
{
get { return this._insufficientDataActions; }
set { this._insufficientDataActions = value; }
}
// Check to see if InsufficientDataActions property is set
internal bool IsSetInsufficientDataActions()
{
return this._insufficientDataActions != null && this._insufficientDataActions.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric associated with the alarm, if this is an alarm based on a single
/// metric.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Metrics.
/// <para>
/// An array of MetricDataQuery structures, used in an alarm based on a metric math expression.
/// Each structure either retrieves a metric or performs a math expression. One item in
/// the Metrics array is the math expression that the alarm watches. This expression by
/// designated by having <code>ReturnData</code> set to true.
/// </para>
/// </summary>
public List<MetricDataQuery> Metrics
{
get { return this._metrics; }
set { this._metrics = value; }
}
// Check to see if Metrics property is set
internal bool IsSetMetrics()
{
return this._metrics != null && this._metrics.Count > 0;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric associated with the alarm.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
/// <summary>
/// Gets and sets the property OKActions.
/// <para>
/// The actions to execute when this alarm transitions to the <code>OK</code> state from
/// any other state. Each action is specified as an Amazon Resource Name (ARN).
/// </para>
/// </summary>
[AWSProperty(Max=5)]
public List<string> OKActions
{
get { return this._okActions; }
set { this._okActions = value; }
}
// Check to see if OKActions property is set
internal bool IsSetOKActions()
{
return this._okActions != null && this._okActions.Count > 0;
}
/// <summary>
/// Gets and sets the property Period.
/// <para>
/// The period, in seconds, over which the statistic is applied.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int Period
{
get { return this._period.GetValueOrDefault(); }
set { this._period = value; }
}
// Check to see if Period property is set
internal bool IsSetPeriod()
{
return this._period.HasValue;
}
/// <summary>
/// Gets and sets the property StateReason.
/// <para>
/// An explanation for the alarm state, in text format.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1023)]
public string StateReason
{
get { return this._stateReason; }
set { this._stateReason = value; }
}
// Check to see if StateReason property is set
internal bool IsSetStateReason()
{
return this._stateReason != null;
}
/// <summary>
/// Gets and sets the property StateReasonData.
/// <para>
/// An explanation for the alarm state, in JSON format.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=4000)]
public string StateReasonData
{
get { return this._stateReasonData; }
set { this._stateReasonData = value; }
}
// Check to see if StateReasonData property is set
internal bool IsSetStateReasonData()
{
return this._stateReasonData != null;
}
/// <summary>
/// Gets and sets the property StateTransitionedTimestamp.
/// <para>
/// The date and time that the alarm's <code>StateValue</code> most recently changed.
/// </para>
/// </summary>
public DateTime StateTransitionedTimestamp
{
get { return this._stateTransitionedTimestamp.GetValueOrDefault(); }
set { this._stateTransitionedTimestamp = value; }
}
// Check to see if StateTransitionedTimestamp property is set
internal bool IsSetStateTransitionedTimestamp()
{
return this._stateTransitionedTimestamp.HasValue;
}
/// <summary>
/// Gets and sets the property StateUpdatedTimestamp.
/// <para>
/// The time stamp of the last update to the value of either the <code>StateValue</code>
/// or <code>EvaluationState</code> parameters.
/// </para>
/// </summary>
public DateTime StateUpdatedTimestamp
{
get { return this._stateUpdatedTimestamp.GetValueOrDefault(); }
set { this._stateUpdatedTimestamp = value; }
}
// Check to see if StateUpdatedTimestamp property is set
internal bool IsSetStateUpdatedTimestamp()
{
return this._stateUpdatedTimestamp.HasValue;
}
/// <summary>
/// Gets and sets the property StateValue.
/// <para>
/// The state value for the alarm.
/// </para>
/// </summary>
public StateValue StateValue
{
get { return this._stateValue; }
set { this._stateValue = value; }
}
// Check to see if StateValue property is set
internal bool IsSetStateValue()
{
return this._stateValue != null;
}
/// <summary>
/// Gets and sets the property Statistic.
/// <para>
/// The statistic for the metric associated with the alarm, other than percentile. For
/// percentile statistics, use <code>ExtendedStatistic</code>.
/// </para>
/// </summary>
public Statistic Statistic
{
get { return this._statistic; }
set { this._statistic = value; }
}
// Check to see if Statistic property is set
internal bool IsSetStatistic()
{
return this._statistic != null;
}
/// <summary>
/// Gets and sets the property Threshold.
/// <para>
/// The value to compare with the specified statistic.
/// </para>
/// </summary>
public double Threshold
{
get { return this._threshold.GetValueOrDefault(); }
set { this._threshold = value; }
}
// Check to see if Threshold property is set
internal bool IsSetThreshold()
{
return this._threshold.HasValue;
}
/// <summary>
/// Gets and sets the property ThresholdMetricId.
/// <para>
/// In an alarm based on an anomaly detection model, this is the ID of the <code>ANOMALY_DETECTION_BAND</code>
/// function used as the threshold for the alarm.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ThresholdMetricId
{
get { return this._thresholdMetricId; }
set { this._thresholdMetricId = value; }
}
// Check to see if ThresholdMetricId property is set
internal bool IsSetThresholdMetricId()
{
return this._thresholdMetricId != null;
}
/// <summary>
/// Gets and sets the property TreatMissingData.
/// <para>
/// Sets how this alarm is to handle missing data points. The valid values are <code>breaching</code>,
/// <code>notBreaching</code>, <code>ignore</code>, and <code>missing</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data">Configuring
/// how CloudWatch alarms treat missing data</a>.
/// </para>
///
/// <para>
/// If this parameter is omitted, the default behavior of <code>missing</code> is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string TreatMissingData
{
get { return this._treatMissingData; }
set { this._treatMissingData = value; }
}
// Check to see if TreatMissingData property is set
internal bool IsSetTreatMissingData()
{
return this._treatMissingData != null;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// The unit of the metric associated with the alarm.
/// </para>
/// </summary>
public StandardUnit Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
}
} | 631 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This structure is used in both <code>GetMetricData</code> and <code>PutMetricAlarm</code>.
/// The supported use of this structure is different for those two operations.
///
///
/// <para>
/// When used in <code>GetMetricData</code>, it indicates the metric data to return, and
/// whether this call is just retrieving a batch set of data for one metric, or is performing
/// a Metrics Insights query or a math expression. A single <code>GetMetricData</code>
/// call can include up to 500 <code>MetricDataQuery</code> structures.
/// </para>
///
/// <para>
/// When used in <code>PutMetricAlarm</code>, it enables you to create an alarm based
/// on a metric math expression. Each <code>MetricDataQuery</code> in the array specifies
/// either a metric to retrieve, or a math expression to be performed on retrieved metrics.
/// A single <code>PutMetricAlarm</code> call can include up to 20 <code>MetricDataQuery</code>
/// structures in the array. The 20 structures can include as many as 10 structures that
/// contain a <code>MetricStat</code> parameter to retrieve a metric, and as many as 10
/// structures that contain the <code>Expression</code> parameter to perform a math expression.
/// Of those <code>Expression</code> structures, one must have <code>true</code> as the
/// value for <code>ReturnData</code>. The result of this expression is the value the
/// alarm watches.
/// </para>
///
/// <para>
/// Any expression used in a <code>PutMetricAlarm</code> operation must return a single
/// time series. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric
/// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
///
/// <para>
/// Some of the parameters of this structure also have different uses whether you are
/// using this structure in a <code>GetMetricData</code> operation or a <code>PutMetricAlarm</code>
/// operation. These differences are explained in the following parameter list.
/// </para>
/// </summary>
public partial class MetricDataQuery
{
private string _accountId;
private string _expression;
private string _id;
private string _label;
private MetricStat _metricStat;
private int? _period;
private bool? _returnData;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// The ID of the account where the metrics are located.
/// </para>
///
/// <para>
/// If you are performing a <code>GetMetricData</code> operation in a monitoring account,
/// use this to specify which account to retrieve this metric from.
/// </para>
///
/// <para>
/// If you are performing a <code>PutMetricAlarm</code> operation, use this to specify
/// which account contains the metric that the alarm is watching.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
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;
}
/// <summary>
/// Gets and sets the property Expression.
/// <para>
/// This field can contain either a Metrics Insights query, or a metric math expression
/// to be performed on the returned data. For more information about Metrics Insights
/// queries, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage">Metrics
/// Insights query components and syntax</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
///
/// <para>
/// A math expression can use the <code>Id</code> of the other metrics or queries to refer
/// to those metrics, and can also use the <code>Id</code> of other expressions to use
/// the result of those expressions. For more information about metric math expressions,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric
/// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
///
/// <para>
/// Within each MetricDataQuery object, you must specify either <code>Expression</code>
/// or <code>MetricStat</code> but not both.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string Expression
{
get { return this._expression; }
set { this._expression = value; }
}
// Check to see if Expression property is set
internal bool IsSetExpression()
{
return this._expression != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// A short name used to tie this object to the results in the response. This name must
/// be unique within a single call to <code>GetMetricData</code>. If you are performing
/// math expressions on this set of data, this name represents that data and can serve
/// as a variable in the mathematical expression. The valid characters are letters, numbers,
/// and underscore. The first character must be a lowercase letter.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// A human-readable label for this metric or expression. This is especially useful if
/// this is an expression, so that you know what the value represents. If the metric or
/// expression is shown in a CloudWatch dashboard widget, the label is shown. If Label
/// is omitted, CloudWatch generates a default.
/// </para>
///
/// <para>
/// You can put dynamic expressions into a label, so that it is more descriptive. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html">Using
/// Dynamic Labels</a>.
/// </para>
/// </summary>
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
/// <summary>
/// Gets and sets the property MetricStat.
/// <para>
/// The metric to be returned, along with statistics, period, and units. Use this parameter
/// only if this object is retrieving a metric and not performing a math expression on
/// returned data.
/// </para>
///
/// <para>
/// Within one MetricDataQuery object, you must specify either <code>Expression</code>
/// or <code>MetricStat</code> but not both.
/// </para>
/// </summary>
public MetricStat MetricStat
{
get { return this._metricStat; }
set { this._metricStat = value; }
}
// Check to see if MetricStat property is set
internal bool IsSetMetricStat()
{
return this._metricStat != null;
}
/// <summary>
/// Gets and sets the property Period.
/// <para>
/// The granularity, in seconds, of the returned data points. For metrics with regular
/// resolution, a period can be as short as one minute (60 seconds) and must be a multiple
/// of 60. For high-resolution metrics that are collected at intervals of less than one
/// minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution
/// metrics are those metrics stored by a <code>PutMetricData</code> operation that includes
/// a <code>StorageResolution of 1 second</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int Period
{
get { return this._period.GetValueOrDefault(); }
set { this._period = value; }
}
// Check to see if Period property is set
internal bool IsSetPeriod()
{
return this._period.HasValue;
}
/// <summary>
/// Gets and sets the property ReturnData.
/// <para>
/// When used in <code>GetMetricData</code>, this option indicates whether to return the
/// timestamps and raw data values of this metric. If you are performing this call just
/// to do math expressions and do not also need the raw data returned, you can specify
/// <code>false</code>. If you omit this, the default of <code>true</code> is used.
/// </para>
///
/// <para>
/// When used in <code>PutMetricAlarm</code>, specify <code>true</code> for the one expression
/// result to use as the alarm. For all other metrics and expressions in the same <code>PutMetricAlarm</code>
/// operation, specify <code>ReturnData</code> as False.
/// </para>
/// </summary>
public bool ReturnData
{
get { return this._returnData.GetValueOrDefault(); }
set { this._returnData = value; }
}
// Check to see if ReturnData property is set
internal bool IsSetReturnData()
{
return this._returnData.HasValue;
}
}
} | 269 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// A <code>GetMetricData</code> call returns an array of <code>MetricDataResult</code>
/// structures. Each of these structures includes the data points for that metric, along
/// with the timestamps of those data points and other identifying information.
/// </summary>
public partial class MetricDataResult
{
private string _id;
private string _label;
private List<MessageData> _messages = new List<MessageData>();
private StatusCode _statusCode;
private List<DateTime> _timestamps = new List<DateTime>();
private List<double> _values = new List<double>();
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The short name you specified to represent this metric.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// The human-readable label associated with the data.
/// </para>
/// </summary>
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
/// <summary>
/// Gets and sets the property Messages.
/// <para>
/// A list of messages with additional information about the data returned.
/// </para>
/// </summary>
public List<MessageData> Messages
{
get { return this._messages; }
set { this._messages = value; }
}
// Check to see if Messages property is set
internal bool IsSetMessages()
{
return this._messages != null && this._messages.Count > 0;
}
/// <summary>
/// Gets and sets the property StatusCode.
/// <para>
/// The status of the returned data. <code>Complete</code> indicates that all data points
/// in the requested time range were returned. <code>PartialData</code> means that an
/// incomplete set of data points were returned. You can use the <code>NextToken</code>
/// value that was returned and repeat your request to get more data points. <code>NextToken</code>
/// is not returned if you are performing a math expression. <code>InternalError</code>
/// indicates that an error occurred. Retry your request using <code>NextToken</code>,
/// if present.
/// </para>
/// </summary>
public StatusCode StatusCode
{
get { return this._statusCode; }
set { this._statusCode = value; }
}
// Check to see if StatusCode property is set
internal bool IsSetStatusCode()
{
return this._statusCode != null;
}
/// <summary>
/// Gets and sets the property Timestamps.
/// <para>
/// The timestamps for the data points, formatted in Unix timestamp format. The number
/// of timestamps always matches the number of values and the value for Timestamps[x]
/// is Values[x].
/// </para>
/// </summary>
public List<DateTime> Timestamps
{
get { return this._timestamps; }
set { this._timestamps = value; }
}
// Check to see if Timestamps property is set
internal bool IsSetTimestamps()
{
return this._timestamps != null && this._timestamps.Count > 0;
}
/// <summary>
/// Gets and sets the property Values.
/// <para>
/// The data points for the metric corresponding to <code>Timestamps</code>. The number
/// of values always matches the number of timestamps and the timestamp for Values[x]
/// is Timestamps[x].
/// </para>
/// </summary>
public List<double> Values
{
get { return this._values; }
set { this._values = value; }
}
// Check to see if Values property is set
internal bool IsSetValues()
{
return this._values != null && this._values.Count > 0;
}
}
} | 165 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Encapsulates the information sent to either create a metric or add new values to be
/// aggregated into an existing metric.
/// </summary>
public partial class MetricDatum
{
private List<double> _counts = new List<double>();
private List<Dimension> _dimensions = new List<Dimension>();
private string _metricName;
private StatisticSet _statisticValues;
private int? _storageResolution;
private DateTime? _timestampUtc;
private StandardUnit _unit;
private double? _value;
private List<double> _values = new List<double>();
/// <summary>
/// Gets and sets the property Counts.
/// <para>
/// Array of numbers that is used along with the <code>Values</code> array. Each number
/// in the <code>Count</code> array is the number of times the corresponding value in
/// the <code>Values</code> array occurred during the period.
/// </para>
///
/// <para>
/// If you omit the <code>Counts</code> array, the default of 1 is used as the value for
/// each count. If you include a <code>Counts</code> array, it must include the same amount
/// of values as the <code>Values</code> array.
/// </para>
/// </summary>
public List<double> Counts
{
get { return this._counts; }
set { this._counts = value; }
}
// Check to see if Counts property is set
internal bool IsSetCounts()
{
return this._counts != null && this._counts.Count > 0;
}
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions associated with the metric.
/// </para>
/// </summary>
[AWSProperty(Max=30)]
public List<Dimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property StatisticValues.
/// <para>
/// The statistical values for the metric.
/// </para>
/// </summary>
public StatisticSet StatisticValues
{
get { return this._statisticValues; }
set { this._statisticValues = value; }
}
// Check to see if StatisticValues property is set
internal bool IsSetStatisticValues()
{
return this._statisticValues != null;
}
/// <summary>
/// Gets and sets the property StorageResolution.
/// <para>
/// Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution
/// metric, so that CloudWatch stores the metric with sub-minute resolution down to one
/// second. Setting this to 60 specifies this metric as a regular-resolution metric, which
/// CloudWatch stores at 1-minute resolution. Currently, high resolution is available
/// only for custom metrics. For more information about high-resolution metrics, see <a
/// href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html#high-resolution-metrics">High-Resolution
/// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
///
/// <para>
/// This field is optional, if you do not specify it the default of 60 is used.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int StorageResolution
{
get { return this._storageResolution.GetValueOrDefault(); }
set { this._storageResolution = value; }
}
// Check to see if StorageResolution property is set
internal bool IsSetStorageResolution()
{
return this._storageResolution.HasValue;
}
/// <summary>
/// Gets and sets the property TimestampUtc.
/// <para>
/// The time the metric data was received, expressed as the number of milliseconds since
/// Jan 1, 1970 00:00:00 UTC.
/// </para>
/// </summary>
public DateTime TimestampUtc
{
get { return this._timestampUtc.GetValueOrDefault(); }
set { this._timestamp = this._timestampUtc = value; }
}
// Check to see if TimestampUtc property is set
internal bool IsSetTimestampUtc()
{
return this._timestampUtc.HasValue;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// When you are using a <code>Put</code> operation, this defines what unit you want to
/// use when storing the metric.
/// </para>
///
/// <para>
/// In a <code>Get</code> operation, this displays the unit that is used for the metric.
/// </para>
/// </summary>
public StandardUnit Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value for the metric.
/// </para>
///
/// <para>
/// Although the parameter accepts numbers of type Double, CloudWatch rejects values that
/// are either too small or too large. Values must be in the range of -2^360 to 2^360.
/// In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.
/// </para>
/// </summary>
public double Value
{
get { return this._value.GetValueOrDefault(); }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value.HasValue;
}
/// <summary>
/// Gets and sets the property Values.
/// <para>
/// Array of numbers representing the values for the metric during the period. Each unique
/// value is listed just once in this array, and the corresponding number in the <code>Counts</code>
/// array specifies the number of times that value occurred during the period. You can
/// include up to 150 unique values in each <code>PutMetricData</code> action that specifies
/// a <code>Values</code> array.
/// </para>
///
/// <para>
/// Although the <code>Values</code> array accepts numbers of type <code>Double</code>,
/// CloudWatch rejects values that are either too small or too large. Values must be in
/// the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity,
/// -Infinity) are not supported.
/// </para>
/// </summary>
public List<double> Values
{
get { return this._values; }
set { this._values = value; }
}
// Check to see if Values property is set
internal bool IsSetValues()
{
return this._values != null && this._values.Count > 0;
}
#region Backwards compatible properties
private DateTime? _timestamp;
/// <summary>
/// Gets and sets the property TimestampUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use TimestampUtc instead. Setting either Timestamp or
/// TimestampUtc results in both Timestamp and TimestampUtc being assigned, the latest
/// assignment to either one of the two property is reflected in the value of both. Timestamp
/// is provided for backwards compatibility only and assigning a non-Utc DateTime to it
/// results in the wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The time the metric data was received, expressed as the number of milliseconds since
/// Jan 1, 1970 00:00:00 UTC.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use TimestampUtc instead. Setting either Timestamp or TimestampUtc results in both Timestamp and " +
"TimestampUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. Timestamp is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime Timestamp
{
get { return this._timestamp.GetValueOrDefault(); }
set
{
this._timestamp = value;
this._timestampUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
#endregion
}
} | 288 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Indicates the CloudWatch math expression that provides the time series the anomaly
/// detector uses as input. The designated math expression must return a single time series.
/// </summary>
public partial class MetricMathAnomalyDetector
{
private List<MetricDataQuery> _metricDataQueries = new List<MetricDataQuery>();
/// <summary>
/// Gets and sets the property MetricDataQueries.
/// <para>
/// An array of metric data query structures that enables you to create an anomaly detector
/// based on the result of a metric math expression. Each item in <code>MetricDataQueries</code>
/// gets a metric or performs a math expression. One item in <code>MetricDataQueries</code>
/// is the expression that provides the time series that the anomaly detector uses as
/// input. Designate the expression by setting <code>ReturnData</code> to <code>true</code>
/// for this object in the array. For all other expressions and metrics, set <code>ReturnData</code>
/// to <code>false</code>. The designated expression must return a single time series.
/// </para>
/// </summary>
public List<MetricDataQuery> MetricDataQueries
{
get { return this._metricDataQueries; }
set { this._metricDataQueries = value; }
}
// Check to see if MetricDataQueries property is set
internal bool IsSetMetricDataQueries()
{
return this._metricDataQueries != null && this._metricDataQueries.Count > 0;
}
}
} | 64 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This structure defines the metric to be returned, along with the statistics, period,
/// and units.
/// </summary>
public partial class MetricStat
{
private Metric _metric;
private int? _period;
private string _stat;
private StandardUnit _unit;
/// <summary>
/// Gets and sets the property Metric.
/// <para>
/// The metric to return, including the metric name, namespace, and dimensions.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Metric Metric
{
get { return this._metric; }
set { this._metric = value; }
}
// Check to see if Metric property is set
internal bool IsSetMetric()
{
return this._metric != null;
}
/// <summary>
/// Gets and sets the property Period.
/// <para>
/// The granularity, in seconds, of the returned data points. For metrics with regular
/// resolution, a period can be as short as one minute (60 seconds) and must be a multiple
/// of 60. For high-resolution metrics that are collected at intervals of less than one
/// minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution
/// metrics are those metrics stored by a <code>PutMetricData</code> call that includes
/// a <code>StorageResolution</code> of 1 second.
/// </para>
///
/// <para>
/// If the <code>StartTime</code> parameter specifies a time stamp that is greater than
/// 3 hours ago, you must specify the period as follows or no data points in that time
/// range is returned:
/// </para>
/// <ul> <li>
/// <para>
/// Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
/// </para>
/// </li> <li>
/// <para>
/// Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
/// </para>
/// </li> <li>
/// <para>
/// Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1)]
public int Period
{
get { return this._period.GetValueOrDefault(); }
set { this._period = value; }
}
// Check to see if Period property is set
internal bool IsSetPeriod()
{
return this._period.HasValue;
}
/// <summary>
/// Gets and sets the property Stat.
/// <para>
/// The statistic to return. It can include any CloudWatch statistic or extended statistic.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Stat
{
get { return this._stat; }
set { this._stat = value; }
}
// Check to see if Stat property is set
internal bool IsSetStat()
{
return this._stat != null;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// When you are using a <code>Put</code> operation, this defines what unit you want to
/// use when storing the metric.
/// </para>
///
/// <para>
/// In a <code>Get</code> operation, if you omit <code>Unit</code> then all data that
/// was collected with any unit is returned, along with the corresponding units that were
/// specified when the data was reported to CloudWatch. If you specify a unit, the operation
/// returns only data that was collected with that unit specified. If you specify a unit
/// that does not match the data collected, the results of the operation are null. CloudWatch
/// does not perform unit conversions.
/// </para>
/// </summary>
public StandardUnit Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
}
} | 152 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This structure contains the configuration information about one metric stream.
/// </summary>
public partial class MetricStreamEntry
{
private string _arn;
private DateTime? _creationDate;
private string _firehoseArn;
private DateTime? _lastUpdateDate;
private string _name;
private MetricStreamOutputFormat _outputFormat;
private string _state;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the metric stream.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date that the metric stream was originally created.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property FirehoseArn.
/// <para>
/// The ARN of the Kinesis Firehose devlivery stream that is used for this metric stream.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string FirehoseArn
{
get { return this._firehoseArn; }
set { this._firehoseArn = value; }
}
// Check to see if FirehoseArn property is set
internal bool IsSetFirehoseArn()
{
return this._firehoseArn != null;
}
/// <summary>
/// Gets and sets the property LastUpdateDate.
/// <para>
/// The date that the configuration of this metric stream was most recently updated.
/// </para>
/// </summary>
public DateTime LastUpdateDate
{
get { return this._lastUpdateDate.GetValueOrDefault(); }
set { this._lastUpdateDate = value; }
}
// Check to see if LastUpdateDate property is set
internal bool IsSetLastUpdateDate()
{
return this._lastUpdateDate.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the metric stream.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
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;
}
/// <summary>
/// Gets and sets the property OutputFormat.
/// <para>
/// The output format of this metric stream. Valid values are <code>json</code> and <code>opentelemetry0.7</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public MetricStreamOutputFormat OutputFormat
{
get { return this._outputFormat; }
set { this._outputFormat = value; }
}
// Check to see if OutputFormat property is set
internal bool IsSetOutputFormat()
{
return this._outputFormat != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The current state of this stream. Valid values are <code>running</code> and <code>stopped</code>.
/// </para>
/// </summary>
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;
}
}
} | 175 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This structure contains a metric namespace and optionally, a list of metric names,
/// to either include in a metric stream or exclude from a metric stream.
///
///
/// <para>
/// A metric stream's filters can include up to 1000 total names. This limit applies to
/// the sum of namespace names and metric names in the filters. For example, this could
/// include 10 metric namespace filters with 99 metrics each, or 20 namespace filters
/// with 49 metrics specified in each filter.
/// </para>
/// </summary>
public partial class MetricStreamFilter
{
private List<string> _metricNames = new List<string>();
private string _awsNamespace;
/// <summary>
/// Gets and sets the property MetricNames.
/// <para>
/// The names of the metrics to either include or exclude from the metric stream.
/// </para>
///
/// <para>
/// If you omit this parameter, all metrics in the namespace are included or excluded,
/// depending on whether this filter is specified as an exclude filter or an include filter.
/// </para>
///
/// <para>
/// Each metric name can contain only ASCII printable characters (ASCII range 32 through
/// 126). Each metric name must contain at least one non-whitespace character.
/// </para>
/// </summary>
public List<string> MetricNames
{
get { return this._metricNames; }
set { this._metricNames = value; }
}
// Check to see if MetricNames property is set
internal bool IsSetMetricNames()
{
return this._metricNames != null && this._metricNames.Count > 0;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The name of the metric namespace for this filter.
/// </para>
///
/// <para>
/// The namespace can contain only ASCII printable characters (ASCII range 32 through
/// 126). It must contain at least one non-whitespace character.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
}
} | 101 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>,
/// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. This structure
/// contains information for one metric that includes additional statistics in the stream.
/// For more information about statistics, see CloudWatch, listed in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html">
/// CloudWatch statistics definitions</a>.
/// </summary>
public partial class MetricStreamStatisticsConfiguration
{
private List<string> _additionalStatistics = new List<string>();
private List<MetricStreamStatisticsMetric> _includeMetrics = new List<MetricStreamStatisticsMetric>();
/// <summary>
/// Gets and sets the property AdditionalStatistics.
/// <para>
/// The list of additional statistics that are to be streamed for the metrics listed in
/// the <code>IncludeMetrics</code> array in this structure. This list can include as
/// many as 20 statistics.
/// </para>
///
/// <para>
/// If the <code>OutputFormat</code> for the stream is <code>opentelemetry0.7</code>,
/// the only valid values are <code>p<i>??</i> </code> percentile statistics such as <code>p90</code>,
/// <code>p99</code> and so on.
/// </para>
///
/// <para>
/// If the <code>OutputFormat</code> for the stream is <code>json</code>, the valid values
/// include the abbreviations for all of the statistics listed in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html">
/// CloudWatch statistics definitions</a>. For example, this includes <code>tm98, </code>
/// <code>wm90</code>, <code>PR(:300)</code>, and so on.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> AdditionalStatistics
{
get { return this._additionalStatistics; }
set { this._additionalStatistics = value; }
}
// Check to see if AdditionalStatistics property is set
internal bool IsSetAdditionalStatistics()
{
return this._additionalStatistics != null && this._additionalStatistics.Count > 0;
}
/// <summary>
/// Gets and sets the property IncludeMetrics.
/// <para>
/// An array of metric name and namespace pairs that stream the additional statistics
/// listed in the value of the <code>AdditionalStatistics</code> parameter. There can
/// be as many as 100 pairs in the array.
/// </para>
///
/// <para>
/// All metrics that match the combination of metric name and namespace will be streamed
/// with the additional statistics, no matter their dimensions.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<MetricStreamStatisticsMetric> IncludeMetrics
{
get { return this._includeMetrics; }
set { this._includeMetrics = value; }
}
// Check to see if IncludeMetrics property is set
internal bool IsSetIncludeMetrics()
{
return this._includeMetrics != null && this._includeMetrics.Count > 0;
}
}
} | 104 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This object contains the information for one metric that is to be streamed with additional
/// statistics.
/// </summary>
public partial class MetricStreamStatisticsMetric
{
private string _metricName;
private string _awsNamespace;
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// An input parameter that is required is missing.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class MissingRequiredParameterException : AmazonCloudWatchException
{
/// <summary>
/// Constructs a new MissingRequiredParameterException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public MissingRequiredParameterException(string message)
: base(message) {}
/// <summary>
/// Construct instance of MissingRequiredParameterException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public MissingRequiredParameterException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of MissingRequiredParameterException
/// </summary>
/// <param name="innerException"></param>
public MissingRequiredParameterException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of MissingRequiredParameterException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public MissingRequiredParameterException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of MissingRequiredParameterException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public MissingRequiredParameterException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the MissingRequiredParameterException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected MissingRequiredParameterException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This array is empty if the API operation was successful for all the rules specified
/// in the request. If the operation could not process one of the rules, the following
/// data is returned for each of those rules.
/// </summary>
public partial class PartialFailure
{
private string _exceptionType;
private string _failureCode;
private string _failureDescription;
private string _failureResource;
/// <summary>
/// Gets and sets the property ExceptionType.
/// <para>
/// The type of error.
/// </para>
/// </summary>
public string ExceptionType
{
get { return this._exceptionType; }
set { this._exceptionType = value; }
}
// Check to see if ExceptionType property is set
internal bool IsSetExceptionType()
{
return this._exceptionType != null;
}
/// <summary>
/// Gets and sets the property FailureCode.
/// <para>
/// The code of the error.
/// </para>
/// </summary>
public string FailureCode
{
get { return this._failureCode; }
set { this._failureCode = value; }
}
// Check to see if FailureCode property is set
internal bool IsSetFailureCode()
{
return this._failureCode != null;
}
/// <summary>
/// Gets and sets the property FailureDescription.
/// <para>
/// A description of the error.
/// </para>
/// </summary>
public string FailureDescription
{
get { return this._failureDescription; }
set { this._failureDescription = value; }
}
// Check to see if FailureDescription property is set
internal bool IsSetFailureDescription()
{
return this._failureDescription != null;
}
/// <summary>
/// Gets and sets the property FailureResource.
/// <para>
/// The specified rule that could not be deleted.
/// </para>
/// </summary>
public string FailureResource
{
get { return this._failureResource; }
set { this._failureResource = value; }
}
// Check to see if FailureResource property is set
internal bool IsSetFailureResource()
{
return this._failureResource != null;
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the PutAnomalyDetector operation.
/// Creates an anomaly detection model for a CloudWatch metric. You can use the model
/// to display a band of expected normal values when the metric is graphed.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html">CloudWatch
/// Anomaly Detection</a>.
/// </para>
/// </summary>
public partial class PutAnomalyDetectorRequest : AmazonCloudWatchRequest
{
private AnomalyDetectorConfiguration _configuration;
private List<Dimension> _dimensions = new List<Dimension>();
private MetricMathAnomalyDetector _metricMathAnomalyDetector;
private string _metricName;
private string _awsNamespace;
private SingleMetricAnomalyDetector _singleMetricAnomalyDetector;
private string _stat;
/// <summary>
/// Gets and sets the property Configuration.
/// <para>
/// The configuration specifies details about how the anomaly detection model is to be
/// trained, including time ranges to exclude when training and updating the model. You
/// can specify as many as 10 time ranges.
/// </para>
///
/// <para>
/// The configuration can also include the time zone to use for the metric.
/// </para>
/// </summary>
public AnomalyDetectorConfiguration Configuration
{
get { return this._configuration; }
set { this._configuration = value; }
}
// Check to see if Configuration property is set
internal bool IsSetConfiguration()
{
return this._configuration != null;
}
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The metric dimensions to create the anomaly detection model for.
/// </para>
/// </summary>
[Obsolete("Use SingleMetricAnomalyDetector.")]
[AWSProperty(Max=30)]
public List<Dimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricMathAnomalyDetector.
/// <para>
/// The metric math anomaly detector to be created.
/// </para>
///
/// <para>
/// When using <code>MetricMathAnomalyDetector</code>, you cannot include the following
/// parameters in the same operation:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Dimensions</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>MetricName</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>Namespace</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>Stat</code>
/// </para>
/// </li> <li>
/// <para>
/// the <code>SingleMetricAnomalyDetector</code> parameters of <code>PutAnomalyDetectorInput</code>
///
/// </para>
/// </li> </ul>
/// <para>
/// Instead, specify the metric math anomaly detector attributes as part of the property
/// <code>MetricMathAnomalyDetector</code>.
/// </para>
/// </summary>
public MetricMathAnomalyDetector MetricMathAnomalyDetector
{
get { return this._metricMathAnomalyDetector; }
set { this._metricMathAnomalyDetector = value; }
}
// Check to see if MetricMathAnomalyDetector property is set
internal bool IsSetMetricMathAnomalyDetector()
{
return this._metricMathAnomalyDetector != null;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric to create the anomaly detection model for.
/// </para>
/// </summary>
[Obsolete("Use SingleMetricAnomalyDetector.")]
[AWSProperty(Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric to create the anomaly detection model for.
/// </para>
/// </summary>
[Obsolete("Use SingleMetricAnomalyDetector.")]
[AWSProperty(Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
/// <summary>
/// Gets and sets the property SingleMetricAnomalyDetector.
/// <para>
/// A single metric anomaly detector to be created.
/// </para>
///
/// <para>
/// When using <code>SingleMetricAnomalyDetector</code>, you cannot include the following
/// parameters in the same operation:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Dimensions</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>MetricName</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>Namespace</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>Stat</code>
/// </para>
/// </li> <li>
/// <para>
/// the <code>MetricMatchAnomalyDetector</code> parameters of <code>PutAnomalyDetectorInput</code>
///
/// </para>
/// </li> </ul>
/// <para>
/// Instead, specify the single metric anomaly detector attributes as part of the property
/// <code>SingleMetricAnomalyDetector</code>.
/// </para>
/// </summary>
public SingleMetricAnomalyDetector SingleMetricAnomalyDetector
{
get { return this._singleMetricAnomalyDetector; }
set { this._singleMetricAnomalyDetector = value; }
}
// Check to see if SingleMetricAnomalyDetector property is set
internal bool IsSetSingleMetricAnomalyDetector()
{
return this._singleMetricAnomalyDetector != null;
}
/// <summary>
/// Gets and sets the property Stat.
/// <para>
/// The statistic to use for the metric and the anomaly detection model.
/// </para>
/// </summary>
[Obsolete("Use SingleMetricAnomalyDetector.")]
[AWSProperty(Max=50)]
public string Stat
{
get { return this._stat; }
set { this._stat = value; }
}
// Check to see if Stat property is set
internal bool IsSetStat()
{
return this._stat != null;
}
}
} | 255 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the PutAnomalyDetector operation.
/// </summary>
public partial class PutAnomalyDetectorResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the PutCompositeAlarm operation.
/// Creates or updates a <i>composite alarm</i>. When you create a composite alarm, you
/// specify a rule expression for the alarm that takes into account the alarm states of
/// other alarms that you have created. The composite alarm goes into ALARM state only
/// if all conditions of the rule are met.
///
///
/// <para>
/// The alarms specified in a composite alarm's rule expression can include metric alarms
/// and other composite alarms. The rule expression of a composite alarm can include as
/// many as 100 underlying alarms. Any single alarm can be included in the rule expressions
/// of as many as 150 composite alarms.
/// </para>
///
/// <para>
/// Using composite alarms can reduce alarm noise. You can create multiple metric alarms,
/// and also create a composite alarm and set up alerts only for the composite alarm.
/// For example, you could create a composite alarm that goes into ALARM state only when
/// more than one of the underlying metric alarms are in ALARM state.
/// </para>
///
/// <para>
/// Currently, the only alarm actions that can be taken by composite alarms are notifying
/// SNS topics.
/// </para>
/// <note>
/// <para>
/// It is possible to create a loop or cycle of composite alarms, where composite alarm
/// A depends on composite alarm B, and composite alarm B also depends on composite alarm
/// A. In this scenario, you can't delete any composite alarm that is part of the cycle
/// because there is always still a composite alarm that depends on that alarm that you
/// want to delete.
/// </para>
///
/// <para>
/// To get out of such a situation, you must break the cycle by changing the rule of one
/// of the composite alarms in the cycle to remove a dependency that creates the cycle.
/// The simplest change to make to break a cycle is to change the <code>AlarmRule</code>
/// of one of the alarms to <code>false</code>.
/// </para>
///
/// <para>
/// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle
/// in the evaluation path.
/// </para>
/// </note>
/// <para>
/// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>.
/// The alarm is then evaluated and its state is set appropriately. Any actions associated
/// with the new state are then executed. For a composite alarm, this initial time after
/// creation is the only time that the alarm can be in <code>INSUFFICIENT_DATA</code>
/// state.
/// </para>
///
/// <para>
/// When you update an existing alarm, its state is left unchanged, but the update completely
/// overwrites the previous configuration of the alarm.
/// </para>
///
/// <para>
/// To use this operation, you must be signed on with the <code>cloudwatch:PutCompositeAlarm</code>
/// permission that is scoped to <code>*</code>. You can't create a composite alarms if
/// your <code>cloudwatch:PutCompositeAlarm</code> permission has a narrower scope.
/// </para>
///
/// <para>
/// If you are an IAM user, you must have <code>iam:CreateServiceLinkedRole</code> to
/// create a composite alarm that has Systems Manager OpsItem actions.
/// </para>
/// </summary>
public partial class PutCompositeAlarmRequest : AmazonCloudWatchRequest
{
private bool? _actionsEnabled;
private string _actionsSuppressor;
private int? _actionsSuppressorExtensionPeriod;
private int? _actionsSuppressorWaitPeriod;
private List<string> _alarmActions = new List<string>();
private string _alarmDescription;
private string _alarmName;
private string _alarmRule;
private List<string> _insufficientDataActions = new List<string>();
private List<string> _okActions = new List<string>();
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property ActionsEnabled.
/// <para>
/// Indicates whether actions should be executed during any changes to the alarm state
/// of the composite alarm. The default is <code>TRUE</code>.
/// </para>
/// </summary>
public bool ActionsEnabled
{
get { return this._actionsEnabled.GetValueOrDefault(); }
set { this._actionsEnabled = value; }
}
// Check to see if ActionsEnabled property is set
internal bool IsSetActionsEnabled()
{
return this._actionsEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property ActionsSuppressor.
/// <para>
/// Actions will be suppressed if the suppressor alarm is in the <code>ALARM</code> state.
/// <code>ActionsSuppressor</code> can be an AlarmName or an Amazon Resource Name (ARN)
/// from an existing alarm.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ActionsSuppressor
{
get { return this._actionsSuppressor; }
set { this._actionsSuppressor = value; }
}
// Check to see if ActionsSuppressor property is set
internal bool IsSetActionsSuppressor()
{
return this._actionsSuppressor != null;
}
/// <summary>
/// Gets and sets the property ActionsSuppressorExtensionPeriod.
/// <para>
/// The maximum time in seconds that the composite alarm waits after suppressor alarm
/// goes out of the <code>ALARM</code> state. After this time, the composite alarm performs
/// its actions.
/// </para>
/// <important>
/// <para>
/// <code>ExtensionPeriod</code> is required only when <code>ActionsSuppressor</code>
/// is specified.
/// </para>
/// </important>
/// </summary>
public int ActionsSuppressorExtensionPeriod
{
get { return this._actionsSuppressorExtensionPeriod.GetValueOrDefault(); }
set { this._actionsSuppressorExtensionPeriod = value; }
}
// Check to see if ActionsSuppressorExtensionPeriod property is set
internal bool IsSetActionsSuppressorExtensionPeriod()
{
return this._actionsSuppressorExtensionPeriod.HasValue;
}
/// <summary>
/// Gets and sets the property ActionsSuppressorWaitPeriod.
/// <para>
/// The maximum time in seconds that the composite alarm waits for the suppressor alarm
/// to go into the <code>ALARM</code> state. After this time, the composite alarm performs
/// its actions.
/// </para>
/// <important>
/// <para>
/// <code>WaitPeriod</code> is required only when <code>ActionsSuppressor</code> is specified.
///
/// </para>
/// </important>
/// </summary>
public int ActionsSuppressorWaitPeriod
{
get { return this._actionsSuppressorWaitPeriod.GetValueOrDefault(); }
set { this._actionsSuppressorWaitPeriod = value; }
}
// Check to see if ActionsSuppressorWaitPeriod property is set
internal bool IsSetActionsSuppressorWaitPeriod()
{
return this._actionsSuppressorWaitPeriod.HasValue;
}
/// <summary>
/// Gets and sets the property AlarmActions.
/// <para>
/// The actions to execute when this alarm transitions to the <code>ALARM</code> state
/// from any other state. Each action is specified as an Amazon Resource Name (ARN).
/// </para>
///
/// <para>
/// Valid Values: <code>arn:aws:sns:<i>region</i>:<i>account-id</i>:<i>sns-topic-name</i>
/// </code> | <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:opsitem:<i>severity</i>
/// </code>
/// </para>
/// </summary>
[AWSProperty(Max=5)]
public List<string> AlarmActions
{
get { return this._alarmActions; }
set { this._alarmActions = value; }
}
// Check to see if AlarmActions property is set
internal bool IsSetAlarmActions()
{
return this._alarmActions != null && this._alarmActions.Count > 0;
}
/// <summary>
/// Gets and sets the property AlarmDescription.
/// <para>
/// The description for the composite alarm.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1024)]
public string AlarmDescription
{
get { return this._alarmDescription; }
set { this._alarmDescription = value; }
}
// Check to see if AlarmDescription property is set
internal bool IsSetAlarmDescription()
{
return this._alarmDescription != null;
}
/// <summary>
/// Gets and sets the property AlarmName.
/// <para>
/// The name for the composite alarm. This name must be unique within the Region.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AlarmName
{
get { return this._alarmName; }
set { this._alarmName = value; }
}
// Check to see if AlarmName property is set
internal bool IsSetAlarmName()
{
return this._alarmName != null;
}
/// <summary>
/// Gets and sets the property AlarmRule.
/// <para>
/// An expression that specifies which other alarms are to be evaluated to determine this
/// composite alarm's state. For each alarm that you reference, you designate a function
/// that specifies whether that alarm needs to be in ALARM state, OK state, or INSUFFICIENT_DATA
/// state. You can use operators (AND, OR and NOT) to combine multiple functions in a
/// single expression. You can use parenthesis to logically group the functions in your
/// expression.
/// </para>
///
/// <para>
/// You can use either alarm names or ARNs to reference the other alarms that are to be
/// evaluated.
/// </para>
///
/// <para>
/// Functions can include the following:
/// </para>
/// <ul> <li>
/// <para>
/// <code>ALARM("<i>alarm-name</i> or <i>alarm-ARN</i>")</code> is TRUE if the named
/// alarm is in ALARM state.
/// </para>
/// </li> <li>
/// <para>
/// <code>OK("<i>alarm-name</i> or <i>alarm-ARN</i>")</code> is TRUE if the named alarm
/// is in OK state.
/// </para>
/// </li> <li>
/// <para>
/// <code>INSUFFICIENT_DATA("<i>alarm-name</i> or <i>alarm-ARN</i>")</code> is TRUE if
/// the named alarm is in INSUFFICIENT_DATA state.
/// </para>
/// </li> <li>
/// <para>
/// <code>TRUE</code> always evaluates to TRUE.
/// </para>
/// </li> <li>
/// <para>
/// <code>FALSE</code> always evaluates to FALSE.
/// </para>
/// </li> </ul>
/// <para>
/// TRUE and FALSE are useful for testing a complex <code>AlarmRule</code> structure,
/// and for testing your alarm actions.
/// </para>
///
/// <para>
/// Alarm names specified in <code>AlarmRule</code> can be surrounded with double-quotes
/// ("), but do not have to be.
/// </para>
///
/// <para>
/// The following are some examples of <code>AlarmRule</code>:
/// </para>
/// <ul> <li>
/// <para>
/// <code>ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)</code> specifies
/// that the composite alarm goes into ALARM state only if both CPUUtilizationTooHigh
/// and DiskReadOpsTooHigh alarms are in ALARM state.
/// </para>
/// </li> <li>
/// <para>
/// <code>ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)</code> specifies
/// that the alarm goes to ALARM state if CPUUtilizationTooHigh is in ALARM state and
/// DeploymentInProgress is not in ALARM state. This example reduces alarm noise during
/// a known deployment window.
/// </para>
/// </li> <li>
/// <para>
/// <code>(ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)</code>
/// goes into ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state,
/// and if NetworkOutTooHigh is in OK state. This provides another example of using a
/// composite alarm to prevent noise. This rule ensures that you are not notified with
/// an alarm action on high CPU or disk usage if a known network problem is also occurring.
/// </para>
/// </li> </ul>
/// <para>
/// The <code>AlarmRule</code> can specify as many as 100 "children" alarms. The <code>AlarmRule</code>
/// expression can have as many as 500 elements. Elements are child alarms, TRUE or FALSE
/// statements, and parentheses.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=10240)]
public string AlarmRule
{
get { return this._alarmRule; }
set { this._alarmRule = value; }
}
// Check to see if AlarmRule property is set
internal bool IsSetAlarmRule()
{
return this._alarmRule != null;
}
/// <summary>
/// Gets and sets the property InsufficientDataActions.
/// <para>
/// The actions to execute when this alarm transitions to the <code>INSUFFICIENT_DATA</code>
/// state from any other state. Each action is specified as an Amazon Resource Name (ARN).
/// </para>
///
/// <para>
/// Valid Values: <code>arn:aws:sns:<i>region</i>:<i>account-id</i>:<i>sns-topic-name</i>
/// </code>
/// </para>
/// </summary>
[AWSProperty(Max=5)]
public List<string> InsufficientDataActions
{
get { return this._insufficientDataActions; }
set { this._insufficientDataActions = value; }
}
// Check to see if InsufficientDataActions property is set
internal bool IsSetInsufficientDataActions()
{
return this._insufficientDataActions != null && this._insufficientDataActions.Count > 0;
}
/// <summary>
/// Gets and sets the property OKActions.
/// <para>
/// The actions to execute when this alarm transitions to an <code>OK</code> state from
/// any other state. Each action is specified as an Amazon Resource Name (ARN).
/// </para>
///
/// <para>
/// Valid Values: <code>arn:aws:sns:<i>region</i>:<i>account-id</i>:<i>sns-topic-name</i>
/// </code>
/// </para>
/// </summary>
[AWSProperty(Max=5)]
public List<string> OKActions
{
get { return this._okActions; }
set { this._okActions = value; }
}
// Check to see if OKActions property is set
internal bool IsSetOKActions()
{
return this._okActions != null && this._okActions.Count > 0;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// A list of key-value pairs to associate with the composite alarm. You can associate
/// as many as 50 tags with an alarm.
/// </para>
///
/// <para>
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions, by granting a user permission to access or change only resources
/// with certain tag values.
/// </para>
/// </summary>
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 445 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the PutCompositeAlarm operation.
/// </summary>
public partial class PutCompositeAlarmResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the PutDashboard operation.
/// Creates a dashboard if it does not already exist, or updates an existing dashboard.
/// If you update a dashboard, the entire contents are replaced with what you specify
/// here.
///
///
/// <para>
/// All dashboards in your account are global, not region-specific.
/// </para>
///
/// <para>
/// A simple way to create a dashboard using <code>PutDashboard</code> is to copy an existing
/// dashboard. To copy an existing dashboard using the console, you can load the dashboard
/// and then use the View/edit source command in the Actions menu to display the JSON
/// block for that dashboard. Another way to copy a dashboard is to use <code>GetDashboard</code>,
/// and then use the data returned within <code>DashboardBody</code> as the template for
/// the new dashboard when you call <code>PutDashboard</code>.
/// </para>
///
/// <para>
/// When you create a dashboard with <code>PutDashboard</code>, a good practice is to
/// add a text widget at the top of the dashboard with a message that the dashboard was
/// created by script and should not be changed in the console. This message could also
/// point console users to the location of the <code>DashboardBody</code> script or the
/// CloudFormation template used to create the dashboard.
/// </para>
/// </summary>
public partial class PutDashboardRequest : AmazonCloudWatchRequest
{
private string _dashboardBody;
private string _dashboardName;
/// <summary>
/// Gets and sets the property DashboardBody.
/// <para>
/// The detailed information about the dashboard in JSON format, including the widgets
/// to include and their location on the dashboard. This parameter is required.
/// </para>
///
/// <para>
/// For more information about the syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html">Dashboard
/// Body Structure and Syntax</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DashboardBody
{
get { return this._dashboardBody; }
set { this._dashboardBody = value; }
}
// Check to see if DashboardBody property is set
internal bool IsSetDashboardBody()
{
return this._dashboardBody != null;
}
/// <summary>
/// Gets and sets the property DashboardName.
/// <para>
/// The name of the dashboard. If a dashboard with this name already exists, this call
/// modifies that dashboard, replacing its current contents. Otherwise, a new dashboard
/// is created. The maximum length is 255, and valid characters are A-Z, a-z, 0-9, "-",
/// and "_". This parameter is required.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DashboardName
{
get { return this._dashboardName; }
set { this._dashboardName = value; }
}
// Check to see if DashboardName property is set
internal bool IsSetDashboardName()
{
return this._dashboardName != null;
}
}
} | 112 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the PutDashboard operation.
/// </summary>
public partial class PutDashboardResponse : AmazonWebServiceResponse
{
private List<DashboardValidationMessage> _dashboardValidationMessages = new List<DashboardValidationMessage>();
/// <summary>
/// Gets and sets the property DashboardValidationMessages.
/// <para>
/// If the input for <code>PutDashboard</code> was correct and the dashboard was successfully
/// created or modified, this result is empty.
/// </para>
///
/// <para>
/// If this result includes only warning messages, then the input was valid enough for
/// the dashboard to be created or modified, but some elements of the dashboard might
/// not render.
/// </para>
///
/// <para>
/// If this result includes error messages, the input was not valid and the operation
/// failed.
/// </para>
/// </summary>
public List<DashboardValidationMessage> DashboardValidationMessages
{
get { return this._dashboardValidationMessages; }
set { this._dashboardValidationMessages = value; }
}
// Check to see if DashboardValidationMessages property is set
internal bool IsSetDashboardValidationMessages()
{
return this._dashboardValidationMessages != null && this._dashboardValidationMessages.Count > 0;
}
}
} | 69 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the PutInsightRule operation.
/// Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs
/// log group, enabling you to find contributor data for the log events in that log group.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using
/// Contributor Insights to Analyze High-Cardinality Data</a>.
///
///
/// <para>
/// If you create a rule, delete it, and then re-create it with the same name, historical
/// data from the first time the rule was created might not be available.
/// </para>
/// </summary>
public partial class PutInsightRuleRequest : AmazonCloudWatchRequest
{
private string _ruleDefinition;
private string _ruleName;
private string _ruleState;
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property RuleDefinition.
/// <para>
/// The definition of the rule, as a JSON object. For details on the valid syntax, see
/// <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html">Contributor
/// Insights Rule Syntax</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=8192)]
public string RuleDefinition
{
get { return this._ruleDefinition; }
set { this._ruleDefinition = value; }
}
// Check to see if RuleDefinition property is set
internal bool IsSetRuleDefinition()
{
return this._ruleDefinition != null;
}
/// <summary>
/// Gets and sets the property RuleName.
/// <para>
/// A unique name for the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
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;
}
/// <summary>
/// Gets and sets the property RuleState.
/// <para>
/// The state of the rule. Valid values are ENABLED and DISABLED.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string RuleState
{
get { return this._ruleState; }
set { this._ruleState = value; }
}
// Check to see if RuleState property is set
internal bool IsSetRuleState()
{
return this._ruleState != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// A list of key-value pairs to associate with the Contributor Insights rule. You can
/// associate as many as 50 tags with a rule.
/// </para>
///
/// <para>
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions, by granting a user permission to access or change only the
/// resources that have certain tag values.
/// </para>
///
/// <para>
/// To be able to associate tags with a rule, you must have the <code>cloudwatch:TagResource</code>
/// permission in addition to the <code>cloudwatch:PutInsightRule</code> permission.
/// </para>
///
/// <para>
/// If you are using this operation to update an existing Contributor Insights rule, any
/// tags you specify in this parameter are ignored. To change the tags of an existing
/// rule, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html">TagResource</a>.
/// </para>
/// </summary>
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 147 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the PutInsightRule operation.
/// </summary>
public partial class PutInsightRuleResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the PutManagedInsightRules operation.
/// Creates a managed Contributor Insights rule for a specified Amazon Web Services resource.
/// When you enable a managed rule, you create a Contributor Insights rule that collects
/// data from Amazon Web Services services. You cannot edit these rules with <code>PutInsightRule</code>.
/// The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>,
/// <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>. If a previously
/// created managed rule is currently disabled, a subsequent call to this API will re-enable
/// it. Use <code>ListManagedInsightRules</code> to describe all available rules.
/// </summary>
public partial class PutManagedInsightRulesRequest : AmazonCloudWatchRequest
{
private List<ManagedRule> _managedRules = new List<ManagedRule>();
/// <summary>
/// Gets and sets the property ManagedRules.
/// <para>
/// A list of <code>ManagedRules</code> to enable.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<ManagedRule> ManagedRules
{
get { return this._managedRules; }
set { this._managedRules = value; }
}
// Check to see if ManagedRules property is set
internal bool IsSetManagedRules()
{
return this._managedRules != null && this._managedRules.Count > 0;
}
}
} | 65 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the PutManagedInsightRules operation.
/// </summary>
public partial class PutManagedInsightRulesResponse : AmazonWebServiceResponse
{
private List<PartialFailure> _failures = new List<PartialFailure>();
/// <summary>
/// Gets and sets the property Failures.
/// <para>
/// An array that lists the rules that could not be enabled.
/// </para>
/// </summary>
public List<PartialFailure> Failures
{
get { return this._failures; }
set { this._failures = value; }
}
// Check to see if Failures property is set
internal bool IsSetFailures()
{
return this._failures != null && this._failures.Count > 0;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the PutMetricAlarm operation.
/// Creates or updates an alarm and associates it with the specified metric, metric math
/// expression, anomaly detection model, or Metrics Insights query. For more information
/// about using a Metrics Insights query for an alarm, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create
/// alarms on Metrics Insights queries</a>.
///
///
/// <para>
/// Alarms based on anomaly detection models cannot have Auto Scaling actions.
/// </para>
///
/// <para>
/// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>.
/// The alarm is then evaluated and its state is set appropriately. Any actions associated
/// with the new state are then executed.
/// </para>
///
/// <para>
/// When you update an existing alarm, its state is left unchanged, but the update completely
/// overwrites the previous configuration of the alarm.
/// </para>
///
/// <para>
/// If you are an IAM user, you must have Amazon EC2 permissions for some alarm operations:
/// </para>
/// <ul> <li>
/// <para>
/// The <code>iam:CreateServiceLinkedRole</code> permission for all alarms with EC2 actions
/// </para>
/// </li> <li>
/// <para>
/// The <code>iam:CreateServiceLinkedRole</code> permissions to create an alarm with Systems
/// Manager OpsItem or response plan actions.
/// </para>
/// </li> </ul>
/// <para>
/// The first time you create an alarm in the Amazon Web Services Management Console,
/// the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked
/// role for you. The service-linked roles are called <code>AWSServiceRoleForCloudWatchEvents</code>
/// and <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>. For more information,
/// see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon
/// Web Services service-linked role</a>.
/// </para>
///
/// <para>
/// Each <code>PutMetricAlarm</code> action has a maximum uncompressed payload of 120
/// KB.
/// </para>
///
/// <para>
/// <b>Cross-account alarms</b>
/// </para>
///
/// <para>
/// You can set an alarm on metrics in the current account, or in another account. To
/// create a cross-account alarm that watches a metric in a different account, you must
/// have completed the following pre-requisites:
/// </para>
/// <ul> <li>
/// <para>
/// The account where the metrics are located (the <i>sharing account</i>) must already
/// have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not
/// already have this role, you must create it using the instructions in <b>Set up a sharing
/// account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region">
/// Cross-account cross-Region CloudWatch console</a>. The policy for that role must grant
/// access to the ID of the account where you are creating the alarm.
/// </para>
/// </li> <li>
/// <para>
/// The account where you are creating the alarm (the <i>monitoring account</i>) must
/// already have a service-linked role named <b>AWSServiceRoleForCloudWatchCrossAccount</b>
/// to allow CloudWatch to assume the sharing role in the sharing account. If it does
/// not, you must create it following the directions in <b>Set up a monitoring account</b>
/// in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region">
/// Cross-account cross-Region CloudWatch console</a>.
/// </para>
/// </li> </ul>
/// </summary>
public partial class PutMetricAlarmRequest : AmazonCloudWatchRequest
{
private bool? _actionsEnabled;
private List<string> _alarmActions = new List<string>();
private string _alarmDescription;
private string _alarmName;
private ComparisonOperator _comparisonOperator;
private int? _datapointsToAlarm;
private List<Dimension> _dimensions = new List<Dimension>();
private string _evaluateLowSampleCountPercentile;
private int? _evaluationPeriods;
private string _extendedStatistic;
private List<string> _insufficientDataActions = new List<string>();
private string _metricName;
private List<MetricDataQuery> _metrics = new List<MetricDataQuery>();
private string _awsNamespace;
private List<string> _okActions = new List<string>();
private int? _period;
private Statistic _statistic;
private List<Tag> _tags = new List<Tag>();
private double? _threshold;
private string _thresholdMetricId;
private string _treatMissingData;
private StandardUnit _unit;
/// <summary>
/// Gets and sets the property ActionsEnabled.
/// <para>
/// Indicates whether actions should be executed during any changes to the alarm state.
/// The default is <code>TRUE</code>.
/// </para>
/// </summary>
public bool ActionsEnabled
{
get { return this._actionsEnabled.GetValueOrDefault(); }
set { this._actionsEnabled = value; }
}
// Check to see if ActionsEnabled property is set
internal bool IsSetActionsEnabled()
{
return this._actionsEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property AlarmActions.
/// <para>
/// The actions to execute when this alarm transitions to the <code>ALARM</code> state
/// from any other state. Each action is specified as an Amazon Resource Name (ARN). Valid
/// values:
/// </para>
///
/// <para>
/// <b>EC2 actions:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:stop</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:terminate</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:reboot</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:recover</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Stop/1.0</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Terminate/1.0</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Reboot/1.0</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Recover/1.0</code>
///
/// </para>
/// </li> </ul>
/// <para>
/// <b>Autoscaling action:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:autoscaling:<i>region</i>:<i>account-id</i>:scalingPolicy:<i>policy-id</i>:autoScalingGroupName/<i>group-friendly-name</i>:policyName/<i>policy-friendly-name</i>
/// </code>
/// </para>
/// </li> </ul>
/// <para>
/// <b>SNS notification action:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:sns:<i>region</i>:<i>account-id</i>:<i>sns-topic-name</i>:autoScalingGroupName/<i>group-friendly-name</i>:policyName/<i>policy-friendly-name</i>
/// </code>
/// </para>
/// </li> </ul>
/// <para>
/// <b>SSM integration actions:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:opsitem:<i>severity</i>#CATEGORY=<i>category-name</i>
/// </code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:ssm-incidents::<i>account-id</i>:responseplan/<i>response-plan-name</i>
/// </code>
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Max=5)]
public List<string> AlarmActions
{
get { return this._alarmActions; }
set { this._alarmActions = value; }
}
// Check to see if AlarmActions property is set
internal bool IsSetAlarmActions()
{
return this._alarmActions != null && this._alarmActions.Count > 0;
}
/// <summary>
/// Gets and sets the property AlarmDescription.
/// <para>
/// The description for the alarm.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1024)]
public string AlarmDescription
{
get { return this._alarmDescription; }
set { this._alarmDescription = value; }
}
// Check to see if AlarmDescription property is set
internal bool IsSetAlarmDescription()
{
return this._alarmDescription != null;
}
/// <summary>
/// Gets and sets the property AlarmName.
/// <para>
/// The name for the alarm. This name must be unique within the Region.
/// </para>
///
/// <para>
/// The name must contain only UTF-8 characters, and can't contain ASCII control characters
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AlarmName
{
get { return this._alarmName; }
set { this._alarmName = value; }
}
// Check to see if AlarmName property is set
internal bool IsSetAlarmName()
{
return this._alarmName != null;
}
/// <summary>
/// Gets and sets the property ComparisonOperator.
/// <para>
/// The arithmetic operation to use when comparing the specified statistic and threshold.
/// The specified statistic value is used as the first operand.
/// </para>
///
/// <para>
/// The values <code>LessThanLowerOrGreaterThanUpperThreshold</code>, <code>LessThanLowerThreshold</code>,
/// and <code>GreaterThanUpperThreshold</code> are used only for alarms based on anomaly
/// detection models.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ComparisonOperator ComparisonOperator
{
get { return this._comparisonOperator; }
set { this._comparisonOperator = value; }
}
// Check to see if ComparisonOperator property is set
internal bool IsSetComparisonOperator()
{
return this._comparisonOperator != null;
}
/// <summary>
/// Gets and sets the property DatapointsToAlarm.
/// <para>
/// The number of data points that must be breaching to trigger the alarm. This is used
/// only if you are setting an "M out of N" alarm. In that case, this value is the M.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation">Evaluating
/// an Alarm</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int DatapointsToAlarm
{
get { return this._datapointsToAlarm.GetValueOrDefault(); }
set { this._datapointsToAlarm = value; }
}
// Check to see if DatapointsToAlarm property is set
internal bool IsSetDatapointsToAlarm()
{
return this._datapointsToAlarm.HasValue;
}
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions for the metric specified in <code>MetricName</code>.
/// </para>
/// </summary>
[AWSProperty(Max=30)]
public List<Dimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property EvaluateLowSampleCountPercentile.
/// <para>
/// Used only for alarms based on percentiles. If you specify <code>ignore</code>, the
/// alarm state does not change during periods with too few data points to be statistically
/// significant. If you specify <code>evaluate</code> or omit this parameter, the alarm
/// is always evaluated and possibly changes state no matter how many data points are
/// available. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#percentiles-with-low-samples">Percentile-Based
/// CloudWatch Alarms and Low Data Samples</a>.
/// </para>
///
/// <para>
/// Valid Values: <code>evaluate | ignore</code>
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string EvaluateLowSampleCountPercentile
{
get { return this._evaluateLowSampleCountPercentile; }
set { this._evaluateLowSampleCountPercentile = value; }
}
// Check to see if EvaluateLowSampleCountPercentile property is set
internal bool IsSetEvaluateLowSampleCountPercentile()
{
return this._evaluateLowSampleCountPercentile != null;
}
/// <summary>
/// Gets and sets the property EvaluationPeriods.
/// <para>
/// The number of periods over which data is compared to the specified threshold. If you
/// are setting an alarm that requires that a number of consecutive data points be breaching
/// to trigger the alarm, this value specifies that number. If you are setting an "M out
/// of N" alarm, this value is the N.
/// </para>
///
/// <para>
/// An alarm's total current evaluation period can be no longer than one day, so this
/// number multiplied by <code>Period</code> cannot be more than 86,400 seconds.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1)]
public int EvaluationPeriods
{
get { return this._evaluationPeriods.GetValueOrDefault(); }
set { this._evaluationPeriods = value; }
}
// Check to see if EvaluationPeriods property is set
internal bool IsSetEvaluationPeriods()
{
return this._evaluationPeriods.HasValue;
}
/// <summary>
/// Gets and sets the property ExtendedStatistic.
/// <para>
/// The percentile statistic for the metric specified in <code>MetricName</code>. Specify
/// a value between p0.0 and p100. When you call <code>PutMetricAlarm</code> and specify
/// a <code>MetricName</code>, you must specify either <code>Statistic</code> or <code>ExtendedStatistic,</code>
/// but not both.
/// </para>
/// </summary>
public string ExtendedStatistic
{
get { return this._extendedStatistic; }
set { this._extendedStatistic = value; }
}
// Check to see if ExtendedStatistic property is set
internal bool IsSetExtendedStatistic()
{
return this._extendedStatistic != null;
}
/// <summary>
/// Gets and sets the property InsufficientDataActions.
/// <para>
/// The actions to execute when this alarm transitions to the <code>INSUFFICIENT_DATA</code>
/// state from any other state. Each action is specified as an Amazon Resource Name (ARN).
/// Valid values:
/// </para>
///
/// <para>
/// <b>EC2 actions:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:stop</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:terminate</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:reboot</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:recover</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Stop/1.0</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Terminate/1.0</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Reboot/1.0</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Recover/1.0</code>
///
/// </para>
/// </li> </ul>
/// <para>
/// <b>Autoscaling action:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:autoscaling:<i>region</i>:<i>account-id</i>:scalingPolicy:<i>policy-id</i>:autoScalingGroupName/<i>group-friendly-name</i>:policyName/<i>policy-friendly-name</i>
/// </code>
/// </para>
/// </li> </ul>
/// <para>
/// <b>SNS notification action:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:sns:<i>region</i>:<i>account-id</i>:<i>sns-topic-name</i>:autoScalingGroupName/<i>group-friendly-name</i>:policyName/<i>policy-friendly-name</i>
/// </code>
/// </para>
/// </li> </ul>
/// <para>
/// <b>SSM integration actions:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:opsitem:<i>severity</i>#CATEGORY=<i>category-name</i>
/// </code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:ssm-incidents::<i>account-id</i>:responseplan/<i>response-plan-name</i>
/// </code>
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Max=5)]
public List<string> InsufficientDataActions
{
get { return this._insufficientDataActions; }
set { this._insufficientDataActions = value; }
}
// Check to see if InsufficientDataActions property is set
internal bool IsSetInsufficientDataActions()
{
return this._insufficientDataActions != null && this._insufficientDataActions.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name for the metric associated with the alarm. For each <code>PutMetricAlarm</code>
/// operation, you must specify either <code>MetricName</code> or a <code>Metrics</code>
/// array.
/// </para>
///
/// <para>
/// If you are creating an alarm based on a math expression, you cannot specify this parameter,
/// or any of the <code>Dimensions</code>, <code>Period</code>, <code>Namespace</code>,
/// <code>Statistic</code>, or <code>ExtendedStatistic</code> parameters. Instead, you
/// specify all this information in the <code>Metrics</code> array.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Metrics.
/// <para>
/// An array of <code>MetricDataQuery</code> structures that enable you to create an alarm
/// based on the result of a metric math expression. For each <code>PutMetricAlarm</code>
/// operation, you must specify either <code>MetricName</code> or a <code>Metrics</code>
/// array.
/// </para>
///
/// <para>
/// Each item in the <code>Metrics</code> array either retrieves a metric or performs
/// a math expression.
/// </para>
///
/// <para>
/// One item in the <code>Metrics</code> array is the expression that the alarm watches.
/// You designate this expression by setting <code>ReturnData</code> to true for this
/// object in the array. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDataQuery.html">MetricDataQuery</a>.
/// </para>
///
/// <para>
/// If you use the <code>Metrics</code> parameter, you cannot include the <code>MetricName</code>,
/// <code>Dimensions</code>, <code>Period</code>, <code>Namespace</code>, <code>Statistic</code>,
/// or <code>ExtendedStatistic</code> parameters of <code>PutMetricAlarm</code> in the
/// same operation. Instead, you retrieve the metrics you are using in your math expression
/// as part of the <code>Metrics</code> array.
/// </para>
/// </summary>
public List<MetricDataQuery> Metrics
{
get { return this._metrics; }
set { this._metrics = value; }
}
// Check to see if Metrics property is set
internal bool IsSetMetrics()
{
return this._metrics != null && this._metrics.Count > 0;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace for the metric associated specified in <code>MetricName</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
/// <summary>
/// Gets and sets the property OKActions.
/// <para>
/// The actions to execute when this alarm transitions to an <code>OK</code> state from
/// any other state. Each action is specified as an Amazon Resource Name (ARN). Valid
/// values:
/// </para>
///
/// <para>
/// <b>EC2 actions:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:stop</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:terminate</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:reboot</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:automate:<i>region</i>:ec2:recover</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Stop/1.0</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Terminate/1.0</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Reboot/1.0</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:swf:<i>region</i>:<i>account-id</i>:action/actions/AWS_EC2.InstanceId.Recover/1.0</code>
///
/// </para>
/// </li> </ul>
/// <para>
/// <b>Autoscaling action:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:autoscaling:<i>region</i>:<i>account-id</i>:scalingPolicy:<i>policy-id</i>:autoScalingGroupName/<i>group-friendly-name</i>:policyName/<i>policy-friendly-name</i>
/// </code>
/// </para>
/// </li> </ul>
/// <para>
/// <b>SNS notification action:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:sns:<i>region</i>:<i>account-id</i>:<i>sns-topic-name</i>:autoScalingGroupName/<i>group-friendly-name</i>:policyName/<i>policy-friendly-name</i>
/// </code>
/// </para>
/// </li> </ul>
/// <para>
/// <b>SSM integration actions:</b>
/// </para>
/// <ul> <li>
/// <para>
/// <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:opsitem:<i>severity</i>#CATEGORY=<i>category-name</i>
/// </code>
/// </para>
/// </li> <li>
/// <para>
/// <code>arn:aws:ssm-incidents::<i>account-id</i>:responseplan/<i>response-plan-name</i>
/// </code>
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Max=5)]
public List<string> OKActions
{
get { return this._okActions; }
set { this._okActions = value; }
}
// Check to see if OKActions property is set
internal bool IsSetOKActions()
{
return this._okActions != null && this._okActions.Count > 0;
}
/// <summary>
/// Gets and sets the property Period.
/// <para>
/// The length, in seconds, used each time the metric specified in <code>MetricName</code>
/// is evaluated. Valid values are 10, 30, and any multiple of 60.
/// </para>
///
/// <para>
/// <code>Period</code> is required for alarms based on static thresholds. If you are
/// creating an alarm based on a metric math expression, you specify the period for each
/// metric within the objects in the <code>Metrics</code> array.
/// </para>
///
/// <para>
/// Be sure to specify 10 or 30 only for metrics that are stored by a <code>PutMetricData</code>
/// call with a <code>StorageResolution</code> of 1. If you specify a period of 10 or
/// 30 for a metric that does not have sub-minute resolution, the alarm still attempts
/// to gather data at the period rate that you specify. In this case, it does not receive
/// data for the attempts that do not correspond to a one-minute data resolution, and
/// the alarm might often lapse into INSUFFICENT_DATA status. Specifying 10 or 30 also
/// sets this alarm as a high-resolution alarm, which has a higher charge than other alarms.
/// For more information about pricing, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon
/// CloudWatch Pricing</a>.
/// </para>
///
/// <para>
/// An alarm's total current evaluation period can be no longer than one day, so <code>Period</code>
/// multiplied by <code>EvaluationPeriods</code> cannot be more than 86,400 seconds.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int Period
{
get { return this._period.GetValueOrDefault(); }
set { this._period = value; }
}
// Check to see if Period property is set
internal bool IsSetPeriod()
{
return this._period.HasValue;
}
/// <summary>
/// Gets and sets the property Statistic.
/// <para>
/// The statistic for the metric specified in <code>MetricName</code>, other than percentile.
/// For percentile statistics, use <code>ExtendedStatistic</code>. When you call <code>PutMetricAlarm</code>
/// and specify a <code>MetricName</code>, you must specify either <code>Statistic</code>
/// or <code>ExtendedStatistic,</code> but not both.
/// </para>
/// </summary>
public Statistic Statistic
{
get { return this._statistic; }
set { this._statistic = value; }
}
// Check to see if Statistic property is set
internal bool IsSetStatistic()
{
return this._statistic != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// A list of key-value pairs to associate with the alarm. You can associate as many as
/// 50 tags with an alarm.
/// </para>
///
/// <para>
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values.
/// </para>
///
/// <para>
/// If you are using this operation to update an existing alarm, any tags you specify
/// in this parameter are ignored. To change the tags of an existing alarm, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html">TagResource</a>
/// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
/// </summary>
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Threshold.
/// <para>
/// The value against which the specified statistic is compared.
/// </para>
///
/// <para>
/// This parameter is required for alarms based on static thresholds, but should not be
/// used for alarms based on anomaly detection models.
/// </para>
/// </summary>
public double Threshold
{
get { return this._threshold.GetValueOrDefault(); }
set { this._threshold = value; }
}
// Check to see if Threshold property is set
internal bool IsSetThreshold()
{
return this._threshold.HasValue;
}
/// <summary>
/// Gets and sets the property ThresholdMetricId.
/// <para>
/// If this is an alarm based on an anomaly detection model, make this value match the
/// ID of the <code>ANOMALY_DETECTION_BAND</code> function.
/// </para>
///
/// <para>
/// For an example of how to use this parameter, see the <b>Anomaly Detection Model Alarm</b>
/// example on this page.
/// </para>
///
/// <para>
/// If your alarm uses this parameter, it cannot have Auto Scaling actions.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ThresholdMetricId
{
get { return this._thresholdMetricId; }
set { this._thresholdMetricId = value; }
}
// Check to see if ThresholdMetricId property is set
internal bool IsSetThresholdMetricId()
{
return this._thresholdMetricId != null;
}
/// <summary>
/// Gets and sets the property TreatMissingData.
/// <para>
/// Sets how this alarm is to handle missing data points. If <code>TreatMissingData</code>
/// is omitted, the default behavior of <code>missing</code> is used. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data">Configuring
/// How CloudWatch Alarms Treats Missing Data</a>.
/// </para>
///
/// <para>
/// Valid Values: <code>breaching | notBreaching | ignore | missing</code>
/// </para>
/// <note>
/// <para>
/// Alarms that evaluate metrics in the <code>AWS/DynamoDB</code> namespace always <code>ignore</code>
/// missing data even if you choose a different option for <code>TreatMissingData</code>.
/// When an <code>AWS/DynamoDB</code> metric has missing data, alarms that evaluate that
/// metric remain in their current state.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string TreatMissingData
{
get { return this._treatMissingData; }
set { this._treatMissingData = value; }
}
// Check to see if TreatMissingData property is set
internal bool IsSetTreatMissingData()
{
return this._treatMissingData != null;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// The unit of measure for the statistic. For example, the units for the Amazon EC2 NetworkIn
/// metric are Bytes because NetworkIn tracks the number of bytes that an instance receives
/// on all network interfaces. You can also specify a unit when you create a custom metric.
/// Units help provide conceptual meaning to your data. Metric data points that specify
/// a unit of measure, such as Percent, are aggregated separately.
/// </para>
///
/// <para>
/// If you don't specify <code>Unit</code>, CloudWatch retrieves all unit types that have
/// been published for the metric and attempts to evaluate the alarm. Usually, metrics
/// are published with only one unit, so the alarm works as intended.
/// </para>
///
/// <para>
/// However, if the metric is published with multiple types of units and you don't specify
/// a unit, the alarm's behavior is not defined and it behaves unpredictably.
/// </para>
///
/// <para>
/// We recommend omitting <code>Unit</code> so that you don't inadvertently specify an
/// incorrect unit that is not published for this metric. Doing so causes the alarm to
/// be stuck in the <code>INSUFFICIENT DATA</code> state.
/// </para>
/// </summary>
public StandardUnit Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
}
} | 929 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the PutMetricAlarm operation.
/// </summary>
public partial class PutMetricAlarmResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the PutMetricData operation.
/// Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data
/// points with the specified metric. If the specified metric does not exist, CloudWatch
/// creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes
/// for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.
///
///
/// <para>
/// You can publish either individual data points in the <code>Value</code> field, or
/// arrays of values and the number of times each value occurred during the period by
/// using the <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code>
/// structure. Using the <code>Values</code> and <code>Counts</code> method enables you
/// to publish up to 150 values per metric with one <code>PutMetricData</code> request,
/// and supports retrieving percentile statistics on this data.
/// </para>
///
/// <para>
/// Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests.
/// You can send a payload compressed by gzip. Each request is also limited to no more
/// than 1000 different metrics.
/// </para>
///
/// <para>
/// Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>,
/// CloudWatch rejects values that are either too small or too large. Values must be in
/// the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity,
/// -Infinity) are not supported.
/// </para>
///
/// <para>
/// You can use up to 30 dimensions per metric to further clarify what data the metric
/// collects. Each dimension consists of a Name and Value pair. For more information about
/// specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing
/// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
///
/// <para>
/// You specify the time stamp to be associated with each data point. You can specify
/// time stamps that are as much as two weeks before the current date, and as much as
/// 2 hours after the current day and time.
/// </para>
///
/// <para>
/// Data points with time stamps from 24 hours ago or longer can take at least 48 hours
/// to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a>
/// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>
/// from the time they are submitted. Data points with time stamps between 3 and 24 hours
/// ago can take as much as 2 hours to become available for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a>
/// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>.
/// </para>
///
/// <para>
/// CloudWatch needs raw data points to calculate percentile statistics. If you publish
/// data using a statistic set instead, you can only retrieve percentile statistics for
/// this data if one of the following conditions is true:
/// </para>
/// <ul> <li>
/// <para>
/// The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>,
/// <code>Max</code>, and <code>Sum</code> are all equal.
/// </para>
/// </li> <li>
/// <para>
/// The <code>Min</code> and <code>Max</code> are equal, and <code>Sum</code> is equal
/// to <code>Min</code> multiplied by <code>SampleCount</code>.
/// </para>
/// </li> </ul>
/// </summary>
public partial class PutMetricDataRequest : AmazonCloudWatchRequest
{
private List<MetricDatum> _metricData = new List<MetricDatum>();
private string _awsNamespace;
/// <summary>
/// Gets and sets the property MetricData.
/// <para>
/// The data for the metric. The array can include no more than 1000 metrics per call.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<MetricDatum> MetricData
{
get { return this._metricData; }
set { this._metricData = value; }
}
// Check to see if MetricData property is set
internal bool IsSetMetricData()
{
return this._metricData != null && this._metricData.Count > 0;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace for the metric data. You can use ASCII characters for the namespace,
/// except for control characters which are not supported.
/// </para>
///
/// <para>
/// To avoid conflicts with Amazon Web Services service namespaces, you should not specify
/// a namespace that begins with <code>AWS/</code>
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
}
} | 150 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the PutMetricData operation.
/// </summary>
public partial class PutMetricDataResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the PutMetricStream operation.
/// Creates or updates a metric stream. Metric streams can automatically stream CloudWatch
/// metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party
/// solutions.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html">
/// Using Metric Streams</a>.
/// </para>
///
/// <para>
/// To create a metric stream, you must be signed in to an account that has the <code>iam:PassRole</code>
/// permission and either the <code>CloudWatchFullAccess</code> policy or the <code>cloudwatch:PutMetricStream</code>
/// permission.
/// </para>
///
/// <para>
/// When you create or update a metric stream, you choose one of the following:
/// </para>
/// <ul> <li>
/// <para>
/// Stream metrics from all metric namespaces in the account.
/// </para>
/// </li> <li>
/// <para>
/// Stream metrics from all metric namespaces in the account, except for the namespaces
/// that you list in <code>ExcludeFilters</code>.
/// </para>
/// </li> <li>
/// <para>
/// Stream metrics from only the metric namespaces that you list in <code>IncludeFilters</code>.
/// </para>
/// </li> </ul>
/// <para>
/// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>,
/// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can
/// use the <code>StatisticsConfigurations</code> parameter to have the metric stream
/// send additional statistics in the stream. Streaming additional statistics incurs additional
/// costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon
/// CloudWatch Pricing</a>.
/// </para>
///
/// <para>
/// When you use <code>PutMetricStream</code> to create a new metric stream, the stream
/// is created in the <code>running</code> state. If you use it to update an existing
/// stream, the state of the stream is not changed.
/// </para>
///
/// <para>
/// If you are using CloudWatch cross-account observability and you create a metric stream
/// in a monitoring account, you can choose whether to include metrics from source accounts
/// in the stream. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch
/// cross-account observability</a>.
/// </para>
/// </summary>
public partial class PutMetricStreamRequest : AmazonCloudWatchRequest
{
private List<MetricStreamFilter> _excludeFilters = new List<MetricStreamFilter>();
private string _firehoseArn;
private List<MetricStreamFilter> _includeFilters = new List<MetricStreamFilter>();
private bool? _includeLinkedAccountsMetrics;
private string _name;
private MetricStreamOutputFormat _outputFormat;
private string _roleArn;
private List<MetricStreamStatisticsConfiguration> _statisticsConfigurations = new List<MetricStreamStatisticsConfiguration>();
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property ExcludeFilters.
/// <para>
/// If you specify this parameter, the stream sends metrics from all metric namespaces
/// except for the namespaces that you specify here.
/// </para>
///
/// <para>
/// You cannot include <code>ExcludeFilters</code> and <code>IncludeFilters</code> in
/// the same operation.
/// </para>
/// </summary>
public List<MetricStreamFilter> ExcludeFilters
{
get { return this._excludeFilters; }
set { this._excludeFilters = value; }
}
// Check to see if ExcludeFilters property is set
internal bool IsSetExcludeFilters()
{
return this._excludeFilters != null && this._excludeFilters.Count > 0;
}
/// <summary>
/// Gets and sets the property FirehoseArn.
/// <para>
/// The ARN of the Amazon Kinesis Data Firehose delivery stream to use for this metric
/// stream. This Amazon Kinesis Data Firehose delivery stream must already exist and must
/// be in the same account as the metric stream.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string FirehoseArn
{
get { return this._firehoseArn; }
set { this._firehoseArn = value; }
}
// Check to see if FirehoseArn property is set
internal bool IsSetFirehoseArn()
{
return this._firehoseArn != null;
}
/// <summary>
/// Gets and sets the property IncludeFilters.
/// <para>
/// If you specify this parameter, the stream sends only the metrics from the metric namespaces
/// that you specify here.
/// </para>
///
/// <para>
/// You cannot include <code>IncludeFilters</code> and <code>ExcludeFilters</code> in
/// the same operation.
/// </para>
/// </summary>
public List<MetricStreamFilter> IncludeFilters
{
get { return this._includeFilters; }
set { this._includeFilters = value; }
}
// Check to see if IncludeFilters property is set
internal bool IsSetIncludeFilters()
{
return this._includeFilters != null && this._includeFilters.Count > 0;
}
/// <summary>
/// Gets and sets the property IncludeLinkedAccountsMetrics.
/// <para>
/// If you are creating a metric stream in a monitoring account, specify <code>true</code>
/// to include metrics from source accounts in the metric stream.
/// </para>
/// </summary>
public bool IncludeLinkedAccountsMetrics
{
get { return this._includeLinkedAccountsMetrics.GetValueOrDefault(); }
set { this._includeLinkedAccountsMetrics = value; }
}
// Check to see if IncludeLinkedAccountsMetrics property is set
internal bool IsSetIncludeLinkedAccountsMetrics()
{
return this._includeLinkedAccountsMetrics.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// If you are creating a new metric stream, this is the name for the new stream. The
/// name must be different than the names of other metric streams in this account and
/// Region.
/// </para>
///
/// <para>
/// If you are updating a metric stream, specify the name of that stream here.
/// </para>
///
/// <para>
/// Valid characters are A-Z, a-z, 0-9, "-" and "_".
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
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;
}
/// <summary>
/// Gets and sets the property OutputFormat.
/// <para>
/// The output format for the stream. Valid values are <code>json</code> and <code>opentelemetry0.7</code>.
/// For more information about metric stream output formats, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html">
/// Metric streams output formats</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public MetricStreamOutputFormat OutputFormat
{
get { return this._outputFormat; }
set { this._outputFormat = value; }
}
// Check to see if OutputFormat property is set
internal bool IsSetOutputFormat()
{
return this._outputFormat != null;
}
/// <summary>
/// Gets and sets the property RoleArn.
/// <para>
/// The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Data
/// Firehose resources. This IAM role must already exist and must be in the same account
/// as the metric stream. This IAM role must include the following permissions:
/// </para>
/// <ul> <li>
/// <para>
/// firehose:PutRecord
/// </para>
/// </li> <li>
/// <para>
/// firehose:PutRecordBatch
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
/// <summary>
/// Gets and sets the property StatisticsConfigurations.
/// <para>
/// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>,
/// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can
/// use this parameter to have the metric stream also send additional statistics in the
/// stream. This array can have up to 100 members.
/// </para>
///
/// <para>
/// For each entry in this array, you specify one or more metrics and the list of additional
/// statistics to stream for those metrics. The additional statistics that you can stream
/// depend on the stream's <code>OutputFormat</code>. If the <code>OutputFormat</code>
/// is <code>json</code>, you can stream any additional statistic that is supported by
/// CloudWatch, listed in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html">
/// CloudWatch statistics definitions</a>. If the <code>OutputFormat</code> is <code>opentelemetry0.7</code>,
/// you can stream percentile statistics such as p95, p99.9, and so on.
/// </para>
/// </summary>
public List<MetricStreamStatisticsConfiguration> StatisticsConfigurations
{
get { return this._statisticsConfigurations; }
set { this._statisticsConfigurations = value; }
}
// Check to see if StatisticsConfigurations property is set
internal bool IsSetStatisticsConfigurations()
{
return this._statisticsConfigurations != null && this._statisticsConfigurations.Count > 0;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// A list of key-value pairs to associate with the metric stream. You can associate as
/// many as 50 tags with a metric stream.
/// </para>
///
/// <para>
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values.
/// </para>
///
/// <para>
/// You can use this parameter only when you are creating a new metric stream. If you
/// are using this operation to update an existing metric stream, any tags you specify
/// in this parameter are ignored. To change the tags of an existing metric stream, use
/// <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html">TagResource</a>
/// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
/// </summary>
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 333 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the PutMetricStream operation.
/// </summary>
public partial class PutMetricStreamResponse : AmazonWebServiceResponse
{
private string _arn;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the metric stream.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Specifies one range of days or times to exclude from use for training an anomaly detection
/// model.
/// </summary>
public partial class Range
{
private DateTime? _endTime;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The end time of the range to exclude. The format is <code>yyyy-MM-dd'T'HH:mm:ss</code>.
/// For example, <code>2019-07-01T23:59:59</code>.
/// </para>
/// </summary>
[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;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The start time of the range to exclude. The format is <code>yyyy-MM-dd'T'HH:mm:ss</code>.
/// For example, <code>2019-07-01T23:59:59</code>.
/// </para>
/// </summary>
[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;
}
}
} | 81 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// The named resource does not exist.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonCloudWatchException
{
/// <summary>
/// Constructs a new ResourceNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ResourceNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ResourceNotFoundException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the SetAlarmState operation.
/// Temporarily sets the state of an alarm for testing purposes. When the updated state
/// differs from the previous value, the action configured for the appropriate state is
/// invoked. For example, if your alarm is configured to send an Amazon SNS message when
/// an alarm is triggered, temporarily changing the alarm state to <code>ALARM</code>
/// sends an SNS message.
///
///
/// <para>
/// Metric alarms returns to their actual state quickly, often within seconds. Because
/// the metric alarm state change happens quickly, it is typically only visible in the
/// alarm's <b>History</b> tab in the Amazon CloudWatch console or through <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>.
/// </para>
///
/// <para>
/// If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is
/// not guaranteed to return to its actual state. It returns to its actual state only
/// once any of its children alarms change state. It is also reevaluated if you update
/// its configuration.
/// </para>
///
/// <para>
/// If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies,
/// you must include information in the <code>StateReasonData</code> parameter to enable
/// the policy to take the correct action.
/// </para>
/// </summary>
public partial class SetAlarmStateRequest : AmazonCloudWatchRequest
{
private string _alarmName;
private string _stateReason;
private string _stateReasonData;
private StateValue _stateValue;
/// <summary>
/// Gets and sets the property AlarmName.
/// <para>
/// The name of the alarm.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AlarmName
{
get { return this._alarmName; }
set { this._alarmName = value; }
}
// Check to see if AlarmName property is set
internal bool IsSetAlarmName()
{
return this._alarmName != null;
}
/// <summary>
/// Gets and sets the property StateReason.
/// <para>
/// The reason that this alarm is set to this specific state, in text format.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=1023)]
public string StateReason
{
get { return this._stateReason; }
set { this._stateReason = value; }
}
// Check to see if StateReason property is set
internal bool IsSetStateReason()
{
return this._stateReason != null;
}
/// <summary>
/// Gets and sets the property StateReasonData.
/// <para>
/// The reason that this alarm is set to this specific state, in JSON format.
/// </para>
///
/// <para>
/// For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling
/// or application Auto Scaling alarm actions, the Auto Scaling policy uses the information
/// in this field to take the correct action.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=4000)]
public string StateReasonData
{
get { return this._stateReasonData; }
set { this._stateReasonData = value; }
}
// Check to see if StateReasonData property is set
internal bool IsSetStateReasonData()
{
return this._stateReasonData != null;
}
/// <summary>
/// Gets and sets the property StateValue.
/// <para>
/// The value of the state.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public StateValue StateValue
{
get { return this._stateValue; }
set { this._stateValue = value; }
}
// Check to see if StateValue property is set
internal bool IsSetStateValue()
{
return this._stateValue != null;
}
}
} | 149 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the SetAlarmState operation.
/// </summary>
public partial class SetAlarmStateResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Designates the CloudWatch metric and statistic that provides the time series the anomaly
/// detector uses as input.
/// </summary>
public partial class SingleMetricAnomalyDetector
{
private List<Dimension> _dimensions = new List<Dimension>();
private string _metricName;
private string _awsNamespace;
private string _stat;
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The metric dimensions to create the anomaly detection model for.
/// </para>
/// </summary>
[AWSProperty(Max=30)]
public List<Dimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric to create the anomaly detection model for.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric to create the anomaly detection model for.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
/// <summary>
/// Gets and sets the property Stat.
/// <para>
/// The statistic to use for the metric and anomaly detection model.
/// </para>
/// </summary>
[AWSProperty(Max=50)]
public string Stat
{
get { return this._stat; }
set { this._stat = value; }
}
// Check to see if Stat property is set
internal bool IsSetStat()
{
return this._stat != null;
}
}
} | 119 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the StartMetricStreams operation.
/// Starts the streaming of metrics for one or more of your metric streams.
/// </summary>
public partial class StartMetricStreamsRequest : AmazonCloudWatchRequest
{
private List<string> _names = new List<string>();
/// <summary>
/// Gets and sets the property Names.
/// <para>
/// The array of the names of metric streams to start streaming.
/// </para>
///
/// <para>
/// This is an "all or nothing" operation. If you do not have permission to access all
/// of the metric streams that you list here, then none of the streams that you list in
/// the operation will start streaming.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> 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;
}
}
} | 65 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the StartMetricStreams operation.
/// </summary>
public partial class StartMetricStreamsResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Represents a set of statistics that describes a specific metric.
/// </summary>
public partial class StatisticSet
{
private double? _maximum;
private double? _minimum;
private double? _sampleCount;
private double? _sum;
/// <summary>
/// Gets and sets the property Maximum.
/// <para>
/// The maximum value of the sample set.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public double Maximum
{
get { return this._maximum.GetValueOrDefault(); }
set { this._maximum = value; }
}
// Check to see if Maximum property is set
internal bool IsSetMaximum()
{
return this._maximum.HasValue;
}
/// <summary>
/// Gets and sets the property Minimum.
/// <para>
/// The minimum value of the sample set.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public double Minimum
{
get { return this._minimum.GetValueOrDefault(); }
set { this._minimum = value; }
}
// Check to see if Minimum property is set
internal bool IsSetMinimum()
{
return this._minimum.HasValue;
}
/// <summary>
/// Gets and sets the property SampleCount.
/// <para>
/// The number of samples used for the statistic set.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public double SampleCount
{
get { return this._sampleCount.GetValueOrDefault(); }
set { this._sampleCount = value; }
}
// Check to see if SampleCount property is set
internal bool IsSetSampleCount()
{
return this._sampleCount.HasValue;
}
/// <summary>
/// Gets and sets the property Sum.
/// <para>
/// The sum of values for the sample set.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public double Sum
{
get { return this._sum.GetValueOrDefault(); }
set { this._sum = value; }
}
// Check to see if Sum property is set
internal bool IsSetSum()
{
return this._sum.HasValue;
}
}
} | 118 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the StopMetricStreams operation.
/// Stops the streaming of metrics for one or more of your metric streams.
/// </summary>
public partial class StopMetricStreamsRequest : AmazonCloudWatchRequest
{
private List<string> _names = new List<string>();
/// <summary>
/// Gets and sets the property Names.
/// <para>
/// The array of the names of metric streams to stop streaming.
/// </para>
///
/// <para>
/// This is an "all or nothing" operation. If you do not have permission to access all
/// of the metric streams that you list here, then none of the streams that you list in
/// the operation will stop streaming.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> 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;
}
}
} | 65 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the StopMetricStreams operation.
/// </summary>
public partial class StopMetricStreamsResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// A key-value pair associated with a CloudWatch resource.
/// </summary>
public partial class Tag
{
private string _key;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// A string that you can use to assign a value. The combination of tag keys and values
/// can help you organize and categorize your resources.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value for the specified tag key.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=256)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// Container for the parameters to the TagResource operation.
/// Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently,
/// the only CloudWatch resources that can be tagged are alarms and Contributor Insights
/// rules.
///
///
/// <para>
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values.
/// </para>
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can use the <code>TagResource</code> action with an alarm that already has tags.
/// If you specify a new tag key for the alarm, this tag is appended to the list of tags
/// associated with the alarm. If you specify a tag key that is already associated with
/// the alarm, the new tag value that you specify replaces the previous value for that
/// tag.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a CloudWatch resource.
/// </para>
/// </summary>
public partial class TagResourceRequest : AmazonCloudWatchRequest
{
private string _resourceARN;
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The ARN of the CloudWatch resource that you're adding tags to.
/// </para>
///
/// <para>
/// The ARN format of an alarm is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:alarm:<i>alarm-name</i>
/// </code>
/// </para>
///
/// <para>
/// The ARN format of a Contributor Insights rule is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:insight-rule:<i>insight-rule-name</i>
/// </code>
/// </para>
///
/// <para>
/// For more information about ARN format, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies">
/// Resource Types Defined by Amazon CloudWatch</a> in the <i>Amazon Web Services General
/// Reference</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The list of key-value pairs to associate with the alarm.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 121 |
aws-sdk-net | aws | C# | /*
* 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 monitoring-2010-08-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.CloudWatch.Model
{
/// <summary>
/// This is the response object from the TagResource operation.
/// </summary>
public partial class TagResourceResponse : AmazonWebServiceResponse
{
}
} | 38 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.