C# Class OneAndOne.Client.Endpoints.MonitoringPolicies.MonitoringPolicies

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

Méthodes publiques

Méthode Description
Create ( CreateMonitoringPolictRequest monitoringPolicy ) : MonitoringPoliciesResponse

Creates a new monitoring policy.

Delete ( string monitoring_policy_id ) : MonitoringPoliciesResponse

Removes a monitoring policy.

Get ( int page = null, int perPage = null, string sort = null, string query = null, string fields = null ) : List

Returns a list of your monitoring policies.

MonitoringPolicies ( object _apiUrl = null, object _apiKey = null ) : System
Show ( string monitoring_policy_id ) : MonitoringPoliciesResponse

Returns information about a monitoring policy.

Update ( UpdateMonitoringPolicyRequest monitoringPolicy, string monitoring_policy_id ) : MonitoringPoliciesResponse

Modifies a monitoring policy.

Method Details

Create() public méthode

Creates a new monitoring policy.
public Create ( CreateMonitoringPolictRequest monitoringPolicy ) : MonitoringPoliciesResponse
monitoringPolicy OneAndOne.POCO.Requests.MonitoringPolicies.CreateMonitoringPolictRequest
Résultat OneAndOne.POCO.Respones.MonitoringPolicies.MonitoringPoliciesResponse

Delete() public méthode

Removes a monitoring policy.
public Delete ( string monitoring_policy_id ) : MonitoringPoliciesResponse
monitoring_policy_id string Unique monitoring policy's identifier.
Résultat OneAndOne.POCO.Respones.MonitoringPolicies.MonitoringPoliciesResponse

Get() public méthode

Returns a list of your monitoring policies.
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

MonitoringPolicies() public méthode

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

Show() public méthode

Returns information about a monitoring policy.
public Show ( string monitoring_policy_id ) : MonitoringPoliciesResponse
monitoring_policy_id string Unique monitoring policy's identifier.
Résultat OneAndOne.POCO.Respones.MonitoringPolicies.MonitoringPoliciesResponse

Update() public méthode

Modifies a monitoring policy.
public Update ( UpdateMonitoringPolicyRequest monitoringPolicy, string monitoring_policy_id ) : MonitoringPoliciesResponse
monitoringPolicy OneAndOne.POCO.Requests.MonitoringPolicies.UpdateMonitoringPolicyRequest
monitoring_policy_id string Unique monitoring policy's identifier.
Résultat OneAndOne.POCO.Respones.MonitoringPolicies.MonitoringPoliciesResponse