/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Metrics for a specified crawler.

See Also:

AWS * API Reference

*/ class CrawlerMetrics { public: AWS_GLUE_API CrawlerMetrics(); AWS_GLUE_API CrawlerMetrics(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API CrawlerMetrics& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the crawler.

*/ inline const Aws::String& GetCrawlerName() const{ return m_crawlerName; } /** *

The name of the crawler.

*/ inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; } /** *

The name of the crawler.

*/ inline void SetCrawlerName(const Aws::String& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = value; } /** *

The name of the crawler.

*/ inline void SetCrawlerName(Aws::String&& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = std::move(value); } /** *

The name of the crawler.

*/ inline void SetCrawlerName(const char* value) { m_crawlerNameHasBeenSet = true; m_crawlerName.assign(value); } /** *

The name of the crawler.

*/ inline CrawlerMetrics& WithCrawlerName(const Aws::String& value) { SetCrawlerName(value); return *this;} /** *

The name of the crawler.

*/ inline CrawlerMetrics& WithCrawlerName(Aws::String&& value) { SetCrawlerName(std::move(value)); return *this;} /** *

The name of the crawler.

*/ inline CrawlerMetrics& WithCrawlerName(const char* value) { SetCrawlerName(value); return *this;} /** *

The estimated time left to complete a running crawl.

*/ inline double GetTimeLeftSeconds() const{ return m_timeLeftSeconds; } /** *

The estimated time left to complete a running crawl.

*/ inline bool TimeLeftSecondsHasBeenSet() const { return m_timeLeftSecondsHasBeenSet; } /** *

The estimated time left to complete a running crawl.

*/ inline void SetTimeLeftSeconds(double value) { m_timeLeftSecondsHasBeenSet = true; m_timeLeftSeconds = value; } /** *

The estimated time left to complete a running crawl.

*/ inline CrawlerMetrics& WithTimeLeftSeconds(double value) { SetTimeLeftSeconds(value); return *this;} /** *

True if the crawler is still estimating how long it will take to complete * this run.

*/ inline bool GetStillEstimating() const{ return m_stillEstimating; } /** *

True if the crawler is still estimating how long it will take to complete * this run.

*/ inline bool StillEstimatingHasBeenSet() const { return m_stillEstimatingHasBeenSet; } /** *

True if the crawler is still estimating how long it will take to complete * this run.

*/ inline void SetStillEstimating(bool value) { m_stillEstimatingHasBeenSet = true; m_stillEstimating = value; } /** *

True if the crawler is still estimating how long it will take to complete * this run.

*/ inline CrawlerMetrics& WithStillEstimating(bool value) { SetStillEstimating(value); return *this;} /** *

The duration of the crawler's most recent run, in seconds.

*/ inline double GetLastRuntimeSeconds() const{ return m_lastRuntimeSeconds; } /** *

The duration of the crawler's most recent run, in seconds.

*/ inline bool LastRuntimeSecondsHasBeenSet() const { return m_lastRuntimeSecondsHasBeenSet; } /** *

The duration of the crawler's most recent run, in seconds.

*/ inline void SetLastRuntimeSeconds(double value) { m_lastRuntimeSecondsHasBeenSet = true; m_lastRuntimeSeconds = value; } /** *

The duration of the crawler's most recent run, in seconds.

*/ inline CrawlerMetrics& WithLastRuntimeSeconds(double value) { SetLastRuntimeSeconds(value); return *this;} /** *

The median duration of this crawler's runs, in seconds.

*/ inline double GetMedianRuntimeSeconds() const{ return m_medianRuntimeSeconds; } /** *

The median duration of this crawler's runs, in seconds.

*/ inline bool MedianRuntimeSecondsHasBeenSet() const { return m_medianRuntimeSecondsHasBeenSet; } /** *

The median duration of this crawler's runs, in seconds.

*/ inline void SetMedianRuntimeSeconds(double value) { m_medianRuntimeSecondsHasBeenSet = true; m_medianRuntimeSeconds = value; } /** *

The median duration of this crawler's runs, in seconds.

*/ inline CrawlerMetrics& WithMedianRuntimeSeconds(double value) { SetMedianRuntimeSeconds(value); return *this;} /** *

The number of tables created by this crawler.

*/ inline int GetTablesCreated() const{ return m_tablesCreated; } /** *

The number of tables created by this crawler.

*/ inline bool TablesCreatedHasBeenSet() const { return m_tablesCreatedHasBeenSet; } /** *

The number of tables created by this crawler.

*/ inline void SetTablesCreated(int value) { m_tablesCreatedHasBeenSet = true; m_tablesCreated = value; } /** *

The number of tables created by this crawler.

*/ inline CrawlerMetrics& WithTablesCreated(int value) { SetTablesCreated(value); return *this;} /** *

The number of tables updated by this crawler.

*/ inline int GetTablesUpdated() const{ return m_tablesUpdated; } /** *

The number of tables updated by this crawler.

*/ inline bool TablesUpdatedHasBeenSet() const { return m_tablesUpdatedHasBeenSet; } /** *

The number of tables updated by this crawler.

*/ inline void SetTablesUpdated(int value) { m_tablesUpdatedHasBeenSet = true; m_tablesUpdated = value; } /** *

The number of tables updated by this crawler.

*/ inline CrawlerMetrics& WithTablesUpdated(int value) { SetTablesUpdated(value); return *this;} /** *

The number of tables deleted by this crawler.

*/ inline int GetTablesDeleted() const{ return m_tablesDeleted; } /** *

The number of tables deleted by this crawler.

*/ inline bool TablesDeletedHasBeenSet() const { return m_tablesDeletedHasBeenSet; } /** *

The number of tables deleted by this crawler.

*/ inline void SetTablesDeleted(int value) { m_tablesDeletedHasBeenSet = true; m_tablesDeleted = value; } /** *

The number of tables deleted by this crawler.

*/ inline CrawlerMetrics& WithTablesDeleted(int value) { SetTablesDeleted(value); return *this;} private: Aws::String m_crawlerName; bool m_crawlerNameHasBeenSet = false; double m_timeLeftSeconds; bool m_timeLeftSecondsHasBeenSet = false; bool m_stillEstimating; bool m_stillEstimatingHasBeenSet = false; double m_lastRuntimeSeconds; bool m_lastRuntimeSecondsHasBeenSet = false; double m_medianRuntimeSeconds; bool m_medianRuntimeSecondsHasBeenSet = false; int m_tablesCreated; bool m_tablesCreatedHasBeenSet = false; int m_tablesUpdated; bool m_tablesUpdatedHasBeenSet = false; int m_tablesDeleted; bool m_tablesDeletedHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws