AACFlow

CloudWatch

Query and monitor AWS CloudWatch logs, metrics, and alarms

Usage Instructions

Integrate AWS CloudWatch into workflows. Run Log Insights queries, list log groups, retrieve log events, list and get metrics, and monitor alarms. Requires AWS access key and secret access key.

Tools

cloudwatch_query_logs

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
logGroupNamesarrayYesNo description
queryStringstringYesNo description
startTimenumberYesNo description
endTimenumberYesNo description
limitnumberNoNo description

Output

ParameterTypeDescription
resultsarrayresults output from the tool
statisticsobjectstatistics output from the tool
bytesScannednumberbytesScanned output from the tool
recordsMatchednumberrecordsMatched output from the tool
recordsScannednumberrecordsScanned output from the tool
statusstringstatus output from the tool

cloudwatch_describe_log_groups

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
prefixstringNoNo description
limitnumberNoNo description

Output

ParameterTypeDescription
logGroupsarraylogGroups output from the tool
logGroupNamestringlogGroupName output from the tool
arnstringarn output from the tool
storedBytesnumberstoredBytes output from the tool
retentionInDaysnumberretentionInDays output from the tool
creationTimenumbercreationTime output from the tool

cloudwatch_get_log_events

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
logGroupNamestringYesNo description
logStreamNamestringYesNo description
startTimenumberNoNo description
endTimenumberNoNo description
limitnumberNoNo description

Output

ParameterTypeDescription
eventsarrayevents output from the tool
timestampnumbertimestamp output from the tool
messagestringmessage output from the tool
ingestionTimenumberingestionTime output from the tool

cloudwatch_describe_log_streams

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
logGroupNamestringYesNo description
prefixstringNoNo description
limitnumberNoNo description

Output

ParameterTypeDescription
logStreamsarraylogStreams output from the tool
logStreamNamestringlogStreamName output from the tool
lastEventTimestampnumberlastEventTimestamp output from the tool
firstEventTimestampnumberfirstEventTimestamp output from the tool
creationTimenumbercreationTime output from the tool
storedBytesnumberstoredBytes output from the tool

cloudwatch_list_metrics

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
namespacestringNoNo description
metricNamestringNoNo description
recentlyActivebooleanNoNo description
limitnumberNoNo description

Output

ParameterTypeDescription
metricsarraymetrics output from the tool
namespacestringnamespace output from the tool
metricNamestringmetricName output from the tool
dimensionsarraydimensions output from the tool

cloudwatch_get_metric_statistics

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
namespacestringYesNo description
metricNamestringYesNo description
startTimenumberYesNo description
endTimenumberYesNo description
periodnumberYesNo description
statisticsarrayYesNo description
dimensionsstringNoNo description

Output

ParameterTypeDescription
labelstringlabel output from the tool
datapointsarraydatapoints output from the tool
timestampnumbertimestamp output from the tool
averagenumberaverage output from the tool
sumnumbersum output from the tool
minimumnumberminimum output from the tool
maximumnumbermaximum output from the tool
sampleCountnumbersampleCount output from the tool
unitstringunit output from the tool

cloudwatch_put_metric_data

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
namespacestringYesNo description
metricNamestringYesNo description
valuenumberYesNo description
unitstringNoNo description
dimensionsstringNoNo description

Output

ParameterTypeDescription
successbooleansuccess output from the tool
namespacestringnamespace output from the tool
metricNamestringmetricName output from the tool
valuenumbervalue output from the tool
unitstringunit output from the tool
timestampstringtimestamp output from the tool

cloudwatch_describe_alarms

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
alarmNamePrefixstringNoNo description
stateValuestringNoNo description
alarmTypestringNoNo description
limitnumberNoNo description

Output

ParameterTypeDescription
alarmsarrayalarms output from the tool
alarmNamestringalarmName output from the tool
alarmArnstringalarmArn output from the tool
stateValuestringstateValue output from the tool
stateReasonstringstateReason output from the tool
metricNamestringmetricName output from the tool
namespacestringnamespace output from the tool
thresholdnumberthreshold output from the tool
stateUpdatedTimestampnumberstateUpdatedTimestamp output from the tool

cloudwatch_mute_alarm

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
alarmNamesarrayYesNo description

Output

ParameterTypeDescription
successbooleansuccess output from the tool
alarmNamesarrayalarmNames output from the tool

cloudwatch_unmute_alarm

Input

ParameterTypeRequiredDescription
awsRegionstringYesNo description
awsAccessKeyIdstringYesNo description
awsSecretAccessKeystringYesNo description
alarmNamesarrayYesNo description

Output

ParameterTypeDescription
successbooleansuccess output from the tool
alarmNamesarrayalarmNames output from the tool

このページについて

今日から構築を始めよう
10万人以上のビルダーに信頼されています。
AIエージェントを構築し、エージェント型ワークフォースを運用するSaaSプラットフォーム。
はじめる