C# Класс NCloudWatch.CloudWatchService

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Dispose void
LoadPerformanceCounter void
RegisterMetricForProcessing void
ReportMetric void

Открытые методы

Метод Описание
AddMetric ( Metric metric ) : void

Adds the specified metric.

CloudWatchService ( ) : System

Initializes a new instance of the CloudWatchService class.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetMetrics ( ) : Metric[]

Gets all metrics.

RemoveMetric ( string metricName ) : void

Removes the metric with the specified metricName.

SetAwsCredentials ( string accessKeyId, string secretAccessKey ) : void

Sets the Amazon Web Services credentials.

Start ( ) : void

Starts collecting and uploading metrics.

Stop ( ) : void

Stops collecting and uploading metrics.

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

LoadPerformanceCounter ( PerformanceCounterDescription performanceCounter ) : void
RegisterMetricForProcessing ( Metric metric ) : void
ReportMetric ( object state, bool timeout ) : void

Reports the metric that is defined by state to the Amazon CloudWatch service.

Описание методов

AddMetric() публичный Метод

Adds the specified metric.
is null. A with the same name already exists.
public AddMetric ( Metric metric ) : void
metric Metric The metric.
Результат void

CloudWatchService() публичный Метод

Initializes a new instance of the CloudWatchService class.
public CloudWatchService ( ) : System
Результат System

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

GetMetrics() публичный Метод

Gets all metrics.
public GetMetrics ( ) : Metric[]
Результат Metric[]

RemoveMetric() публичный Метод

Removes the metric with the specified metricName.
public RemoveMetric ( string metricName ) : void
metricName string Name of the metric.
Результат void

SetAwsCredentials() публичный Метод

Sets the Amazon Web Services credentials.
public SetAwsCredentials ( string accessKeyId, string secretAccessKey ) : void
accessKeyId string The access key id.
secretAccessKey string The secret access key.
Результат void

Start() публичный Метод

Starts collecting and uploading metrics.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops collecting and uploading metrics.
public Stop ( ) : void
Результат void