Skip to content
Open
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
11 changes: 7 additions & 4 deletions src/Http/Wolverine.AdminApi/WolverineAdminApiExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ private static async Task<TableTag> buildStorageTable(IWolverineRuntime runtime,
row.Header("Database Name");
}
row.Header("Incoming");
row.Header("Outgoing");
row.Header("Scheduled");
row.Header("Dead Letter");
row.Header("Handled");
row.Header("Outgoing");
});

if (hasMultiples)
Expand All @@ -80,9 +81,10 @@ private static async Task<TableTag> buildStorageTable(IWolverineRuntime runtime,
{
row.Cell(pair.Key);
row.Cell(pair.Value.Incoming.ToString());
row.Cell(pair.Value.Outgoing.ToString());
row.Cell(pair.Value.Scheduled.ToString());
row.Cell(pair.Value.DeadLetter.ToString());
row.Cell(pair.Value.Handled.ToString());
row.Cell(pair.Value.Outgoing.ToString());
});
}
}
Expand All @@ -91,9 +93,10 @@ private static async Task<TableTag> buildStorageTable(IWolverineRuntime runtime,
table.AddBodyRow(row =>
{
row.Cell(counts.Incoming.ToString());
row.Cell(counts.Outgoing.ToString());
row.Cell(counts.Scheduled.ToString());
row.Cell(counts.DeadLetter.ToString());
row.Cell(counts.Handled.ToString());
row.Cell(counts.Outgoing.ToString());
});
}

Expand Down Expand Up @@ -139,4 +142,4 @@ private static async Task<TableTag> buildNodesTable(IWolverineRuntime runtime, C

return table;
}
}
}
6 changes: 4 additions & 2 deletions src/Wolverine/Persistence/Durability/MessageStoreResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ public async Task<IRenderable> DetermineStatus(CancellationToken token)
var table = new Table();
table.AddColumns("Envelope Category", "Number");
table.AddRow("Incoming", counts.Incoming.ToString());
table.AddRow("Scheduled", counts.Scheduled.ToString());
table.AddRow("Outgoing", counts.Outgoing.ToString());
table.AddRow("Scheduled", counts.Scheduled.ToString());
table.AddRow("Dead Letter", counts.DeadLetter.ToString());
table.AddRow("Handled", counts.Handled.ToString());

return table;
}

public string Type => "Wolverine";
public string Name => "Envelope Storage";
}
}
3 changes: 2 additions & 1 deletion src/Wolverine/Persistence/StorageCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public override async Task<bool> Execute(StorageInput input)
table.AddRow("Outgoing", counts.Outgoing.ToString());
table.AddRow("Scheduled", counts.Scheduled.ToString());
table.AddRow("Dead Letter", counts.DeadLetter.ToString());
table.AddRow("Handled", counts.Handled.ToString());

AnsiConsole.Write(table);

Expand Down Expand Up @@ -90,4 +91,4 @@ public override async Task<bool> Execute(StorageInput input)

return true;
}
}
}
Loading