Beispiel #1
0
 private Amazon.LookoutMetrics.Model.ListAlertsResponse CallAWSServiceOperation(IAmazonLookoutMetrics client, Amazon.LookoutMetrics.Model.ListAlertsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Lookout for Metrics", "ListAlerts");
     try
     {
         #if DESKTOP
         return(client.ListAlerts(request));
         #elif CORECLR
         return(client.ListAlertsAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
Beispiel #2
0
 internal GetFeedbackPaginator(IAmazonLookoutMetrics client, GetFeedbackRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #3
0
 internal ListMetricSetsPaginator(IAmazonLookoutMetrics client, ListMetricSetsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #4
0
 internal ListAnomalyGroupSummariesPaginator(IAmazonLookoutMetrics client, ListAnomalyGroupSummariesRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #5
0
 internal LookoutMetricsPaginatorFactory(IAmazonLookoutMetrics client)
 {
     this.client = client;
 }
Beispiel #6
0
 internal DescribeAnomalyDetectionExecutionsPaginator(IAmazonLookoutMetrics client, DescribeAnomalyDetectionExecutionsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #7
0
 internal ListAnomalyDetectorsPaginator(IAmazonLookoutMetrics client, ListAnomalyDetectorsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #8
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }