Model savedcharts


Permissions

User GroupCreate?Read?Update?Delete?
adminxxxx
ownerxxxx
userx
all

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
chart_optionsMixed
chart_typeStringx
createdAtDate
created_byObjectIDuser
data_sourceStringx
descriptionString
es_filtersMixed
es_group_byString
es_limitNumber
es_metricString
es_time_series_intervalString
jxp_aggregateMixed
jxp_paramsMixed
jxp_resourceString
nameStringxx
updatedAtDate

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

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

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

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

updatedAt

{
  "path": "updatedAt",
  "instance": "Date",
  "options": {},
  "validators": []
}