Skip to content

Commit

Permalink
rename the method of listing AWS integration metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Nov 23, 2023
1 parent 12d3c46 commit f44a0d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/aws_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,10 @@ impl Client {
.await
}

/// Lists excludable metrics.
/// Lists includable/excludable metrics for AWS integration.
///
/// See <https://mackerel.io/api-docs/entry/aws-integration#excludable-metrics>.
pub async fn list_aws_integration_excludable_metrics(
pub async fn list_aws_integration_metrics(
&self,
) -> Result<HashMap<AWSServiceName, Vec<String>>> {
self.request(
Expand Down Expand Up @@ -546,7 +546,7 @@ mod client_tests {
}

#[async_std::test]
async fn list_aws_integration_excludable_metrics() {
async fn list_aws_integration_metrics() {
let server = test_server! {
method = GET,
path = "/api/v0/aws-integrations-excludable-metrics",
Expand Down Expand Up @@ -583,7 +583,7 @@ mod client_tests {
};
assert_eq!(
test_client!(server)
.list_aws_integration_excludable_metrics()
.list_aws_integration_metrics()
.await
.map(|_| ()),
Ok(())
Expand Down

0 comments on commit f44a0d6

Please sign in to comment.