Model savedcharts
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | x |
| owner | x | x | x | x |
| user | | x | | |
| all | | | | |
Fields
| Name | Type | Link | Maps To | Default | Indexed? | Unique? | Required? |
|---|
| __v | Number | | | | | | |
| _deleted | Boolean | | | false | x | | |
| _id | ObjectID | | | [Function] | | | |
| _owner_id | ObjectID | User | _owner | | x | | |
| _updated_by_id | ObjectID | User | _updated_by | | x | | |
| chart_options | Mixed | | | | | | |
| chart_type | String | | | | | | x |
| createdAt | Date | | | | | | |
| created_by | ObjectID | user | | | | | |
| data_source | String | | | | | | x |
| description | String | | | | | | |
| es_filters | Mixed | | | | | | |
| es_group_by | String | | | | | | |
| es_limit | Number | | | | | | |
| es_metric | String | | | | | | |
| es_time_series_interval | String | | | | | | |
| jxp_aggregate | Mixed | | | | | | |
| jxp_params | Mixed | | | | | | |
| jxp_resource | String | | | | | | |
| name | String | | | | x | | x |
| updatedAt | Date | | | | | | |
Field Details
__v
{
"path": "__v",
"instance": "Number",
"options": {},
"validators": []
}_deleted
{
"path": "_deleted",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}_id
{
"path": "_id",
"instance": "ObjectID",
"options": {
"auto": true,
"type": "ObjectId"
},
"validators": [],
"defaultValue": "[Function]"
}_owner_id
{
"path": "_owner_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_owner",
"index": true
},
"validators": []
}_updated_by_id
{
"path": "_updated_by_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"validators": []
}chart_options
{
"path": "chart_options",
"instance": "Mixed",
"options": {},
"validators": []
}chart_type
{
"path": "chart_type",
"instance": "String",
"options": {
"enum": [
"bar",
"line",
"pie",
"top_metric",
"location_map",
"table"
],
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
},
{
"message": "`{VALUE}` is not a valid enum value for path `{PATH}`."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
- : `{VALUE}` is not a valid enum value for path `{PATH}`.
createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}created_by
{
"path": "created_by",
"instance": "ObjectID",
"options": {
"link": "user"
},
"validators": []
}data_source
{
"path": "data_source",
"instance": "String",
"options": {
"enum": [
"elasticsearch",
"jxp"
],
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
},
{
"message": "`{VALUE}` is not a valid enum value for path `{PATH}`."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
- : `{VALUE}` is not a valid enum value for path `{PATH}`.
description
{
"path": "description",
"instance": "String",
"options": {},
"validators": []
}es_filters
{
"path": "es_filters",
"instance": "Mixed",
"options": {},
"validators": []
}es_group_by
{
"path": "es_group_by",
"instance": "String",
"options": {},
"validators": []
}es_limit
{
"path": "es_limit",
"instance": "Number",
"options": {},
"validators": []
}es_metric
{
"path": "es_metric",
"instance": "String",
"options": {},
"validators": []
}es_time_series_interval
{
"path": "es_time_series_interval",
"instance": "String",
"options": {
"enum": [
"hour",
"day",
"week"
]
},
"validators": [
{
"message": "`{VALUE}` is not a valid enum value for path `{PATH}`."
}
]
}Validators
- : `{VALUE}` is not a valid enum value for path `{PATH}`.
jxp_aggregate
{
"path": "jxp_aggregate",
"instance": "Mixed",
"options": {},
"validators": []
}jxp_params
{
"path": "jxp_params",
"instance": "Mixed",
"options": {},
"validators": []
}jxp_resource
{
"path": "jxp_resource",
"instance": "String",
"options": {},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {
"required": true,
"index": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}