Ejemplo n.º 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;
     }
 }
Ejemplo n.º 2
0
 internal GetFeedbackPaginator(IAmazonLookoutMetrics client, GetFeedbackRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Ejemplo n.º 3
0
 internal ListMetricSetsPaginator(IAmazonLookoutMetrics client, ListMetricSetsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Ejemplo n.º 4
0
 internal ListAnomalyGroupSummariesPaginator(IAmazonLookoutMetrics client, ListAnomalyGroupSummariesRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Ejemplo n.º 5
0
 internal LookoutMetricsPaginatorFactory(IAmazonLookoutMetrics client)
 {
     this.client = client;
 }
Ejemplo n.º 6
0
 internal DescribeAnomalyDetectionExecutionsPaginator(IAmazonLookoutMetrics client, DescribeAnomalyDetectionExecutionsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Ejemplo n.º 7
0
 internal ListAnomalyDetectorsPaginator(IAmazonLookoutMetrics client, ListAnomalyDetectorsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Ejemplo n.º 8
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }