PostHog · Schema
ExperimentSavedMetric
Mixin for serializers to add user access control fields
A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording
Properties
| Name | Type | Description |
|---|---|---|
| id | integer | |
| name | string | |
| description | string | |
| query | object | |
| created_by | object | |
| created_at | string | |
| updated_at | string | |
| tags | array | |
| user_access_level | string | The effective access level the user has for this object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/ExperimentSavedMetric",
"title": "ExperimentSavedMetric",
"type": "object",
"description": "Mixin for serializers to add user access control fields",
"properties": {
"id": {
"type": "integer",
"readOnly": true
},
"name": {
"type": "string",
"maxLength": 400
},
"description": {
"type": "string",
"nullable": true,
"maxLength": 400
},
"query": {},
"created_by": {
"allOf": [
{
"$ref": "#/components/schemas/UserBasic"
}
],
"readOnly": true
},
"created_at": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"tags": {
"type": "array",
"items": {}
},
"user_access_level": {
"type": "string",
"nullable": true,
"readOnly": true,
"description": "The effective access level the user has for this object"
}
},
"required": [
"created_at",
"created_by",
"id",
"name",
"query",
"updated_at",
"user_access_level"
]
}