Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
// swagger:allOf
rest.BasicResource `yaml:",inline"`
// Alert name
Name string `json:",omitempty" yaml:"Name"`
// Alert description
Description string `json:",omitempty" yaml:"Description"`
// Gremlin or JavaScript expression evaluated to trigger the alarm
Expression string `json:",omitempty" valid:"nonzero" yaml:"Expression"`
// Action to execute when the alert is triggered.
// Can be either an empty string, or a URL (use 'file://' for local scripts)
Action string `json:",omitempty" valid:"regexp=^(|http://|https://|file://).*$" yaml:"Action"`
// Event that triggers the alert evaluation
Trigger string `json:",omitempty" valid:"regexp=^(graph|duration:.+|)$" yaml:"Trigger"`
CreateTime time.Time
}
Alert object
Alerts provide a way to be notified when a Gremlin expression is evaluated to true.
easyjson:json swagger:model Alert
type TopologyParams ¶
type TopologyParams struct {
GremlinQuery string `json:"GremlinQuery,omitempty" valid:"isGremlinExpr" yaml:"GremlinQuery"`
}
TopologyParams topology query parameters easyjson:json swagger:model
type Workflow ¶
type Workflow struct {
// swagger:allOf
rest.BasicResource `yaml:",inline"`
// Workflow name
Name string `yaml:"Name" valid:"nonzero"`
// Workflow title
Title string `yaml:"Title"`
// Workflow abstract
Abstract string `yaml:"Abstract"`
// Workflow description
Description string `yaml:"Description"`
// Workflow parameters
Parameters []WorkflowParam `yaml:"Parameters"`
Source string `valid:"isValidWorkflow" yaml:"Source"`
}
Workflow object
Workflow allows to automate actions using JavaScript.
easyjson:json swagger:model
type WorkflowCall ¶
type WorkflowCall struct {
Params []interface{}
}
WorkflowCall describes workflow call swagger:model
type WorkflowChoice ¶
WorkflowChoice describes one value within a choice easyjson:json swagger:model
type WorkflowParam ¶
type WorkflowParam struct {
Name string `yaml:"Name"`
Description string `yaml:"Description"`
Type string `yaml:"Type"`
Default interface{} `yaml:"Default"`
Values []WorkflowChoice `yaml:"Values"`
}
WorkflowParam describes a workflow parameter easyjson:json swagger:model
Click to show internal directories.
Click to hide internal directories.