MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / for_command

Method for_command

src/compute-client/src/metrics.rs:546–561  ·  view source on GitHub ↗

TODO(database-issues#7533): Add documentation.

(&self, command: &ComputeCommand)

Source from the content-addressed store, hash-verified

544
545 /// TODO(database-issues#7533): Add documentation.
546 pub fn for_command(&self, command: &ComputeCommand) -> &M {
547 use ComputeCommand::*;
548
549 match command {
550 Hello { .. } => &self.hello,
551 CreateInstance(_) => &self.create_instance,
552 InitializationComplete => &self.initialization_complete,
553 UpdateConfiguration(_) => &self.update_configuration,
554 CreateDataflow(_) => &self.create_dataflow,
555 Schedule(_) => &self.schedule,
556 AllowCompaction { .. } => &self.allow_compaction,
557 Peek(_) => &self.peek,
558 CancelPeek { .. } => &self.cancel_peek,
559 AllowWrites { .. } => &self.allow_writes,
560 }
561 }
562}
563
564/// Metrics keyed by `ComputeResponse` type.

Callers 4

message_sentMethod · 0.45
pushMethod · 0.45
discard_peeksMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected