Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ jobs:
"repo": "${{ github.repository }}",
"ref": "${{ github.ref }}",
"lang": "rust",
"test_cmd": "cargo test --all-features -- --skip access_token"
"test_cmd": "cargo test --all-features -- --skip access_token --skip metrics"
}
]
4 changes: 2 additions & 2 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,7 @@ impl From<IssueAccessTokenInput> for api::access::AccessTokenInfo {
}
}

#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
/// Interval to accumulate over for timeseries metric sets.
pub enum TimeseriesInterval {
/// Minute.
Expand Down Expand Up @@ -2301,7 +2301,7 @@ impl From<GetStreamMetricsInput> for (BasinName, StreamName, api::metrics::Strea
}
}

#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
/// Unit in which metric values are measured.
pub enum MetricUnit {
/// Size in bytes.
Expand Down
16 changes: 16 additions & 0 deletions tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ impl Deref for S2Basin {
}
}

impl S2Basin {
pub fn basin_name(&self) -> &BasinName {
&self.basin_name
}
}

impl AsyncTestContext for S2Basin {
async fn setup() -> Self {
let config = default_s2_config().expect("valid S2 config");
Expand Down Expand Up @@ -114,6 +120,16 @@ impl Deref for S2Stream {
}
}

impl S2Stream {
pub fn basin_name(&self) -> &BasinName {
self.basin.basin_name()
}

pub fn stream_name(&self) -> &StreamName {
&self.stream_name
}
}

impl AsyncTestContext for S2Stream {
async fn setup() -> Self {
let basin = SharedS2Basin::setup().await;
Expand Down
Loading
Loading