mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
feat(usage): declare resource-dimension setter stubs on base Context
Adds setService / setResource / setResourceId / setResourceInternalId no-op stubs on the base CE Context, matching the existing pattern for setResourcePath. The Cloud Context subclass overrides these with real storage so per-metric rows carry the dimension in their own columns instead of via a baked metric-name template.
This commit is contained in:
1 parent
93a0ab0dc0
commit
27671e05b0
1 file changed
+40
@@ -71,6 +71,46 @@ class Context
|
||||
return '';
|
||||
}
|
||||
|
||||
public function setService(string $service): self
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getService(): string
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function setResource(string $resource): self
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getResource(): string
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function setResourceId(string $resourceId): self
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getResourceId(): string
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function setResourceInternalId(string $resourceInternalId): self
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getResourceInternalId(): string
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the context
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user