Skip to content
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
7 changes: 7 additions & 0 deletions dev-tools/omdb/src/bin/omdb/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,11 @@ use std::sync::Arc;
use strum::IntoEnumIterator;
use tabled::Tabled;
use uuid::Uuid;
use webhook::WebhookArgs;
use webhook::cmd_db_webhook;

mod saga;
mod webhook;

const NO_ACTIVE_PROPOLIS_MSG: &str = "<no active Propolis>";
const NOT_ON_SLED_MSG: &str = "<not on any sled>";
Expand Down Expand Up @@ -383,6 +386,8 @@ enum DbCommands {
Vmms(VmmListArgs),
/// Print information about the oximeter collector.
Oximeter(OximeterArgs),
/// Print information about webhooks
Webhook(WebhookArgs),
/// Commands for querying and interacting with pools
Zpool(ZpoolArgs),
}
Expand Down Expand Up @@ -1460,6 +1465,8 @@ impl DbArgs {
DbCommands::Oximeter(OximeterArgs {
command: OximeterCommands::ListProducers
}) => cmd_db_oximeter_list_producers(&datastore, fetch_opts).await,

DbCommands::Webhook(args) => cmd_db_webhook(&opctx, &datastore, &fetch_opts, &args).await,
DbCommands::Zpool(ZpoolArgs {
command: ZpoolCommands::List(args)
}) => cmd_db_zpool_list(&opctx, &datastore, &args).await,
Expand Down
Loading
Loading