C# Class OneAndOne.Client.Endpoints.MonitoringCenter.MonitoringCenter

Inheritance: ResourceBase
Afficher le fichier Open project: 1and1/oneandone-cloudserver-sdk-dotnet

Méthodes publiques

Méthode Description
Get ( int page = null, int perPage = null, string sort = null, string query = null, string fields = null ) : List

Lists usages and alerts of monitoring servers.

MonitoringCenter ( object _apiUrl = null, object _apiKey = null ) : System
Show ( string server_id, PeriodType period, System.DateTime start_date = null, System.DateTime end_date = null ) : ServerMonitoringCenterResponse

Returns the usage of the resources for the specified time range.

Method Details

Get() public méthode

Lists usages and alerts of monitoring servers.
public Get ( int page = null, int perPage = null, string sort = null, string query = null, string fields = null ) : List
page int Allows to use pagination. Sets the number of servers that will be shown in each page.
perPage int Current page to show.
sort string Allows to sort the result by priority:sort=name retrieves a list of elements ordered by their names.sort=-creation_date retrieves a list of elements ordered according to their creation date in descending order of priority.
query string Allows to search one string in the response and return the elements that contain it. In order to specify the string use parameter q: q=My server
fields string Returns only the parameters requested: fields=id,name,description,hardware.ram
Résultat List

MonitoringCenter() public méthode

public MonitoringCenter ( object _apiUrl = null, object _apiKey = null ) : System
_apiUrl object
_apiKey object
Résultat System

Show() public méthode

Returns the usage of the resources for the specified time range.
public Show ( string server_id, PeriodType period, System.DateTime start_date = null, System.DateTime end_date = null ) : ServerMonitoringCenterResponse
server_id string Server's ID
period PeriodType required (one of LAST_HOUR,LAST_24H,LAST_7D,LAST_30D,LAST_365D,CUSTOM ),Time range whose logs will be shown.
start_date System.DateTime (date) The first date in a custom range. Required only if selected period is "CUSTOM".
end_date System.DateTime (date) The second date in a custom range. Required only if selected period is "CUSTOM".
Résultat OneAndOne.POCO.Respones.MonitoringCenter.ServerMonitoringCenterResponse