/*
* 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 glue-2017-03-31.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.Glue.Model
{
///
/// Metrics for a specified crawler.
///
public partial class CrawlerMetrics
{
private string _crawlerName;
private double? _lastRuntimeSeconds;
private double? _medianRuntimeSeconds;
private bool? _stillEstimating;
private int? _tablesCreated;
private int? _tablesDeleted;
private int? _tablesUpdated;
private double? _timeLeftSeconds;
///
/// Gets and sets the property CrawlerName.
///
/// The name of the crawler.
///
///
[AWSProperty(Min=1, Max=255)]
public string CrawlerName
{
get { return this._crawlerName; }
set { this._crawlerName = value; }
}
// Check to see if CrawlerName property is set
internal bool IsSetCrawlerName()
{
return this._crawlerName != null;
}
///
/// Gets and sets the property LastRuntimeSeconds.
///
/// The duration of the crawler's most recent run, in seconds.
///
///
[AWSProperty(Min=0)]
public double LastRuntimeSeconds
{
get { return this._lastRuntimeSeconds.GetValueOrDefault(); }
set { this._lastRuntimeSeconds = value; }
}
// Check to see if LastRuntimeSeconds property is set
internal bool IsSetLastRuntimeSeconds()
{
return this._lastRuntimeSeconds.HasValue;
}
///
/// Gets and sets the property MedianRuntimeSeconds.
///
/// The median duration of this crawler's runs, in seconds.
///
///
[AWSProperty(Min=0)]
public double MedianRuntimeSeconds
{
get { return this._medianRuntimeSeconds.GetValueOrDefault(); }
set { this._medianRuntimeSeconds = value; }
}
// Check to see if MedianRuntimeSeconds property is set
internal bool IsSetMedianRuntimeSeconds()
{
return this._medianRuntimeSeconds.HasValue;
}
///
/// Gets and sets the property StillEstimating.
///
/// True if the crawler is still estimating how long it will take to complete this run.
///
///
public bool StillEstimating
{
get { return this._stillEstimating.GetValueOrDefault(); }
set { this._stillEstimating = value; }
}
// Check to see if StillEstimating property is set
internal bool IsSetStillEstimating()
{
return this._stillEstimating.HasValue;
}
///
/// Gets and sets the property TablesCreated.
///
/// The number of tables created by this crawler.
///
///
[AWSProperty(Min=0)]
public int TablesCreated
{
get { return this._tablesCreated.GetValueOrDefault(); }
set { this._tablesCreated = value; }
}
// Check to see if TablesCreated property is set
internal bool IsSetTablesCreated()
{
return this._tablesCreated.HasValue;
}
///
/// Gets and sets the property TablesDeleted.
///
/// The number of tables deleted by this crawler.
///
///
[AWSProperty(Min=0)]
public int TablesDeleted
{
get { return this._tablesDeleted.GetValueOrDefault(); }
set { this._tablesDeleted = value; }
}
// Check to see if TablesDeleted property is set
internal bool IsSetTablesDeleted()
{
return this._tablesDeleted.HasValue;
}
///
/// Gets and sets the property TablesUpdated.
///
/// The number of tables updated by this crawler.
///
///
[AWSProperty(Min=0)]
public int TablesUpdated
{
get { return this._tablesUpdated.GetValueOrDefault(); }
set { this._tablesUpdated = value; }
}
// Check to see if TablesUpdated property is set
internal bool IsSetTablesUpdated()
{
return this._tablesUpdated.HasValue;
}
///
/// Gets and sets the property TimeLeftSeconds.
///
/// The estimated time left to complete a running crawl.
///
///
[AWSProperty(Min=0)]
public double TimeLeftSeconds
{
get { return this._timeLeftSeconds.GetValueOrDefault(); }
set { this._timeLeftSeconds = value; }
}
// Check to see if TimeLeftSeconds property is set
internal bool IsSetTimeLeftSeconds()
{
return this._timeLeftSeconds.HasValue;
}
}
}