Documentation ¶
Index ¶
- func AverageGasPrice(price float64)
- func EthToMaticPrice(price float64)
- func ProcessingTime(lastProcessTime time.Duration)
- func Register()
- func SequenceRewardInMatic(reward float64)
- func SequencesOvesizedDataError()
- func SequencesSentToL1(numSequences float64)
- func TxProcessed(status TxProcessedLabel, count float64)
- type TxProcessedLabel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AverageGasPrice ¶
func AverageGasPrice(price float64)
AverageGasPrice sets the gauge to the given average gas price.
func EthToMaticPrice ¶
func EthToMaticPrice(price float64)
EthToMaticPrice sets the gauge for the Ethereum to Matic price.
func ProcessingTime ¶
ProcessingTime observes the last iteration processing time on the histogram.
func SequenceRewardInMatic ¶
func SequenceRewardInMatic(reward float64)
SequenceRewardInMatic sets the gauge for the reward in Matic of a sequence.
func SequencesOvesizedDataError ¶
func SequencesOvesizedDataError()
SequencesOvesizedDataError increases the counter for sequences that encounter a OversizedData error.
func SequencesSentToL1 ¶
func SequencesSentToL1(numSequences float64)
SequencesSentToL1 increases the counter by the provided number of sequences sent to L1.
func TxProcessed ¶
func TxProcessed(status TxProcessedLabel, count float64)
TxProcessed increases the counter vector by the provided transactions count and for the given label.
Types ¶
type TxProcessedLabel ¶
type TxProcessedLabel string
TxProcessedLabel represents the possible values for the `sequencer_transaction_processed` metric `type` label.
const ( // TxProcessedLabelSuccessful represents a successful transaction TxProcessedLabelSuccessful TxProcessedLabel = "successful" // TxProcessedLabelInvalid represents an invalid transaction TxProcessedLabelInvalid TxProcessedLabel = "invalid" // TxProcessedLabelFailed represents a failed transaction TxProcessedLabelFailed TxProcessedLabel = "failed" )