/// <summary>
        ///
        /// </summary>
        /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="hostMetrics"></param>
        /// <returns>Task of ApiResponse</returns>
        public async System.Threading.Tasks.Task <ApiResponse> PostHostMetricAsync(List <HostMetricValue> hostMetrics)
        {
            Koudenpa.Mackerel.Api.Client.ApiResponse <ApiResponse> localVarResponse = await PostHostMetricAsyncWithHttpInfo(hostMetrics);

            return(localVarResponse.Data);
        }
        /// <summary>
        ///
        /// </summary>
        /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="withClosed"> (optional)</param>
        /// <param name="nextId"> (optional)</param>
        /// <param name="limit"> (optional)</param>
        /// <returns>Task of AlertsResponse</returns>
        public async System.Threading.Tasks.Task <AlertsResponse> GetAlertsAsync(bool?withClosed = default(bool?), string nextId = default(string), decimal?limit = default(decimal?))
        {
            Koudenpa.Mackerel.Api.Client.ApiResponse <AlertsResponse> localVarResponse = await GetAlertsAsyncWithHttpInfo(withClosed, nextId, limit);

            return(localVarResponse.Data);
        }
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="hostMetrics"></param>
 /// <returns>ApiResponse</returns>
 public ApiResponse PostHostMetric(List <HostMetricValue> hostMetrics)
 {
     Koudenpa.Mackerel.Api.Client.ApiResponse <ApiResponse> localVarResponse = PostHostMetricWithHttpInfo(hostMetrics);
     return(localVarResponse.Data);
 }
Пример #4
0
        /// <summary>
        ///
        /// </summary>
        /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="hostId"></param>
        /// <param name="hostStatus"></param>
        /// <returns>Task of ApiResponse</returns>
        public async System.Threading.Tasks.Task <ApiResponse> PostHostStatusAsync(string hostId, HostStatusRequest hostStatus)
        {
            Koudenpa.Mackerel.Api.Client.ApiResponse <ApiResponse> localVarResponse = await PostHostStatusAsyncWithHttpInfo(hostId, hostStatus);

            return(localVarResponse.Data);
        }
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="withClosed"> (optional)</param>
 /// <param name="nextId"> (optional)</param>
 /// <param name="limit"> (optional)</param>
 /// <returns>AlertsResponse</returns>
 public AlertsResponse GetAlerts(bool?withClosed = default(bool?), string nextId = default(string), decimal?limit = default(decimal?))
 {
     Koudenpa.Mackerel.Api.Client.ApiResponse <AlertsResponse> localVarResponse = GetAlertsWithHttpInfo(withClosed, nextId, limit);
     return(localVarResponse.Data);
 }
Пример #6
0
        /// <summary>
        ///
        /// </summary>
        /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="service">optional サービス名。 (optional)</param>
        /// <param name="role">サービス内のロール名。複数指定可能(結果は各ロールに所属するホスト群の和集合となります)。serviceが指定されていない場合は無効です。 (optional)</param>
        /// <param name="name">optional ホスト名。 (optional)</param>
        /// <param name="status">optional ホストのステータスを絞り込む。複数指定可能。デフォルトは working と standbyです。 (optional)</param>
        /// <param name="customIdentifier">optional ホスト情報の登録やホスト情報の更新で登録したユーザー独自の識別子。 (optional)</param>
        /// <returns>Task of HostsResponse</returns>
        public async System.Threading.Tasks.Task <HostsResponse> GetHostsAsync(string service = default(string), string role = default(string), string name = default(string), string status = default(string), string customIdentifier = default(string))
        {
            Koudenpa.Mackerel.Api.Client.ApiResponse <HostsResponse> localVarResponse = await GetHostsAsyncWithHttpInfo(service, role, name, status, customIdentifier);

            return(localVarResponse.Data);
        }
Пример #7
0
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="hostId"></param>
 /// <param name="hostStatus"></param>
 /// <returns>ApiResponse</returns>
 public ApiResponse PostHostStatus(string hostId, HostStatusRequest hostStatus)
 {
     Koudenpa.Mackerel.Api.Client.ApiResponse <ApiResponse> localVarResponse = PostHostStatusWithHttpInfo(hostId, hostStatus);
     return(localVarResponse.Data);
 }
Пример #8
0
        /// <summary>
        ///
        /// </summary>
        /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="hostId"></param>
        /// <returns>Task of HostResponse</returns>
        public async System.Threading.Tasks.Task <HostResponse> GetHostAsync(string hostId)
        {
            Koudenpa.Mackerel.Api.Client.ApiResponse <HostResponse> localVarResponse = await GetHostAsyncWithHttpInfo(hostId);

            return(localVarResponse.Data);
        }
Пример #9
0
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="service">optional サービス名。 (optional)</param>
 /// <param name="role">サービス内のロール名。複数指定可能(結果は各ロールに所属するホスト群の和集合となります)。serviceが指定されていない場合は無効です。 (optional)</param>
 /// <param name="name">optional ホスト名。 (optional)</param>
 /// <param name="status">optional ホストのステータスを絞り込む。複数指定可能。デフォルトは working と standbyです。 (optional)</param>
 /// <param name="customIdentifier">optional ホスト情報の登録やホスト情報の更新で登録したユーザー独自の識別子。 (optional)</param>
 /// <returns>HostsResponse</returns>
 public HostsResponse GetHosts(string service = default(string), string role = default(string), string name = default(string), string status = default(string), string customIdentifier = default(string))
 {
     Koudenpa.Mackerel.Api.Client.ApiResponse <HostsResponse> localVarResponse = GetHostsWithHttpInfo(service, role, name, status, customIdentifier);
     return(localVarResponse.Data);
 }
Пример #10
0
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="hostId"></param>
 /// <returns>HostResponse</returns>
 public HostResponse GetHost(string hostId)
 {
     Koudenpa.Mackerel.Api.Client.ApiResponse <HostResponse> localVarResponse = GetHostWithHttpInfo(hostId);
     return(localVarResponse.Data);
 }
Пример #11
0
        /// <summary>
        ///
        /// </summary>
        /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="graphAnnotation"></param>
        /// <returns>Task of GraphAnnotation</returns>
        public async System.Threading.Tasks.Task <GraphAnnotation> PostGraphAnnotationAsync(GraphAnnotationBody graphAnnotation)
        {
            Koudenpa.Mackerel.Api.Client.ApiResponse <GraphAnnotation> localVarResponse = await PostGraphAnnotationAsyncWithHttpInfo(graphAnnotation);

            return(localVarResponse.Data);
        }
Пример #12
0
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="graphAnnotation"></param>
 /// <returns>GraphAnnotation</returns>
 public GraphAnnotation PostGraphAnnotation(GraphAnnotationBody graphAnnotation)
 {
     Koudenpa.Mackerel.Api.Client.ApiResponse <GraphAnnotation> localVarResponse = PostGraphAnnotationWithHttpInfo(graphAnnotation);
     return(localVarResponse.Data);
 }
        /// <summary>
        ///
        /// </summary>
        /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="serviceName"></param>
        /// <param name="serviceMetrics"></param>
        /// <returns>Task of ApiResponse</returns>
        public async System.Threading.Tasks.Task <ApiResponse> PostServiceMetricAsync(string serviceName, List <ServiceMetricValue> serviceMetrics)
        {
            Koudenpa.Mackerel.Api.Client.ApiResponse <ApiResponse> localVarResponse = await PostServiceMetricAsyncWithHttpInfo(serviceName, serviceMetrics);

            return(localVarResponse.Data);
        }
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="Koudenpa.Mackerel.Api.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="serviceName"></param>
 /// <param name="serviceMetrics"></param>
 /// <returns>ApiResponse</returns>
 public ApiResponse PostServiceMetric(string serviceName, List <ServiceMetricValue> serviceMetrics)
 {
     Koudenpa.Mackerel.Api.Client.ApiResponse <ApiResponse> localVarResponse = PostServiceMetricWithHttpInfo(serviceName, serviceMetrics);
     return(localVarResponse.Data);
 }