AWS SQS队列消息计数

时间:2018-07-11 13:07:51

标签: amazon-web-services amazon-sqs

如果我可以提取给定时间范围(例如一周)内发送到SQS队列的消息数量,AWS是否公开API /方法?我正在尝试构建一个工具来监视内部的云基础设施java。这是显示图形并显示一周内推送到SQS的消息数的要求之一。我也知道我们可以在AWS控制台中进行检查。

1 个答案:

答案 0 :(得分:0)

您可以从Amazon CloudWatch检索队列指标。例如:

  • <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="ABCAPP.Views.MasterDetailPage1" xmlns:pages="clr-namespace:ABCAPP.Views"> <MasterDetailPage.Master> <pages:MasterDetailPage1Master x:Name="MasterPage" /> </MasterDetailPage.Master> <MasterDetailPage.Detail> <NavigationPage> <x:Arguments> <pages:MasterDetailPage1Detail> <StackLayout> <StackLayout Orientation="Horizontal" VerticalOptions="Start"> <!--top controls--> </StackLayout> <StackLayout VerticalOptions="CenterAndExpand"> <!--middle controls--> </StackLayout> <StackLayout Orientation="Horizontal" VerticalOptions="End"> <Button Text="A" FontAttributes="Bold" BackgroundColor="MediumSlateBlue" BorderRadius="50" TextColor="White"></Button> <Button Text="B" FontAttributes="Bold" BackgroundColor="MediumSlateBlue" TextColor="White"></Button> <!--bottom controls--> </StackLayout> </StackLayout> </pages:MasterDetailPage1Detail> </x:Arguments> </NavigationPage> </MasterDetailPage.Detail> </MasterDetailPage>
  • <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="ABCAPP.Views.Confirmed"> <ContentPage.Content> <ScrollView> <StackLayout Spacing="20" Padding="15" BackgroundColor="Orange"> <Label Text="Thank you!" FontSize="50" FontAttributes="Bold" TextColor="White" HorizontalOptions="Center" /> <Label Text=" confirmed." FontSize="30" FontAttributes="Bold" TextColor="White" HorizontalOptions="Center" /> <Label x:Name="lblMsg" TextColor="Red" IsVisible="False" ></Label> <Button Text="ADD " Clicked="NewAttend_Clicked" FontAttributes="Bold" BackgroundColor="MediumSlateBlue" BorderRadius="5" TextColor="White"></Button> <Button Text="RETURN " Clicked="List_Clicked" FontAttributes="Bold" BackgroundColor="MediumSlateBlue" BorderRadius="5" TextColor="White"></Button> <Image Source="drawable/icon" ></Image> </StackLayout> </ScrollView> </ContentPage.Content> </ContentPage>

请参阅:Amazon SQS Metrics and Dimensions - Amazon CloudWatch