Skip to main content

NewCRUD

No overview available.

def NewCRUD(
scope: promutils.Scope
) - > CRUD

Constructs and returns a new CRUD object, initializing its Create, Read, Update, List, Delete, Undelete, and Count fields with new API instances, each scoped appropriately.

Parameters

NameTypeDescription
scopepromutils.ScopeThe Prometheus scope used to create sub-scopes for each CRUD operation, allowing for distinct metric collection.

Returns

TypeDescription
CRUDA new CRUD object with initialized API instances for each operation.