Documentation ¶
Index ¶
- func GetMetrics() metrics.Metrics
- type NoOptMetrics
- func (nm NoOptMetrics) AddOperationTime(value time.Duration)
- func (nm NoOptMetrics) AddOperationToBatchTime(since time.Duration)
- func (nm NoOptMetrics) AddProofParseCredential(value time.Duration)
- func (nm NoOptMetrics) AddProofSign(value time.Duration)
- func (nm NoOptMetrics) AddUnpublishedOperationTime(since time.Duration)
- func (nm NoOptMetrics) BatchCutTime(value time.Duration)
- func (nm NoOptMetrics) BatchRollbackTime(value time.Duration)
- func (nm NoOptMetrics) BatchSize(value float64)
- func (nm NoOptMetrics) CASIncrementCacheHitCount()
- func (nm NoOptMetrics) CASReadTime(casType string, value time.Duration)
- func (nm NoOptMetrics) CASResolveTime(value time.Duration)
- func (nm NoOptMetrics) CASWriteSize(dataType string, size int)
- func (nm NoOptMetrics) CASWriteTime(value time.Duration)
- func (nm NoOptMetrics) CalculateUnpublishedOperationKey(duration time.Duration)
- func (nm NoOptMetrics) DBBatchTime(dbType string, duration time.Duration)
- func (nm NoOptMetrics) DBDeleteTime(dbType string, duration time.Duration)
- func (nm NoOptMetrics) DBGetBulkTime(dbType string, duration time.Duration)
- func (nm NoOptMetrics) DBGetTagsTime(dbType string, duration time.Duration)
- func (nm NoOptMetrics) DBGetTime(dbType string, duration time.Duration)
- func (nm NoOptMetrics) DBPutTime(dbType string, duration time.Duration)
- func (nm NoOptMetrics) DBQueryTime(dbType string, duration time.Duration)
- func (nm NoOptMetrics) DecorateOperationTime(since time.Duration)
- func (nm NoOptMetrics) DecorateTime(duration time.Duration)
- func (nm NoOptMetrics) DeleteDocumentFromCreateDocumentStoreTime(duration time.Duration)
- func (nm NoOptMetrics) DocumentCreateUpdateTime(duration time.Duration)
- func (nm NoOptMetrics) DocumentResolveTime(duration time.Duration)
- func (nm NoOptMetrics) ExportPublicKeyCount()
- func (nm NoOptMetrics) ExportPublicKeyTime(value time.Duration)
- func (nm NoOptMetrics) GetAOEndpointAndResolveDocumentFromAOTime(duration time.Duration)
- func (nm NoOptMetrics) GetAnchorOriginEndpointTime(duration time.Duration)
- func (nm NoOptMetrics) GetCreateOperationResultTime(since time.Duration)
- func (nm NoOptMetrics) GetProtocolVersionTime(since time.Duration)
- func (nm NoOptMetrics) GetPublishedOperations(duration time.Duration)
- func (nm NoOptMetrics) GetUnpublishedOperations(duration time.Duration)
- func (nm NoOptMetrics) HTTPCreateUpdateTime(duration time.Duration)
- func (nm NoOptMetrics) HTTPResolveTime(duration time.Duration)
- func (nm NoOptMetrics) InboxHandlerTime(activityType string, value time.Duration)
- func (nm NoOptMetrics) OutboxIncrementActivityCount(activityType string)
- func (nm NoOptMetrics) OutboxPostTime(value time.Duration)
- func (nm NoOptMetrics) OutboxResolveInboxesTime(value time.Duration)
- func (nm NoOptMetrics) ParseOperationTime(since time.Duration)
- func (nm NoOptMetrics) ProcessAnchorTime(value time.Duration)
- func (nm NoOptMetrics) ProcessDIDTime(value time.Duration)
- func (nm NoOptMetrics) ProcessOperation(duration time.Duration)
- func (nm NoOptMetrics) ProcessWitnessedAnchorCredentialTime(value time.Duration)
- func (nm NoOptMetrics) ProcessorResolveTime(duration time.Duration)
- func (nm NoOptMetrics) PutPublishedOperations(duration time.Duration)
- func (nm NoOptMetrics) PutUnpublishedOperation(duration time.Duration)
- func (nm NoOptMetrics) RequestDiscoveryTime(duration time.Duration)
- func (nm NoOptMetrics) ResolveDocumentFromAnchorOriginTime(duration time.Duration)
- func (nm NoOptMetrics) ResolveDocumentFromCreateDocumentStoreTime(duration time.Duration)
- func (nm NoOptMetrics) ResolveDocumentLocallyTime(duration time.Duration)
- func (nm NoOptMetrics) SignCount()
- func (nm NoOptMetrics) SignTime(value time.Duration)
- func (nm NoOptMetrics) SignerAddLinkedDataProof(value time.Duration)
- func (nm NoOptMetrics) SignerGetKey(value time.Duration)
- func (nm NoOptMetrics) SignerSign(value time.Duration)
- func (nm NoOptMetrics) ValidateOperationTime(since time.Duration)
- func (nm NoOptMetrics) VerifyCIDTime(duration time.Duration)
- func (nm NoOptMetrics) VerifyCount()
- func (nm NoOptMetrics) VerifyTime(value time.Duration)
- func (nm NoOptMetrics) WebDocumentResolveTime(duration time.Duration)
- func (nm NoOptMetrics) WitnessAddProof(value time.Duration)
- func (nm NoOptMetrics) WitnessAddProofVctNil(value time.Duration)
- func (nm NoOptMetrics) WitnessAddVC(value time.Duration)
- func (nm NoOptMetrics) WitnessAnchorCredentialTime(duration time.Duration)
- func (nm NoOptMetrics) WitnessVerifyVCTSignature(value time.Duration)
- func (nm NoOptMetrics) WitnessWebFinger(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorBuildCredentialTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorGetPreviousAnchorsGetBulkTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorGetPreviousAnchorsTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorGetWitnessesTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorPostOfferActivityTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorResolveHostMetaLinkTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorSignCredentialTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorSignLocalWatchTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorSignLocalWitnessLogTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorSignWithLocalWitnessTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorSignWithServerKeyTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorStoreTime(value time.Duration)
- func (nm NoOptMetrics) WriteAnchorTime(value time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NoOptMetrics ¶
type NoOptMetrics struct{}
NoOptMetrics provides default no operation implementation for the Metrics interface.
func (NoOptMetrics) AddOperationTime ¶
func (nm NoOptMetrics) AddOperationTime(value time.Duration)
AddOperationTime records the time it takes to add an operation to the queue.
func (NoOptMetrics) AddOperationToBatchTime ¶
func (nm NoOptMetrics) AddOperationToBatchTime(since time.Duration)
AddOperationToBatchTime records the time to add operation to batch.
func (NoOptMetrics) AddProofParseCredential ¶
func (nm NoOptMetrics) AddProofParseCredential(value time.Duration)
AddProofParseCredential records vct parse credential in add proof.
func (NoOptMetrics) AddProofSign ¶
func (nm NoOptMetrics) AddProofSign(value time.Duration)
AddProofSign records vct sign in add proof.
func (NoOptMetrics) AddUnpublishedOperationTime ¶
func (nm NoOptMetrics) AddUnpublishedOperationTime(since time.Duration)
AddUnpublishedOperationTime records the time to add unpublished operation.
func (NoOptMetrics) BatchCutTime ¶
func (nm NoOptMetrics) BatchCutTime(value time.Duration)
BatchCutTime records the time it takes to cut an operation batch. The duration is from the time that the first operation was added to the time that the batch is cut.
func (NoOptMetrics) BatchRollbackTime ¶
func (nm NoOptMetrics) BatchRollbackTime(value time.Duration)
BatchRollbackTime records the time it takes to roll back an operation batch (in case of a transient error). The duration is from the time that the first operation was added to the time that the batch is cut.
func (NoOptMetrics) BatchSize ¶
func (nm NoOptMetrics) BatchSize(value float64)
BatchSize records the size of an operation batch.
func (NoOptMetrics) CASIncrementCacheHitCount ¶
func (nm NoOptMetrics) CASIncrementCacheHitCount()
CASIncrementCacheHitCount increments the number of CAS cache hits.
func (NoOptMetrics) CASReadTime ¶
func (nm NoOptMetrics) CASReadTime(casType string, value time.Duration)
CASReadTime records the time it takes to read a document from CAS storage.
func (NoOptMetrics) CASResolveTime ¶
func (nm NoOptMetrics) CASResolveTime(value time.Duration)
CASResolveTime records the time it takes to resolve a document from CAS.
func (NoOptMetrics) CASWriteSize ¶
func (nm NoOptMetrics) CASWriteSize(dataType string, size int)
CASWriteSize the size (in bytes) of the data written to CAS for the given model type.
func (NoOptMetrics) CASWriteTime ¶
func (nm NoOptMetrics) CASWriteTime(value time.Duration)
CASWriteTime records the time it takes to write a document to CAS.
func (NoOptMetrics) CalculateUnpublishedOperationKey ¶
func (nm NoOptMetrics) CalculateUnpublishedOperationKey(duration time.Duration)
CalculateUnpublishedOperationKey records the time to create unpublished operation key.
func (NoOptMetrics) DBBatchTime ¶
func (nm NoOptMetrics) DBBatchTime(dbType string, duration time.Duration)
DBBatchTime records the time it takes to batch in db.
func (NoOptMetrics) DBDeleteTime ¶
func (nm NoOptMetrics) DBDeleteTime(dbType string, duration time.Duration)
DBDeleteTime records the time it takes to delete in db.
func (NoOptMetrics) DBGetBulkTime ¶
func (nm NoOptMetrics) DBGetBulkTime(dbType string, duration time.Duration)
DBGetBulkTime records the time it takes to get bulk in db.
func (NoOptMetrics) DBGetTagsTime ¶
func (nm NoOptMetrics) DBGetTagsTime(dbType string, duration time.Duration)
DBGetTagsTime records the time it takes to get tags in db.
func (NoOptMetrics) DBGetTime ¶
func (nm NoOptMetrics) DBGetTime(dbType string, duration time.Duration)
DBGetTime records the time it takes to get data in db.
func (NoOptMetrics) DBPutTime ¶
func (nm NoOptMetrics) DBPutTime(dbType string, duration time.Duration)
DBPutTime records the time it takes to store data in db.
func (NoOptMetrics) DBQueryTime ¶
func (nm NoOptMetrics) DBQueryTime(dbType string, duration time.Duration)
DBQueryTime records the time it takes to query in db.
func (NoOptMetrics) DecorateOperationTime ¶
func (nm NoOptMetrics) DecorateOperationTime(since time.Duration)
DecorateOperationTime records the time to decorate operation.
func (NoOptMetrics) DecorateTime ¶
func (nm NoOptMetrics) DecorateTime(duration time.Duration)
DecorateTime records the time it takes to decorate operation (for update handler).
func (NoOptMetrics) DeleteDocumentFromCreateDocumentStoreTime ¶
func (nm NoOptMetrics) DeleteDocumentFromCreateDocumentStoreTime(duration time.Duration)
DeleteDocumentFromCreateDocumentStoreTime records deleting document from create document store.
func (NoOptMetrics) DocumentCreateUpdateTime ¶
func (nm NoOptMetrics) DocumentCreateUpdateTime(duration time.Duration)
DocumentCreateUpdateTime records the time it takes the REST handler to process a create/update operation.
func (NoOptMetrics) DocumentResolveTime ¶
func (nm NoOptMetrics) DocumentResolveTime(duration time.Duration)
DocumentResolveTime records the time it takes the REST handler to resolve a document.
func (NoOptMetrics) ExportPublicKeyCount ¶
func (nm NoOptMetrics) ExportPublicKeyCount()
ExportPublicKeyCount increments the number of export public key hits.
func (NoOptMetrics) ExportPublicKeyTime ¶
func (nm NoOptMetrics) ExportPublicKeyTime(value time.Duration)
ExportPublicKeyTime records the time for export public key.
func (NoOptMetrics) GetAOEndpointAndResolveDocumentFromAOTime ¶
func (nm NoOptMetrics) GetAOEndpointAndResolveDocumentFromAOTime(duration time.Duration)
GetAOEndpointAndResolveDocumentFromAOTime records the time it takes to get anchor origin endpoint and resolve document from anchor origin when decorating operation (for update handler).
func (NoOptMetrics) GetAnchorOriginEndpointTime ¶
func (nm NoOptMetrics) GetAnchorOriginEndpointTime(duration time.Duration)
GetAnchorOriginEndpointTime records getting anchor origin endpoint information.
func (NoOptMetrics) GetCreateOperationResultTime ¶
func (nm NoOptMetrics) GetCreateOperationResultTime(since time.Duration)
GetCreateOperationResultTime records the time to create operation result response.
func (NoOptMetrics) GetProtocolVersionTime ¶
func (nm NoOptMetrics) GetProtocolVersionTime(since time.Duration)
GetProtocolVersionTime records the time to get protocol version.
func (NoOptMetrics) GetPublishedOperations ¶
func (nm NoOptMetrics) GetPublishedOperations(duration time.Duration)
GetPublishedOperations records the time to get published operations for suffix.
func (NoOptMetrics) GetUnpublishedOperations ¶
func (nm NoOptMetrics) GetUnpublishedOperations(duration time.Duration)
GetUnpublishedOperations records the time it takes to get unpublished operations for suffix.
func (NoOptMetrics) HTTPCreateUpdateTime ¶
func (nm NoOptMetrics) HTTPCreateUpdateTime(duration time.Duration)
HTTPCreateUpdateTime records the time rest call for create or update.
func (NoOptMetrics) HTTPResolveTime ¶
func (nm NoOptMetrics) HTTPResolveTime(duration time.Duration)
HTTPResolveTime records the time rest call for resolve.
func (NoOptMetrics) InboxHandlerTime ¶
func (nm NoOptMetrics) InboxHandlerTime(activityType string, value time.Duration)
InboxHandlerTime records the time it takes to handle an activity posted to the inbox.
func (NoOptMetrics) OutboxIncrementActivityCount ¶
func (nm NoOptMetrics) OutboxIncrementActivityCount(activityType string)
OutboxIncrementActivityCount increments the number of activities of the given type posted to the outbox.
func (NoOptMetrics) OutboxPostTime ¶
func (nm NoOptMetrics) OutboxPostTime(value time.Duration)
OutboxPostTime records the time it takes to post a message to the outbox.
func (NoOptMetrics) OutboxResolveInboxesTime ¶
func (nm NoOptMetrics) OutboxResolveInboxesTime(value time.Duration)
OutboxResolveInboxesTime records the time it takes to resolve inboxes for an outbox post.
func (NoOptMetrics) ParseOperationTime ¶
func (nm NoOptMetrics) ParseOperationTime(since time.Duration)
ParseOperationTime records the time to parse operation.
func (NoOptMetrics) ProcessAnchorTime ¶
func (nm NoOptMetrics) ProcessAnchorTime(value time.Duration)
ProcessAnchorTime records the time it takes for the Observer to process an anchor credential.
func (NoOptMetrics) ProcessDIDTime ¶
func (nm NoOptMetrics) ProcessDIDTime(value time.Duration)
ProcessDIDTime records the time it takes for the Observer to process a DID.
func (NoOptMetrics) ProcessOperation ¶
func (nm NoOptMetrics) ProcessOperation(duration time.Duration)
ProcessOperation records the overall time to process operation.
func (NoOptMetrics) ProcessWitnessedAnchorCredentialTime ¶
func (nm NoOptMetrics) ProcessWitnessedAnchorCredentialTime(value time.Duration)
ProcessWitnessedAnchorCredentialTime records the time it takes to process a witnessed anchor credential by publishing it to the Observer and posting a 'Create' activity.
func (NoOptMetrics) ProcessorResolveTime ¶
func (nm NoOptMetrics) ProcessorResolveTime(duration time.Duration)
ProcessorResolveTime records the time it takes for processor to resolve document when decorating operation (for update handler).
func (NoOptMetrics) PutPublishedOperations ¶
func (nm NoOptMetrics) PutPublishedOperations(duration time.Duration)
PutPublishedOperations records the time to store published operations.
func (NoOptMetrics) PutUnpublishedOperation ¶
func (nm NoOptMetrics) PutUnpublishedOperation(duration time.Duration)
PutUnpublishedOperation records the time it takes to store unpublished operation.
func (NoOptMetrics) RequestDiscoveryTime ¶
func (nm NoOptMetrics) RequestDiscoveryTime(duration time.Duration)
RequestDiscoveryTime records the time it takes to request discovery.
func (NoOptMetrics) ResolveDocumentFromAnchorOriginTime ¶
func (nm NoOptMetrics) ResolveDocumentFromAnchorOriginTime(duration time.Duration)
ResolveDocumentFromAnchorOriginTime records resolving document from anchor origin.
func (NoOptMetrics) ResolveDocumentFromCreateDocumentStoreTime ¶
func (nm NoOptMetrics) ResolveDocumentFromCreateDocumentStoreTime(duration time.Duration)
ResolveDocumentFromCreateDocumentStoreTime records resolving document from create document store.
func (NoOptMetrics) ResolveDocumentLocallyTime ¶
func (nm NoOptMetrics) ResolveDocumentLocallyTime(duration time.Duration)
ResolveDocumentLocallyTime records resolving document locally.
func (NoOptMetrics) SignCount ¶
func (nm NoOptMetrics) SignCount()
SignCount increments the number of sign hits.
func (NoOptMetrics) SignTime ¶
func (nm NoOptMetrics) SignTime(value time.Duration)
SignTime records the time for sign.
func (NoOptMetrics) SignerAddLinkedDataProof ¶
func (nm NoOptMetrics) SignerAddLinkedDataProof(value time.Duration)
SignerAddLinkedDataProof records add data linked proof.
func (NoOptMetrics) SignerGetKey ¶
func (nm NoOptMetrics) SignerGetKey(value time.Duration)
SignerGetKey records get key time.
func (NoOptMetrics) SignerSign ¶
func (nm NoOptMetrics) SignerSign(value time.Duration)
SignerSign records sign.
func (NoOptMetrics) ValidateOperationTime ¶
func (nm NoOptMetrics) ValidateOperationTime(since time.Duration)
ValidateOperationTime records the time to validate operation.
func (NoOptMetrics) VerifyCIDTime ¶
func (nm NoOptMetrics) VerifyCIDTime(duration time.Duration)
VerifyCIDTime records verifying CID for document resolution.
func (NoOptMetrics) VerifyCount ¶
func (nm NoOptMetrics) VerifyCount()
VerifyCount increments the number of verify hits.
func (NoOptMetrics) VerifyTime ¶
func (nm NoOptMetrics) VerifyTime(value time.Duration)
VerifyTime records the time for verify.
func (NoOptMetrics) WebDocumentResolveTime ¶
func (nm NoOptMetrics) WebDocumentResolveTime(duration time.Duration)
WebDocumentResolveTime records resolving web document.
func (NoOptMetrics) WitnessAddProof ¶
func (nm NoOptMetrics) WitnessAddProof(value time.Duration)
WitnessAddProof records vct witness add proof.
func (NoOptMetrics) WitnessAddProofVctNil ¶
func (nm NoOptMetrics) WitnessAddProofVctNil(value time.Duration)
WitnessAddProofVctNil records vct witness.
func (NoOptMetrics) WitnessAddVC ¶
func (nm NoOptMetrics) WitnessAddVC(value time.Duration)
WitnessAddVC records vct witness add vc.
func (NoOptMetrics) WitnessAnchorCredentialTime ¶
func (nm NoOptMetrics) WitnessAnchorCredentialTime(duration time.Duration)
WitnessAnchorCredentialTime records the time it takes for a verifiable credential to gather proofs from all required witnesses (according to witness policy). The start time is when the verifiable credential is issued and the end time is the time that the witness policy is satisfied.
func (NoOptMetrics) WitnessVerifyVCTSignature ¶
func (nm NoOptMetrics) WitnessVerifyVCTSignature(value time.Duration)
WitnessVerifyVCTSignature records vct witness verify vct.
func (NoOptMetrics) WitnessWebFinger ¶
func (nm NoOptMetrics) WitnessWebFinger(value time.Duration)
WitnessWebFinger records vct witness web finger.
func (NoOptMetrics) WriteAnchorBuildCredentialTime ¶
func (nm NoOptMetrics) WriteAnchorBuildCredentialTime(value time.Duration)
WriteAnchorBuildCredentialTime records the time it takes to build credential inside write anchor.
func (NoOptMetrics) WriteAnchorGetPreviousAnchorsGetBulkTime ¶
func (nm NoOptMetrics) WriteAnchorGetPreviousAnchorsGetBulkTime(value time.Duration)
WriteAnchorGetPreviousAnchorsGetBulkTime records the time it takes to get bulk inside previous anchor.
func (NoOptMetrics) WriteAnchorGetPreviousAnchorsTime ¶
func (nm NoOptMetrics) WriteAnchorGetPreviousAnchorsTime(value time.Duration)
WriteAnchorGetPreviousAnchorsTime records the time it takes to get previous anchor.
func (NoOptMetrics) WriteAnchorGetWitnessesTime ¶
func (nm NoOptMetrics) WriteAnchorGetWitnessesTime(value time.Duration)
WriteAnchorGetWitnessesTime records the time it takes to get witnesses inside write anchor.
func (NoOptMetrics) WriteAnchorPostOfferActivityTime ¶
func (nm NoOptMetrics) WriteAnchorPostOfferActivityTime(value time.Duration)
WriteAnchorPostOfferActivityTime records the time it takes to post offer activity inside write anchor.
func (NoOptMetrics) WriteAnchorResolveHostMetaLinkTime ¶
func (nm NoOptMetrics) WriteAnchorResolveHostMetaLinkTime(value time.Duration)
WriteAnchorResolveHostMetaLinkTime records the time it takes to resolve host meta link.
func (NoOptMetrics) WriteAnchorSignCredentialTime ¶
func (nm NoOptMetrics) WriteAnchorSignCredentialTime(value time.Duration)
WriteAnchorSignCredentialTime records the time it takes to sign credential inside write anchor.
func (NoOptMetrics) WriteAnchorSignLocalWatchTime ¶
func (nm NoOptMetrics) WriteAnchorSignLocalWatchTime(value time.Duration)
WriteAnchorSignLocalWatchTime records the time it takes to watch inside sign local.
func (NoOptMetrics) WriteAnchorSignLocalWitnessLogTime ¶
func (nm NoOptMetrics) WriteAnchorSignLocalWitnessLogTime(value time.Duration)
WriteAnchorSignLocalWitnessLogTime records the time it takes to witness log inside sign local.
func (NoOptMetrics) WriteAnchorSignWithLocalWitnessTime ¶
func (nm NoOptMetrics) WriteAnchorSignWithLocalWitnessTime(value time.Duration)
WriteAnchorSignWithLocalWitnessTime records the time it takes to sign with local witness.
func (NoOptMetrics) WriteAnchorSignWithServerKeyTime ¶
func (nm NoOptMetrics) WriteAnchorSignWithServerKeyTime(value time.Duration)
WriteAnchorSignWithServerKeyTime records the time it takes to sign with server key.
func (NoOptMetrics) WriteAnchorStoreTime ¶
func (nm NoOptMetrics) WriteAnchorStoreTime(value time.Duration)
WriteAnchorStoreTime records the time it takes to store an anchor event.
func (NoOptMetrics) WriteAnchorTime ¶
func (nm NoOptMetrics) WriteAnchorTime(value time.Duration)
WriteAnchorTime records the time it takes to write an anchor credential and post an 'Offer' activity.