Documentation ¶
Index ¶
- type CloudWatchAnnotationQuery
- type CloudWatchAnnotationQueryQueryMode
- type CloudWatchDataQuery
- type CloudWatchLogsQuery
- type CloudWatchLogsQueryQueryMode
- type CloudWatchMetricsQuery
- type CloudWatchMetricsQueryMetricEditorMode
- type CloudWatchMetricsQueryMetricQueryType
- type CloudWatchMetricsQueryQueryMode
- type CloudWatchMetricsQuerySqlFrom
- type CloudWatchMetricsQuerySqlFromParametersType
- type CloudWatchMetricsQuerySqlFromPropertyType
- type CloudWatchMetricsQuerySqlGroupByType
- type CloudWatchMetricsQuerySqlOrderByParametersType
- type CloudWatchMetricsQuerySqlOrderByType
- type CloudWatchMetricsQuerySqlSelectParametersType
- type CloudWatchMetricsQuerySqlSelectType
- type CloudWatchMetricsQuerySqlWhereType
- type CloudWatchQueryMode
- type Dimensions
- type LogGroup
- type MetricEditorMode
- type MetricQueryType
- type MetricStat
- type QueryEditorArrayExpression
- type QueryEditorArrayExpressionType
- type QueryEditorExpression
- type QueryEditorExpressionParametersType
- type QueryEditorExpressionPropertyType
- type QueryEditorExpressionType
- type QueryEditorFunctionExpression
- type QueryEditorFunctionExpressionParametersType
- type QueryEditorFunctionExpressionType
- type QueryEditorFunctionParameterExpression
- type QueryEditorFunctionParameterExpressionType
- type QueryEditorGroupByExpression
- type QueryEditorGroupByExpressionPropertyType
- type QueryEditorGroupByExpressionType
- type QueryEditorOperator
- type QueryEditorOperatorExpression
- type QueryEditorOperatorExpressionPropertyType
- type QueryEditorOperatorExpressionType
- type QueryEditorProperty
- type QueryEditorPropertyExpression
- type QueryEditorPropertyExpressionPropertyType
- type QueryEditorPropertyExpressionType
- type QueryEditorPropertyType
- type SQLExpression
- type SQLExpressionFrom
- type SQLExpressionFromParametersType
- type SQLExpressionFromPropertyType
- type SQLExpressionGroupByType
- type SQLExpressionOrderByParametersType
- type SQLExpressionOrderByType
- type SQLExpressionSelectParametersType
- type SQLExpressionSelectType
- type SQLExpressionWhereType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudWatchAnnotationQuery ¶
type CloudWatchAnnotationQuery struct { AccountId *string `json:"accountId,omitempty"` ActionPrefix *string `json:"actionPrefix,omitempty"` AlarmNamePrefix *string `json:"alarmNamePrefix,omitempty"` // For mixed data sources the selected datasource is on the query level. // For non mixed scenarios this is undefined. // TODO find a better way to do this ^ that's friendly to schema // TODO this shouldn't be unknown but DataSourceRef | null Datasource *interface{} `json:"datasource,omitempty"` Dimensions map[string]interface{} `json:"dimensions,omitempty"` // Hide true if query is disabled (ie should not be returned to the dashboard) // Note this does not always imply that the query should not be executed since // the results from a hidden query may be used as the input to other queries (SSE etc) Hide *bool `json:"hide,omitempty"` MatchExact *bool `json:"matchExact,omitempty"` MetricName *string `json:"metricName,omitempty"` Namespace string `json:"namespace"` Period *string `json:"period,omitempty"` PrefixMatching *bool `json:"prefixMatching,omitempty"` QueryMode CloudWatchAnnotationQueryQueryMode `json:"queryMode"` // Specify the query flavor // TODO make this required and give it a default QueryType *string `json:"queryType,omitempty"` // A unique identifier for the query within the list of targets. // In server side expressions, the refId is used as a variable name to identify results. // By default, the UI will assign A->Z; however setting meaningful names may be useful. RefId string `json:"refId"` Region string `json:"region"` Statistic *string `json:"statistic,omitempty"` // @deprecated use statistic Statistics []string `json:"statistics,omitempty"` }
CloudWatchAnnotationQuery defines model for CloudWatchAnnotationQuery.
type CloudWatchAnnotationQueryQueryMode ¶
type CloudWatchAnnotationQueryQueryMode string
CloudWatchAnnotationQueryQueryMode defines model for CloudWatchAnnotationQuery.QueryMode.
const ( CloudWatchAnnotationQueryQueryModeAnnotations CloudWatchAnnotationQueryQueryMode = "Annotations" CloudWatchAnnotationQueryQueryModeLogs CloudWatchAnnotationQueryQueryMode = "Logs" CloudWatchAnnotationQueryQueryModeMetrics CloudWatchAnnotationQueryQueryMode = "Metrics" )
Defines values for CloudWatchAnnotationQueryQueryMode.
type CloudWatchDataQuery ¶
type CloudWatchDataQuery = map[string]interface{}
CloudWatchDataQuery defines model for CloudWatchDataQuery.
type CloudWatchLogsQuery ¶
type CloudWatchLogsQuery struct { // For mixed data sources the selected datasource is on the query level. // For non mixed scenarios this is undefined. // TODO find a better way to do this ^ that's friendly to schema // TODO this shouldn't be unknown but DataSourceRef | null Datasource *interface{} `json:"datasource,omitempty"` Expression *string `json:"expression,omitempty"` // Hide true if query is disabled (ie should not be returned to the dashboard) // Note this does not always imply that the query should not be executed since // the results from a hidden query may be used as the input to other queries (SSE etc) Hide *bool `json:"hide,omitempty"` Id string `json:"id"` // LogGroupNames deprecated, use logGroups instead LogGroupNames []string `json:"logGroupNames,omitempty"` LogGroups []struct { AccountId *string `json:"accountId,omitempty"` AccountLabel *string `json:"accountLabel,omitempty"` Arn string `json:"arn"` Name string `json:"name"` } `json:"logGroups,omitempty"` QueryMode CloudWatchLogsQueryQueryMode `json:"queryMode"` // Specify the query flavor // TODO make this required and give it a default QueryType *string `json:"queryType,omitempty"` // A unique identifier for the query within the list of targets. // In server side expressions, the refId is used as a variable name to identify results. // By default, the UI will assign A->Z; however setting meaningful names may be useful. RefId string `json:"refId"` Region string `json:"region"` StatsGroups []string `json:"statsGroups,omitempty"` }
CloudWatchLogsQuery defines model for CloudWatchLogsQuery.
type CloudWatchLogsQueryQueryMode ¶
type CloudWatchLogsQueryQueryMode string
CloudWatchLogsQueryQueryMode defines model for CloudWatchLogsQuery.QueryMode.
const ( CloudWatchLogsQueryQueryModeAnnotations CloudWatchLogsQueryQueryMode = "Annotations" CloudWatchLogsQueryQueryModeLogs CloudWatchLogsQueryQueryMode = "Logs" CloudWatchLogsQueryQueryModeMetrics CloudWatchLogsQueryQueryMode = "Metrics" )
Defines values for CloudWatchLogsQueryQueryMode.
type CloudWatchMetricsQuery ¶
type CloudWatchMetricsQuery struct { AccountId *string `json:"accountId,omitempty"` Alias *string `json:"alias,omitempty"` // For mixed data sources the selected datasource is on the query level. // For non mixed scenarios this is undefined. // TODO find a better way to do this ^ that's friendly to schema // TODO this shouldn't be unknown but DataSourceRef | null Datasource *interface{} `json:"datasource,omitempty"` Dimensions map[string]interface{} `json:"dimensions,omitempty"` // Math expression query Expression *string `json:"expression,omitempty"` // Hide true if query is disabled (ie should not be returned to the dashboard) // Note this does not always imply that the query should not be executed since // the results from a hidden query may be used as the input to other queries (SSE etc) Hide *bool `json:"hide,omitempty"` // Id common props Id string `json:"id"` Label *string `json:"label,omitempty"` MatchExact *bool `json:"matchExact,omitempty"` MetricEditorMode *CloudWatchMetricsQueryMetricEditorMode `json:"metricEditorMode,omitempty"` MetricName *string `json:"metricName,omitempty"` MetricQueryType *CloudWatchMetricsQueryMetricQueryType `json:"metricQueryType,omitempty"` Namespace string `json:"namespace"` Period *string `json:"period,omitempty"` QueryMode *CloudWatchMetricsQueryQueryMode `json:"queryMode,omitempty"` // Specify the query flavor // TODO make this required and give it a default QueryType *string `json:"queryType,omitempty"` // A unique identifier for the query within the list of targets. // In server side expressions, the refId is used as a variable name to identify results. // By default, the UI will assign A->Z; however setting meaningful names may be useful. RefId string `json:"refId"` Region string `json:"region"` Sql *struct { From *CloudWatchMetricsQuerySqlFrom `json:"from,omitempty"` GroupBy *struct { // TS type expressions: QueryEditorExpression[] | QueryEditorArrayExpression[], extended in veneer Expressions interface{} `json:"expressions"` // TODO this doesn't work; temporarily extended in veneer Type CloudWatchMetricsQuerySqlGroupByType `json:"type"` } `json:"groupBy,omitempty"` Limit *int64 `json:"limit,omitempty"` OrderBy *struct { Name *string `json:"name,omitempty"` Parameters []struct { Name *string `json:"name,omitempty"` Type CloudWatchMetricsQuerySqlOrderByParametersType `json:"type"` } `json:"parameters,omitempty"` Type CloudWatchMetricsQuerySqlOrderByType `json:"type"` } `json:"orderBy,omitempty"` OrderByDirection *string `json:"orderByDirection,omitempty"` Select *struct { Name *string `json:"name,omitempty"` Parameters []struct { Name *string `json:"name,omitempty"` Type CloudWatchMetricsQuerySqlSelectParametersType `json:"type"` } `json:"parameters,omitempty"` Type CloudWatchMetricsQuerySqlSelectType `json:"type"` } `json:"select,omitempty"` Where *struct { // TS type expressions: QueryEditorExpression[] | QueryEditorArrayExpression[], extended in veneer Expressions interface{} `json:"expressions"` // TODO this doesn't work; temporarily extended in veneer Type CloudWatchMetricsQuerySqlWhereType `json:"type"` } `json:"where,omitempty"` } `json:"sql,omitempty"` SqlExpression *string `json:"sqlExpression,omitempty"` Statistic *string `json:"statistic,omitempty"` // @deprecated use statistic Statistics []string `json:"statistics,omitempty"` }
CloudWatchMetricsQuery defines model for CloudWatchMetricsQuery.
type CloudWatchMetricsQueryMetricEditorMode ¶
type CloudWatchMetricsQueryMetricEditorMode int
CloudWatchMetricsQueryMetricEditorMode defines model for CloudWatchMetricsQuery.MetricEditorMode.
const ( CloudWatchMetricsQueryMetricEditorModeN0 CloudWatchMetricsQueryMetricEditorMode = 0 CloudWatchMetricsQueryMetricEditorModeN1 CloudWatchMetricsQueryMetricEditorMode = 1 )
Defines values for CloudWatchMetricsQueryMetricEditorMode.
type CloudWatchMetricsQueryMetricQueryType ¶
type CloudWatchMetricsQueryMetricQueryType int
CloudWatchMetricsQueryMetricQueryType defines model for CloudWatchMetricsQuery.MetricQueryType.
const ( CloudWatchMetricsQueryMetricQueryTypeN0 CloudWatchMetricsQueryMetricQueryType = 0 CloudWatchMetricsQueryMetricQueryTypeN1 CloudWatchMetricsQueryMetricQueryType = 1 )
Defines values for CloudWatchMetricsQueryMetricQueryType.
type CloudWatchMetricsQueryQueryMode ¶
type CloudWatchMetricsQueryQueryMode string
CloudWatchMetricsQueryQueryMode defines model for CloudWatchMetricsQuery.QueryMode.
const ( CloudWatchMetricsQueryQueryModeAnnotations CloudWatchMetricsQueryQueryMode = "Annotations" CloudWatchMetricsQueryQueryModeLogs CloudWatchMetricsQueryQueryMode = "Logs" CloudWatchMetricsQueryQueryModeMetrics CloudWatchMetricsQueryQueryMode = "Metrics" )
Defines values for CloudWatchMetricsQueryQueryMode.
type CloudWatchMetricsQuerySqlFrom ¶
type CloudWatchMetricsQuerySqlFrom struct { Name *string `json:"name,omitempty"` Parameters []struct { Name *string `json:"name,omitempty"` Type CloudWatchMetricsQuerySqlFromParametersType `json:"type"` } `json:"parameters,omitempty"` Property *struct { Name *string `json:"name,omitempty"` Type CloudWatchMetricsQuerySqlFromPropertyType `json:"type"` } `json:"property,omitempty"` Type *interface{} `json:"type,omitempty"` // contains filtered or unexported fields }
CloudWatchMetricsQuerySqlFrom defines model for CloudWatchMetricsQuery.Sql.From.
type CloudWatchMetricsQuerySqlFromParametersType ¶
type CloudWatchMetricsQuerySqlFromParametersType string
CloudWatchMetricsQuerySqlFromParametersType defines model for CloudWatchMetricsQuery.Sql.From.Parameters.Type.
const (
CloudWatchMetricsQuerySqlFromParametersTypeFunctionParameter CloudWatchMetricsQuerySqlFromParametersType = "functionParameter"
)
Defines values for CloudWatchMetricsQuerySqlFromParametersType.
type CloudWatchMetricsQuerySqlFromPropertyType ¶
type CloudWatchMetricsQuerySqlFromPropertyType string
CloudWatchMetricsQuerySqlFromPropertyType defines model for CloudWatchMetricsQuery.Sql.From.Property.Type.
const (
CloudWatchMetricsQuerySqlFromPropertyTypeString CloudWatchMetricsQuerySqlFromPropertyType = "string"
)
Defines values for CloudWatchMetricsQuerySqlFromPropertyType.
type CloudWatchMetricsQuerySqlGroupByType ¶
type CloudWatchMetricsQuerySqlGroupByType string
TODO this doesn't work; temporarily extended in veneer
const ( CloudWatchMetricsQuerySqlGroupByTypeAnd CloudWatchMetricsQuerySqlGroupByType = "and" CloudWatchMetricsQuerySqlGroupByTypeOr CloudWatchMetricsQuerySqlGroupByType = "or" )
Defines values for CloudWatchMetricsQuerySqlGroupByType.
type CloudWatchMetricsQuerySqlOrderByParametersType ¶
type CloudWatchMetricsQuerySqlOrderByParametersType string
CloudWatchMetricsQuerySqlOrderByParametersType defines model for CloudWatchMetricsQuery.Sql.OrderBy.Parameters.Type.
const (
CloudWatchMetricsQuerySqlOrderByParametersTypeFunctionParameter CloudWatchMetricsQuerySqlOrderByParametersType = "functionParameter"
)
Defines values for CloudWatchMetricsQuerySqlOrderByParametersType.
type CloudWatchMetricsQuerySqlOrderByType ¶
type CloudWatchMetricsQuerySqlOrderByType string
CloudWatchMetricsQuerySqlOrderByType defines model for CloudWatchMetricsQuery.Sql.OrderBy.Type.
const (
CloudWatchMetricsQuerySqlOrderByTypeFunction CloudWatchMetricsQuerySqlOrderByType = "function"
)
Defines values for CloudWatchMetricsQuerySqlOrderByType.
type CloudWatchMetricsQuerySqlSelectParametersType ¶
type CloudWatchMetricsQuerySqlSelectParametersType string
CloudWatchMetricsQuerySqlSelectParametersType defines model for CloudWatchMetricsQuery.Sql.Select.Parameters.Type.
const (
CloudWatchMetricsQuerySqlSelectParametersTypeFunctionParameter CloudWatchMetricsQuerySqlSelectParametersType = "functionParameter"
)
Defines values for CloudWatchMetricsQuerySqlSelectParametersType.
type CloudWatchMetricsQuerySqlSelectType ¶
type CloudWatchMetricsQuerySqlSelectType string
CloudWatchMetricsQuerySqlSelectType defines model for CloudWatchMetricsQuery.Sql.Select.Type.
const (
CloudWatchMetricsQuerySqlSelectTypeFunction CloudWatchMetricsQuerySqlSelectType = "function"
)
Defines values for CloudWatchMetricsQuerySqlSelectType.
type CloudWatchMetricsQuerySqlWhereType ¶
type CloudWatchMetricsQuerySqlWhereType string
TODO this doesn't work; temporarily extended in veneer
const ( CloudWatchMetricsQuerySqlWhereTypeAnd CloudWatchMetricsQuerySqlWhereType = "and" CloudWatchMetricsQuerySqlWhereTypeOr CloudWatchMetricsQuerySqlWhereType = "or" )
Defines values for CloudWatchMetricsQuerySqlWhereType.
type CloudWatchQueryMode ¶
type CloudWatchQueryMode string
CloudWatchQueryMode defines model for CloudWatchQueryMode.
const ( CloudWatchQueryModeAnnotations CloudWatchQueryMode = "Annotations" CloudWatchQueryModeLogs CloudWatchQueryMode = "Logs" CloudWatchQueryModeMetrics CloudWatchQueryMode = "Metrics" )
Defines values for CloudWatchQueryMode.
type LogGroup ¶
type LogGroup struct { AccountId *string `json:"accountId,omitempty"` AccountLabel *string `json:"accountLabel,omitempty"` Arn string `json:"arn"` Name string `json:"name"` }
LogGroup defines model for LogGroup.
type MetricEditorMode ¶
type MetricEditorMode int
MetricEditorMode defines model for MetricEditorMode.
const ( MetricEditorModeN0 MetricEditorMode = 0 MetricEditorModeN1 MetricEditorMode = 1 )
Defines values for MetricEditorMode.
type MetricQueryType ¶
type MetricQueryType int
MetricQueryType defines model for MetricQueryType.
const ( MetricQueryTypeN0 MetricQueryType = 0 MetricQueryTypeN1 MetricQueryType = 1 )
Defines values for MetricQueryType.
type MetricStat ¶
type MetricStat struct { AccountId *string `json:"accountId,omitempty"` Dimensions map[string]interface{} `json:"dimensions,omitempty"` MatchExact *bool `json:"matchExact,omitempty"` MetricName *string `json:"metricName,omitempty"` Namespace string `json:"namespace"` Period *string `json:"period,omitempty"` Region string `json:"region"` Statistic *string `json:"statistic,omitempty"` // @deprecated use statistic Statistics []string `json:"statistics,omitempty"` }
MetricStat defines model for MetricStat.
type QueryEditorArrayExpression ¶
type QueryEditorArrayExpression struct { // TS type expressions: QueryEditorExpression[] | QueryEditorArrayExpression[], extended in veneer Expressions interface{} `json:"expressions"` // TODO this doesn't work; temporarily extended in veneer Type QueryEditorArrayExpressionType `json:"type"` }
QueryEditorArrayExpression defines model for QueryEditorArrayExpression.
type QueryEditorArrayExpressionType ¶
type QueryEditorArrayExpressionType string
TODO this doesn't work; temporarily extended in veneer
const ( QueryEditorArrayExpressionTypeAnd QueryEditorArrayExpressionType = "and" QueryEditorArrayExpressionTypeOr QueryEditorArrayExpressionType = "or" )
Defines values for QueryEditorArrayExpressionType.
type QueryEditorExpression ¶
type QueryEditorExpression struct { Name *string `json:"name,omitempty"` // TS type is operator: QueryEditorOperator<QueryEditorOperatorValueType>, extended in veneer Operator *struct { Name *string `json:"name,omitempty"` Value *interface{} `json:"value,omitempty"` } `json:"operator,omitempty"` Parameters []struct { Name *string `json:"name,omitempty"` Type QueryEditorExpressionParametersType `json:"type"` } `json:"parameters,omitempty"` Property *struct { Name *string `json:"name,omitempty"` Type QueryEditorExpressionPropertyType `json:"type"` } `json:"property,omitempty"` Type *interface{} `json:"type,omitempty"` // contains filtered or unexported fields }
QueryEditorArrayExpression is added in veneer
type QueryEditorExpressionParametersType ¶
type QueryEditorExpressionParametersType string
QueryEditorExpressionParametersType defines model for QueryEditorExpression.Parameters.Type.
const (
QueryEditorExpressionParametersTypeFunctionParameter QueryEditorExpressionParametersType = "functionParameter"
)
Defines values for QueryEditorExpressionParametersType.
type QueryEditorExpressionPropertyType ¶
type QueryEditorExpressionPropertyType string
QueryEditorExpressionPropertyType defines model for QueryEditorExpression.Property.Type.
const (
QueryEditorExpressionPropertyTypeString QueryEditorExpressionPropertyType = "string"
)
Defines values for QueryEditorExpressionPropertyType.
type QueryEditorExpressionType ¶
type QueryEditorExpressionType string
QueryEditorExpressionType defines model for QueryEditorExpressionType.
const ( QueryEditorExpressionTypeAnd QueryEditorExpressionType = "and" QueryEditorExpressionTypeFunction QueryEditorExpressionType = "function" QueryEditorExpressionTypeFunctionParameter QueryEditorExpressionType = "functionParameter" QueryEditorExpressionTypeGroupBy QueryEditorExpressionType = "groupBy" QueryEditorExpressionTypeOperator QueryEditorExpressionType = "operator" QueryEditorExpressionTypeOr QueryEditorExpressionType = "or" QueryEditorExpressionTypeProperty QueryEditorExpressionType = "property" )
Defines values for QueryEditorExpressionType.
type QueryEditorFunctionExpression ¶
type QueryEditorFunctionExpression struct { Name *string `json:"name,omitempty"` Parameters []struct { Name *string `json:"name,omitempty"` Type QueryEditorFunctionExpressionParametersType `json:"type"` } `json:"parameters,omitempty"` Type QueryEditorFunctionExpressionType `json:"type"` }
QueryEditorFunctionExpression defines model for QueryEditorFunctionExpression.
type QueryEditorFunctionExpressionParametersType ¶
type QueryEditorFunctionExpressionParametersType string
QueryEditorFunctionExpressionParametersType defines model for QueryEditorFunctionExpression.Parameters.Type.
const (
QueryEditorFunctionExpressionParametersTypeFunctionParameter QueryEditorFunctionExpressionParametersType = "functionParameter"
)
Defines values for QueryEditorFunctionExpressionParametersType.
type QueryEditorFunctionExpressionType ¶
type QueryEditorFunctionExpressionType string
QueryEditorFunctionExpressionType defines model for QueryEditorFunctionExpression.Type.
const (
QueryEditorFunctionExpressionTypeFunction QueryEditorFunctionExpressionType = "function"
)
Defines values for QueryEditorFunctionExpressionType.
type QueryEditorFunctionParameterExpression ¶
type QueryEditorFunctionParameterExpression struct { Name *string `json:"name,omitempty"` Type QueryEditorFunctionParameterExpressionType `json:"type"` }
QueryEditorFunctionParameterExpression defines model for QueryEditorFunctionParameterExpression.
type QueryEditorFunctionParameterExpressionType ¶
type QueryEditorFunctionParameterExpressionType string
QueryEditorFunctionParameterExpressionType defines model for QueryEditorFunctionParameterExpression.Type.
const (
QueryEditorFunctionParameterExpressionTypeFunctionParameter QueryEditorFunctionParameterExpressionType = "functionParameter"
)
Defines values for QueryEditorFunctionParameterExpressionType.
type QueryEditorGroupByExpression ¶
type QueryEditorGroupByExpression struct { Property struct { Name *string `json:"name,omitempty"` Type QueryEditorGroupByExpressionPropertyType `json:"type"` } `json:"property"` Type QueryEditorGroupByExpressionType `json:"type"` }
QueryEditorGroupByExpression defines model for QueryEditorGroupByExpression.
type QueryEditorGroupByExpressionPropertyType ¶
type QueryEditorGroupByExpressionPropertyType string
QueryEditorGroupByExpressionPropertyType defines model for QueryEditorGroupByExpression.Property.Type.
const (
QueryEditorGroupByExpressionPropertyTypeString QueryEditorGroupByExpressionPropertyType = "string"
)
Defines values for QueryEditorGroupByExpressionPropertyType.
type QueryEditorGroupByExpressionType ¶
type QueryEditorGroupByExpressionType string
QueryEditorGroupByExpressionType defines model for QueryEditorGroupByExpression.Type.
const (
QueryEditorGroupByExpressionTypeGroupBy QueryEditorGroupByExpressionType = "groupBy"
)
Defines values for QueryEditorGroupByExpressionType.
type QueryEditorOperator ¶
type QueryEditorOperator struct { Name *string `json:"name,omitempty"` Value *interface{} `json:"value,omitempty"` }
TS type is QueryEditorOperator<T extends QueryEditorOperatorValueType>, extended in veneer
type QueryEditorOperatorExpression ¶
type QueryEditorOperatorExpression struct { // TS type is operator: QueryEditorOperator<QueryEditorOperatorValueType>, extended in veneer Operator struct { Name *string `json:"name,omitempty"` Value *interface{} `json:"value,omitempty"` } `json:"operator"` Property struct { Name *string `json:"name,omitempty"` Type QueryEditorOperatorExpressionPropertyType `json:"type"` } `json:"property"` Type QueryEditorOperatorExpressionType `json:"type"` }
QueryEditorOperatorExpression defines model for QueryEditorOperatorExpression.
type QueryEditorOperatorExpressionPropertyType ¶
type QueryEditorOperatorExpressionPropertyType string
QueryEditorOperatorExpressionPropertyType defines model for QueryEditorOperatorExpression.Property.Type.
const (
QueryEditorOperatorExpressionPropertyTypeString QueryEditorOperatorExpressionPropertyType = "string"
)
Defines values for QueryEditorOperatorExpressionPropertyType.
type QueryEditorOperatorExpressionType ¶
type QueryEditorOperatorExpressionType string
QueryEditorOperatorExpressionType defines model for QueryEditorOperatorExpression.Type.
const (
QueryEditorOperatorExpressionTypeOperator QueryEditorOperatorExpressionType = "operator"
)
Defines values for QueryEditorOperatorExpressionType.
type QueryEditorProperty ¶
type QueryEditorProperty struct { Name *string `json:"name,omitempty"` Type QueryEditorPropertyType `json:"type"` }
QueryEditorProperty defines model for QueryEditorProperty.
type QueryEditorPropertyExpression ¶
type QueryEditorPropertyExpression struct { Property struct { Name *string `json:"name,omitempty"` Type QueryEditorPropertyExpressionPropertyType `json:"type"` } `json:"property"` Type QueryEditorPropertyExpressionType `json:"type"` }
QueryEditorPropertyExpression defines model for QueryEditorPropertyExpression.
type QueryEditorPropertyExpressionPropertyType ¶
type QueryEditorPropertyExpressionPropertyType string
QueryEditorPropertyExpressionPropertyType defines model for QueryEditorPropertyExpression.Property.Type.
const (
QueryEditorPropertyExpressionPropertyTypeString QueryEditorPropertyExpressionPropertyType = "string"
)
Defines values for QueryEditorPropertyExpressionPropertyType.
type QueryEditorPropertyExpressionType ¶
type QueryEditorPropertyExpressionType string
QueryEditorPropertyExpressionType defines model for QueryEditorPropertyExpression.Type.
const (
QueryEditorPropertyExpressionTypeProperty QueryEditorPropertyExpressionType = "property"
)
Defines values for QueryEditorPropertyExpressionType.
type QueryEditorPropertyType ¶
type QueryEditorPropertyType string
QueryEditorPropertyType defines model for QueryEditorProperty.Type.
const (
QueryEditorPropertyTypeString QueryEditorPropertyType = "string"
)
Defines values for QueryEditorPropertyType.
type SQLExpression ¶
type SQLExpression struct { From *SQLExpressionFrom `json:"from,omitempty"` GroupBy *struct { // TS type expressions: QueryEditorExpression[] | QueryEditorArrayExpression[], extended in veneer Expressions interface{} `json:"expressions"` // TODO this doesn't work; temporarily extended in veneer Type SQLExpressionGroupByType `json:"type"` } `json:"groupBy,omitempty"` Limit *int64 `json:"limit,omitempty"` OrderBy *struct { Name *string `json:"name,omitempty"` Parameters []struct { Name *string `json:"name,omitempty"` Type SQLExpressionOrderByParametersType `json:"type"` } `json:"parameters,omitempty"` Type SQLExpressionOrderByType `json:"type"` } `json:"orderBy,omitempty"` OrderByDirection *string `json:"orderByDirection,omitempty"` Select *struct { Name *string `json:"name,omitempty"` Parameters []struct { Name *string `json:"name,omitempty"` Type SQLExpressionSelectParametersType `json:"type"` } `json:"parameters,omitempty"` Type SQLExpressionSelectType `json:"type"` } `json:"select,omitempty"` Where *struct { // TS type expressions: QueryEditorExpression[] | QueryEditorArrayExpression[], extended in veneer Expressions interface{} `json:"expressions"` // TODO this doesn't work; temporarily extended in veneer Type SQLExpressionWhereType `json:"type"` } `json:"where,omitempty"` }
SQLExpression defines model for SQLExpression.
type SQLExpressionFrom ¶
type SQLExpressionFrom struct { Name *string `json:"name,omitempty"` Parameters []struct { Name *string `json:"name,omitempty"` Type SQLExpressionFromParametersType `json:"type"` } `json:"parameters,omitempty"` Property *struct { Name *string `json:"name,omitempty"` Type SQLExpressionFromPropertyType `json:"type"` } `json:"property,omitempty"` Type *interface{} `json:"type,omitempty"` // contains filtered or unexported fields }
SQLExpressionFrom defines model for SQLExpression.From.
type SQLExpressionFromParametersType ¶
type SQLExpressionFromParametersType string
SQLExpressionFromParametersType defines model for SQLExpression.From.Parameters.Type.
const (
SQLExpressionFromParametersTypeFunctionParameter SQLExpressionFromParametersType = "functionParameter"
)
Defines values for SQLExpressionFromParametersType.
type SQLExpressionFromPropertyType ¶
type SQLExpressionFromPropertyType string
SQLExpressionFromPropertyType defines model for SQLExpression.From.Property.Type.
const (
SQLExpressionFromPropertyTypeString SQLExpressionFromPropertyType = "string"
)
Defines values for SQLExpressionFromPropertyType.
type SQLExpressionGroupByType ¶
type SQLExpressionGroupByType string
TODO this doesn't work; temporarily extended in veneer
const ( SQLExpressionGroupByTypeAnd SQLExpressionGroupByType = "and" SQLExpressionGroupByTypeOr SQLExpressionGroupByType = "or" )
Defines values for SQLExpressionGroupByType.
type SQLExpressionOrderByParametersType ¶
type SQLExpressionOrderByParametersType string
SQLExpressionOrderByParametersType defines model for SQLExpression.OrderBy.Parameters.Type.
const (
SQLExpressionOrderByParametersTypeFunctionParameter SQLExpressionOrderByParametersType = "functionParameter"
)
Defines values for SQLExpressionOrderByParametersType.
type SQLExpressionOrderByType ¶
type SQLExpressionOrderByType string
SQLExpressionOrderByType defines model for SQLExpression.OrderBy.Type.
const (
SQLExpressionOrderByTypeFunction SQLExpressionOrderByType = "function"
)
Defines values for SQLExpressionOrderByType.
type SQLExpressionSelectParametersType ¶
type SQLExpressionSelectParametersType string
SQLExpressionSelectParametersType defines model for SQLExpression.Select.Parameters.Type.
const (
SQLExpressionSelectParametersTypeFunctionParameter SQLExpressionSelectParametersType = "functionParameter"
)
Defines values for SQLExpressionSelectParametersType.
type SQLExpressionSelectType ¶
type SQLExpressionSelectType string
SQLExpressionSelectType defines model for SQLExpression.Select.Type.
const (
SQLExpressionSelectTypeFunction SQLExpressionSelectType = "function"
)
Defines values for SQLExpressionSelectType.
type SQLExpressionWhereType ¶
type SQLExpressionWhereType string
TODO this doesn't work; temporarily extended in veneer
const ( SQLExpressionWhereTypeAnd SQLExpressionWhereType = "and" SQLExpressionWhereTypeOr SQLExpressionWhereType = "or" )
Defines values for SQLExpressionWhereType.