Esempio n. 1
0
 /// <summary>
 /// CheckRegister is used to register a new check with the local agent
 /// </summary>
 /// <param name="check">A check registration object</param>
 /// <returns>An empty write result</returns>
 public Task <WriteResult> CheckRegister(AgentCheckRegistration check)
 {
     return(_client.Put("/v1/agent/check/register", check).Execute());
 }
Esempio n. 2
0
 /// <summary>
 /// CheckRegister is used to register a new check with the local agent
 /// </summary>
 /// <param name="check">A check registration object</param>
 /// <returns>An empty write result</returns>
 public Task <WriteResult> CheckRegister(AgentCheckRegistration check, CancellationToken ct = default(CancellationToken))
 {
     return(_client.Put("/v1/agent/check/register", check).Execute(ct));
 }
Esempio n. 3
0
 /// <summary>
 /// CheckRegister is used to register a new check with the local agent
 /// </summary>
 /// <param name="check">A check registration object</param>
 /// <returns>An empty write result</returns>
 public WriteResult CheckRegister(AgentCheckRegistration check)
 {
     return(_client.CreateInWrite <AgentCheckRegistration>("/v1/agent/check/register", check)
            .Execute());
 }