Documentation ¶
Index ¶
- type AgentLocationCreateSuccessResponse
- type AgentLocationDeleteSuccessResponse
- type AgentLocationUpdateSuccessResponse
- type AliasCreationSuccessResponse
- type AliasDeleteSuccessResponse
- type AliasUpdateSuccessResponse
- type AppContext
- type AuthToken
- type AuthTokenCreateSuccessfulResponse
- type AuthTokenDeleteSuccessfulResponse
- type AuthTokenList
- type AuthTokenUpdateSuccessfulResponse
- type AuthTypeList
- type CallElement
- type CorrelationMap
- type DashBoardElement
- type DashboardElementList
- type DataHeader
- type DatabasesMap
- type GetExternalUser
- type GetUser
- type GlobalSettingsCreateSuccessfulResponse
- type GlobalSettingsDeleteSuccessfulResponse
- type GlobalSettingsStructList
- type GlobalSettingsUpdateSuccessfulResponse
- type GrafanaFolders
- type GrafanaObject
- type GrafanaOrg
- type GrafanaPoint
- type GrafanaResponse
- type GrafanaResponseValue
- type GrafanaSearch
- type GrafanaUrl
- type HTTPAUTHResp
- type HepTable
- type HepsubCreateSuccessResponse
- type HepsubDeleteSuccessResponse
- type HepsubSchemaList
- type HepsubUpdateSuccessResponse
- type InfluxDatabasesMeasurements
- type InfluxDatabasesPolices
- type KeyContext
- type Label
- type ListLabels
- type MappingCreateSuccessResponse
- type MappingDeleteSuccessResponse
- type MappingSchemaList
- type MappingSmart
- type MappingUpdateSuccessResponse
- type Message
- type MessageDecoded
- type Node
- type NodeList
- type OAuth2MapToken
- type OAuth2TokenExchange
- type PCAPResponse
- type PrometheusObject
- type PrometheusPoint
- type PrometheusResponse
- type PrometheusResponseValue
- type ProtocolHeader
- type RemoteLabels
- type RemoteObject
- type RemotePoint
- type RemoteResponse
- type RemoteResponseData
- type RemoteValues
- type SearchCallData
- type SearchObject
- type SearchTransaction
- type SearchTransactionLog
- type SearchTransactionLogList
- type SearchTransactionQos
- type SearchTransactionRequest
- type SearchTransactionRtcp
- type SearchTransactionRtcpList
- type SearchTransactionRtp
- type SearchTransactionRtpList
- type SecondData
- type SmartSearchField
- type SmartSearchFieldList
- type StatisticDb
- type StatisticObject
- type StatisticPoint
- type StatisticResponse
- type StatisticRetentions
- type StatisticSearchObject
- type SuccessfulResponse
- type TableAgentLocationSession
- type TableAgentLocationSessionList
- type TableAlias
- type TableAliasList
- type TableApplications
- type TableAuthToken
- type TableGlobalSettings
- type TableHepsubSchema
- type TableMappingSchema
- type TableRawData
- type TableUser
- type TableUserSettings
- type TableVersions
- type TextResponse
- type TransactionResponse
- type UserCreateSuccessfulResponse
- type UserDeleteSuccessfulResponse
- type UserObjectToken
- type UserProfile
- type UserSetting
- type UserSettingCreateSuccessfulResponse
- type UserSettingDeleteSuccessfulResponse
- type UserSettingList
- type UserSettingUpdateSuccessfulResponse
- type UserTokenBadResponse
- type UserTokenSuccessfulResponse
- type UserUpdateSuccessfulResponse
- type UserloginDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentLocationCreateSuccessResponse ¶
type AgentLocationCreateSuccessResponse struct { // example: 4b855914-ca3d-4562-8563-f2b660fe2636 Data string `json:"data"` // example: successfully created AgentLocation settings Message string `json:"message"` }
swagger:model AgentLocationCreateSuccessResponse
type AgentLocationDeleteSuccessResponse ¶
type AgentLocationDeleteSuccessResponse struct { // example: 4b855914-ca3d-4562-8563-f2b660fe2636 Data string `json:"data"` // example: successfully deleted AgentLocation settings Message string `json:"message"` }
swagger:model AgentLocationDeleteSuccessResponse
type AgentLocationUpdateSuccessResponse ¶
type AgentLocationUpdateSuccessResponse struct { // example: 4b855914-ca3d-4562-8563-f2b660fe2636 Data string `json:"data"` // example: successfully updated AgentLocation settings Message string `json:"message"` }
swagger:model AgentLocationUpdateSuccessResponse
type AliasCreationSuccessResponse ¶
type AliasCreationSuccessResponse struct { // example: f2d0a540-bf21-4c0d-ac73-8696ea10855a Data string `json:"data"` // example: successfully created alias Message string `json:"message"` }
swagger:model AliasCreationSuccessResponse
type AliasDeleteSuccessResponse ¶
type AliasDeleteSuccessResponse struct { // example: f2d0a540-bf21-4c0d-ac73-8696ea10855a Data string `json:"data"` // example: successfully deleted alias Message string `json:"message"` }
swagger:model AliasDeleteSuccessResponse
type AliasUpdateSuccessResponse ¶
type AliasUpdateSuccessResponse struct { // example: f2d0a540-bf21-4c0d-ac73-8696ea10855a Data string `json:"data"` // example: successfully updated alias Message string `json:"message"` }
swagger:model AliasUpdateSuccessResponse
type AppContext ¶
type AuthToken ¶
type AuthToken struct { Count int `json:"count"` Data []struct { // example: 9e4afbd5-7453-415d-b2d4-181057afbfe5" GUID string `json:"guid"` // example: ced47b64-ae93-417b-9e1b-8dd1b1410807 CreatorGUID string `json:"creator_guid"` // example: JGoolsby-Api Name string `json:"name"` UserObject struct { // example: JGoolsby Username string `json:"username"` // example: James Firstname string `json:"firstname"` // example:Goolsby Lastname string `json:"lastname"` // example: JGoolsby@example.com Email string `json:"email"` // example: admin Usergroup string `json:"usergroup"` // example: 1000 ID int `json:"id"` // example: 10 Partid int `json:"partid"` } `json:"user_object"` // example: IPAddress string `json:"ip_address"` // example: 2021-10-01T17:36:21.80063Z CreateDate string `json:"create_date"` // example: 2021-10-08T17:36:21.80063Z LastusageDate string `json:"lastusage_date"` // example: 2021-10-09T17:36:21.80063Z ExpireDate string `json:"expire_date"` // example: 1 UsageCalls int `json:"usage_calls"` // example: 1000 LimitCalls int `json:"limit_calls"` // example: true Active bool `json:"active"` } `json:"data"` }
swagger:model AuthToken
type AuthTokenCreateSuccessfulResponse ¶
type AuthTokenCreateSuccessfulResponse struct { Data struct { // example: xeCbhpWTrjvJTsTvhTdDXHyXnKTFNecRndhXTiXvDCtdmpeFyvWGxsufJzwyyEXrxuqdAZlTaVmbufdG Token string `json:"token"` } `json:"data"` // example: successfully created auth token Message string `json:"message"` }
swagger:model AuthTokenCreateSuccessfulResponse
type AuthTokenDeleteSuccessfulResponse ¶
type AuthTokenDeleteSuccessfulResponse struct { // example: f4e2953e-ab42-40df-a7de-9ceb7faca396 Data string `json:"data"` // example: successfully deleted authtoken Message string `json:"message"` }
swagger:model AuthTokenDeleteSuccessfulResponse
type AuthTokenList ¶
swagger:model AuthTokenList
type AuthTokenUpdateSuccessfulResponse ¶
type AuthTokenUpdateSuccessfulResponse struct { // example: f4e2953e-ab42-40df-a7de-9ceb7faca396 Data string `json:"data"` // example: successfully updated authtoken Message string `json:"message"` }
swagger:model AuthTokenUpdateSuccessfulResponse
type AuthTypeList ¶
type AuthTypeList struct { Count int `json:"count"` Data map[string]struct { Internal struct { // example: true Enable bool `json:"enable"` // example: internal Name string `json:"name"` // example: 1 Position int `json:"position"` // example: internal Type string `json:"type"` } `json:"internal"` Oauth2 []struct { // example: true Enable bool `json:"enable"` // example: Google OAuth Name string `json:"name"` // example: 2 Position int `json:"position"` // example: https://lh3.googleusercontent.com/j2SG2D_31o6aFxudKxHoXpTbMZIfA8afeRbxAM-PH9jFJPbj20YN0RUOSiikGWInnMP68lSmWG7j8qM-FGq6Y3bdSBPIwyPe7wPF=w96-rj-sc0xf8f9fa ProviderImage string `json:"provider_image"` // example: Google ProviderName string `json:"provider_name"` // example: oauth Type string `json:"type"` // example: /api/v3/oauth2/redirect/google URL string `json:"url"` // example: false EnableAutoRedirect bool `json:"auto_redirect"` } `json:"oauth2"` } `json:"data"` Message string `json:"message"` }
type CallElement ¶
type CallElement struct { // example: 5162 ID float64 `json:"id"` // example: wvn6zg@127.0.0.1 Sid string `json:"sid"` // example: 179.12.245.132 DstHost string `json:"dstHost"` // example: 18.12.245.132 SrcHost string `json:"srcHost"` // example: 179.12.245.132:5060 DstID string `json:"dstId"` // example: 18.12.245.132:5060 SrcID string `json:"srcId"` // example: 18.12.245.132 SrcIP string `json:"srcIp"` // example: 179.12.245.132 DstIP string `json:"dstIp"` // example: 5060 SrcPort float64 `json:"srcPort"` // example: Client AliasSrc string `json:"aliasSrc"` // example: Support AliasDst string `json:"aliasDst"` // example: 5060 DstPort float64 `json:"dstPort"` // example: INVITE Method string `json:"method"` // example: INVITE MethodText string `json:"method_text"` // example: 1633374982350 CreateDate int64 `json:"create_date"` // example: 17 Protocol float64 `json:"protocol"` // example: blue MsgColor string `json:"msg_color"` Table string `json:"table"` // example: INVITE sip:155@example.com;user=phone SIP/2.0\r\n RuriUser string `json:"ruri_user"` // example: 1 Destination int `json:"destination"` // example: 1633374982350 MicroTs int64 `json:"micro_ts"` }
type CorrelationMap ¶
type DashBoardElement ¶
type DashBoardElement struct { // example: fa CssClass string `json:"cssclass"` // example: _1631547759877 Href string `json:"href"` // example: _1631547759877 Id string `json:"id"` // example: admin Owner string `json:"owner"` // example: Search Name string `json:"name"` // example: search Param string `json:"param"` Shared bool `json:"shared"` // example: 1 Type int `json:"type"` // example: 10 Weight float64 `json:"weight"` }
swagger:model DashboardElement
type DashboardElementList ¶
type DashboardElementList struct { // example: ok Auth string `json:"auth"` // example: ok Status string `json:"status"` Data []DashBoardElement `json:"data"` // example: 1 Total int `json:"total"` }
swagger:model DashboardElementList
type DataHeader ¶
type DataHeader struct { Callid string `json:"callid"` Method string `json:"method"` ToTag string `json:"to_tag"` ToUser string `json:"to_user"` FromTag string `json:"from_tag"` PidUser string `json:"pid_user"` AuthUser string `json:"auth_user"` FromUser string `json:"from_user"` RuriUser string `json:"ruri_user"` UserAgent string `json:"user_agent"` RuriDomain string `json:"ruri_domain"` }
type DatabasesMap ¶
type GetExternalUser ¶
type GetExternalUser struct { // count Count int `json:"count"` // the data Data []TableUser `json:"data"` }
swagger:model ListExternalUsers
type GetUser ¶
type GetUser struct { // count Count int `json:"count"` // the data Data []*TableUser `json:"data"` }
swagger:model ListUsers
type GlobalSettingsCreateSuccessfulResponse ¶
type GlobalSettingsCreateSuccessfulResponse struct { // example: af72057b-2745-0a1b-b674-56586aadec57 Data string `json:"data"` // example: successfully created GlobalSetting Message string `json:"message"` }
swagger:model GlobalSettingsCreateSuccessfulResponse
type GlobalSettingsDeleteSuccessfulResponse ¶
type GlobalSettingsDeleteSuccessfulResponse struct { // example: af72057b-2745-0a1b-b674-56586aadec57 Data string `json:"data"` // example: successfully deleted GlobalSetting Message string `json:"message"` }
swagger:model GlobalSettingsDeleteSuccessfulResponse
type GlobalSettingsStructList ¶
type GlobalSettingsStructList struct { Count int `json:"count"` Data []TableGlobalSettings `json:"data"` }
swagger:model GlobalSettingsStructList
type GlobalSettingsUpdateSuccessfulResponse ¶
type GlobalSettingsUpdateSuccessfulResponse struct { // example: af72057b-2745-0a1b-b674-56586aadec57 Data string `json:"data"` // example: successfully updated GlobalSetting Message string `json:"message"` }
swagger:model GlobalSettingsUpdateSuccessfulResponse
type GrafanaFolders ¶
type GrafanaFolders []struct { // example: 79 ID int `json:"id"` // example: false IsStarred bool `json:"isStarred"` // example: Slug string `json:"slug"` // example: 0 SortMeta int `json:"sortMeta"` // example: Tags []interface{} `json:"tags"` // example: Alerts Title string `json:"title"` // example: dash-folder Type string `json:"type"` // example: _tTJl1sMk UID string `json:"uid"` // example: db/alerts URI string `json:"uri"` // example: /grafana/dashboards/f/_tTJl1sMk/alerts URL string `json:"url"` }
swagger:model GrafanaFolders
type GrafanaObject ¶
type GrafanaObject struct { Param struct { Limit int `json:"limit"` Search string `json:"search"` Server string `json:"server"` Timezone json.RawMessage `json:"timezone"` } `json:"param"` Timestamp struct { From int64 `json:"from"` To int64 `json:"to"` } `json:"timestamp"` }
swagger:model GrafanaObject
type GrafanaOrg ¶
type GrafanaOrg struct { Address struct { // example: 148 East Saxton Lane Address1 string `json:"address1"` // example: apt 6 Address2 string `json:"address2"` // example: New Hyde Park City string `json:"city"` // example: USA Country string `json:"country"` // example: NY State string `json:"state"` // example: 11040 ZipCode string `json:"zipCode"` } `json:"address"` // example: 1 ID int `json:"id"` // example: Expo Superstore Name string `json:"name"` }
swagger:model GrafanaOrg
type GrafanaPoint ¶
type GrafanaPoint struct { Attemps int `json:"attemps"` Partid int `json:"partid"` Group int `json:"group"` Id int `json:"id"` Reporttime int64 `json:"reporttime"` Table string `json:"table"` Tag1 string `json:"tag1"` Transaction string `json:"transaction"` Countername string `json:"countername"` Value float64 `json:"value"` }
Salutation : here you tell us what Salutation is Printer : what is this? Greet : describe what this function does CreateMessage : describe what this function does
type GrafanaResponse ¶
type GrafanaResponse struct { Total int `json:"total"` D json.RawMessage `json:"data"` }
type GrafanaResponseValue ¶
type GrafanaResponseValue struct { Dashboard struct { Annotations struct { List []struct { BuiltIn int `json:"builtIn"` Datasource string `json:"datasource"` Enable bool `json:"enable"` Hide bool `json:"hide"` IconColor string `json:"iconColor"` Name string `json:"name"` Type string `json:"type"` } `json:"list"` } `json:"annotations"` Editable bool `json:"editable"` GnetID interface{} `json:"gnetId"` GraphTooltip int `json:"graphTooltip"` ID int `json:"id"` Links []interface{} `json:"links"` Panels []struct { AliasColors struct { } `json:"aliasColors"` Bars bool `json:"bars"` DashLength int `json:"dashLength"` Dashes bool `json:"dashes"` Datasource string `json:"datasource"` FieldConfig struct { Defaults struct { Custom struct { } `json:"custom"` } `json:"defaults"` Overrides []interface{} `json:"overrides"` } `json:"fieldConfig"` Fill int `json:"fill"` FillGradient int `json:"fillGradient"` GridPos struct { H int `json:"h"` W int `json:"w"` X int `json:"x"` Y int `json:"y"` } `json:"gridPos"` HiddenSeries bool `json:"hiddenSeries"` ID int `json:"id"` Legend struct { Avg bool `json:"avg"` Current bool `json:"current"` Max bool `json:"max"` Min bool `json:"min"` Show bool `json:"show"` Total bool `json:"total"` Values bool `json:"values"` } `json:"legend"` Lines bool `json:"lines"` Linewidth int `json:"linewidth"` NullPointMode string `json:"nullPointMode"` Options struct { AlertThreshold bool `json:"alertThreshold"` } `json:"options"` Percentage bool `json:"percentage"` PluginVersion string `json:"pluginVersion"` Pointradius int `json:"pointradius"` Points bool `json:"points"` Renderer string `json:"renderer"` SeriesOverrides []interface{} `json:"seriesOverrides"` SpaceLength int `json:"spaceLength"` Stack bool `json:"stack"` SteppedLine bool `json:"steppedLine"` Targets []struct { DateTimeType string `json:"dateTimeType"` Extrapolate bool `json:"extrapolate"` Format string `json:"format"` FormattedQuery string `json:"formattedQuery"` IntervalFactor int `json:"intervalFactor"` Query string `json:"query"` RawQuery string `json:"rawQuery"` RefID string `json:"refId"` Round string `json:"round"` SkipComments bool `json:"skip_comments"` } `json:"targets"` Thresholds []interface{} `json:"thresholds"` TimeFrom interface{} `json:"timeFrom"` TimeRegions []interface{} `json:"timeRegions"` TimeShift interface{} `json:"timeShift"` Title string `json:"title"` Tooltip struct { Shared bool `json:"shared"` Sort int `json:"sort"` ValueType string `json:"value_type"` } `json:"tooltip"` Type string `json:"type"` Xaxis struct { Buckets interface{} `json:"buckets"` Mode string `json:"mode"` Name interface{} `json:"name"` Show bool `json:"show"` Values []interface{} `json:"values"` } `json:"xaxis"` Yaxes []struct { Format string `json:"format"` Label interface{} `json:"label"` LogBase int `json:"logBase"` Max interface{} `json:"max"` Min interface{} `json:"min"` Show bool `json:"show"` } `json:"yaxes"` Yaxis struct { Align bool `json:"align"` AlignLevel interface{} `json:"alignLevel"` } `json:"yaxis"` } `json:"panels"` Refresh bool `json:"refresh"` SchemaVersion int `json:"schemaVersion"` Style string `json:"style"` Tags []interface{} `json:"tags"` Templating struct { List []interface{} `json:"list"` } `json:"templating"` Time struct { From string `json:"from"` To string `json:"to"` } `json:"time"` Timepicker struct { } `json:"timepicker"` Timezone string `json:"timezone"` Title string `json:"title"` UID string `json:"uid"` Version int `json:"version"` } `json:"dashboard"` Meta struct { CanAdmin bool `json:"canAdmin"` CanEdit bool `json:"canEdit"` CanSave bool `json:"canSave"` CanStar bool `json:"canStar"` Created string `json:"created"` CreatedBy string `json:"createdBy"` Expires string `json:"expires"` FolderID int `json:"folderId"` FolderTitle string `json:"folderTitle"` FolderUID string `json:"folderUid"` FolderURL string `json:"folderUrl"` HasACL bool `json:"hasAcl"` IsFolder bool `json:"isFolder"` Provisioned bool `json:"provisioned"` ProvisionedExternalID string `json:"provisionedExternalId"` Slug string `json:"slug"` Type string `json:"type"` Updated string `json:"updated"` UpdatedBy string `json:"updatedBy"` URL string `json:"url"` Version int `json:"version"` } `json:"meta"` }
swagger:model GrafanaResponseValue
type GrafanaSearch ¶
type GrafanaSearch []struct { FolderID int `json:"folderId"` FolderTitle string `json:"folderTitle"` FolderUID string `json:"folderUid"` FolderURL string `json:"folderUrl"` ID int `json:"id"` IsStarred bool `json:"isStarred"` Slug string `json:"slug"` SortMeta int `json:"sortMeta"` Tags []interface{} `json:"tags"` Title string `json:"title"` Type string `json:"type"` UID string `json:"uid"` URI string `json:"uri"` URL string `json:"url"` }
swagger:model GrafanaSearch
type GrafanaUrl ¶
type GrafanaUrl struct { // example: localhost:3000 Data string `json:"data"` }
swagger:model GrafanaUrl
type HTTPAUTHResp ¶
type HepTable ¶
type HepTable struct { Id int `json:"id"` Sid string `json:"sid"` CreatedDate time.Time `gorm:"column:create_date" json:"create_date"` ProtocolHeader json.RawMessage `gorm:"column:protocol_header" json:"protocol_header"` DataHeader json.RawMessage `gorm:"column:data_header" json:"data_header"` Raw string `gorm:"column:raw" json:"raw"` DBNode string `gorm:"column:-" json:"dbnode"` Node string `gorm:"column:-" json:"node"` Profile string `gorm:"column:-" json:"profile"` }
type HepsubCreateSuccessResponse ¶
type HepsubCreateSuccessResponse struct { // example: 4b855914-ca3d-4562-8563-f2b660fe2636 Data string `json:"data"` // example: successfully created hepsub settings Message string `json:"message"` }
swagger:model HepsubCreateSuccessResponse
type HepsubDeleteSuccessResponse ¶
type HepsubDeleteSuccessResponse struct { // example: 4b855914-ca3d-4562-8563-f2b660fe2636 Data string `json:"data"` // example: successfully deleted hepsub settings Message string `json:"message"` }
swagger:model HepsubDeleteSuccessResponse
type HepsubSchemaList ¶
type HepsubSchemaList struct { Data []TableHepsubSchema `json:"data"` // example: Count int `json:"count"` }
swagger:model HepsubSchemaList
type HepsubUpdateSuccessResponse ¶
type HepsubUpdateSuccessResponse struct { // example: 4b855914-ca3d-4562-8563-f2b660fe2636 Data string `json:"data"` // example: successfully updated hepsub settings Message string `json:"message"` }
swagger:model HepsubUpdateSuccessResponse
type InfluxDatabasesMeasurements ¶
type InfluxDatabasesMeasurements struct {
Name string `json:"name"`
}
type InfluxDatabasesPolices ¶
type InfluxDatabasesPolices struct {
Name string `json:"name"`
}
type KeyContext ¶
type KeyContext struct { echo.Context TokenObject TableAuthToken `json:"token"` UserName string `json:"username"` UserGroup string `json:"usergroup"` UserAdmin bool `json:"admin"` AuthKey string `json:"auth-key"` Auth bool `json:"auth"` }
swagger:model KeyContext
type Label ¶
type Label []struct { // example: localhost:9090 Instance string `json:"instance"` // example: prometheus Job string `json:"job"` Version string `json:"version"` // example: go_routines Name string `json:"__name__"` }
swagger:model Label
type MappingCreateSuccessResponse ¶
type MappingCreateSuccessResponse struct { // example: 4b855914-ca3d-4562-8563-f2b660fe2636 Data string `json:"data"` // example: successfully created mapping settings Message string `json:"message"` }
swagger:model MappingCreateSuccessResponse
type MappingDeleteSuccessResponse ¶
type MappingDeleteSuccessResponse struct { // example: 4b855914-ca3d-4562-8563-f2b660fe2636 Data string `json:"data"` // example: successfully deleted mapping settings Message string `json:"message"` }
swagger:model MappingDeleteSuccessResponse
type MappingSchemaList ¶
type MappingSchemaList struct { // example: 1 Count int `json:"count"` Data []TableMappingSchema `json:"data"` }
swagger:model MappingSchemaList
type MappingSmart ¶
type MappingUpdateSuccessResponse ¶
type MappingUpdateSuccessResponse struct { // example: 4b855914-ca3d-4562-8563-f2b660fe2636 Data string `json:"data"` // example: successfully updated mapping settings Message string `json:"message"` }
swagger:model MappingUpdateSuccessResponse
type Message ¶
type Message struct { Id int `json:"id"` Sid string `json:"sid"` ProtoH ProtocolHeader `json:"protocol_header"` DataH DataHeader `json:"data_header"` Raw string `json:"raw"` }
type MessageDecoded ¶
type MessageDecoded struct { Data []struct { Decoded []struct { Source struct { Layers struct { Eth struct { // example: 06:3d:20:12:10:20 Dst string `json:"eth.dst"` Dst_tree struct { // example: 06:3d:20:12:10:20 Add string `json:"eth.addr"` // example: 06:3d:20:12:10:20 Addr_resolved string `json:"eth.addr_resolved"` // example: 06:3d:20:12:10:20 Dst_resolved string `json:"eth.dst_resolved"` // example: 0 Ig string `json:"eth.ig"` // example: 1 Lg string `json:"eth.lg"` } `json:"eth.dst_tree"` // example: 02:5d:69:74:20:12 Src string `json:"eth.src"` Src_tree struct { // example: 02:5d:69:74:20:12 Addr string `json:"eth.addr"` // example: 02:5d:69:74:20:12 Addr_resolved string `json:"eth.addr_resolved"` // example: 0 Ig string `json:"eth.ig"` // example: 1 Lg string `json:"eth.lg"` // example: 02:5d:69:74:20:12 Src_resolved string `json:"src_resolved"` } `json:"eth.src_tree"` // example:"0x00000800" Type string `json:"eth.type"` } `json:"eth"` Frame struct { // example: 1058 Cap_len string `json:"frame.cap_len"` // example: 1 Encap_type string `json:"frame.encap_type"` // example: 0 Ignored string `json:"frame.ignored"` // example: 0 Interface_id string `json:"frame.interface_id"` // example: Interface_id_tree struct { // example: - Interface_name string `json:"frame.interface_name"` } `json:"frame.interface_id_tree"` // example: 1058 Len string `json:"frame.len"` // example: 0 Marked string `json:"frame.marked"` // example: 1 Number string `json:"frame.number"` // example: 0.000000000 Offset_shift string `json:"frame.offset_shift"` // example: eth:ethertype:ip:udp:sip:sdp Protocols string `json:"frame.protocols"` // example: Sep 30, 2021 07:06:10.950000000 UTC Time string `json:"frame.time"` // example: 0.000000000 Time_delta string `json:"frame.time_delta"` // example: 0.000000000 Time_delta_displayed string `json:"frame.time_delta_displayed"` // example: 1632985570.950000000 Time_epoch string `json:"frame.time_epoch"` // example: 0.000000000 Time_relative string `json:"frame.time_relative"` } `json:"frame"` Ip struct { // example: 0x0000ffa5 Checksum string `json:"ip.checksum"` // example: 0x0000ffa5 Dsfield string `json:"ip.dsfield"` Dsfield_tree struct { // example: 0 Dscp string `json:"ip.dsfield_tree.dscp"` // example: 0 Ecn string `json:"ip.dsfield_tree.ecn"` } `json:"ip.dsfield_tree"` // example: 127.0.0.1 Dst string `json:"ip.dst"` // example: 127.0.0.1 Dst_host string `json:"ip.dst_host"` // example: 0x00000000 Flags string `json:"ip.flags"` Flags_tree struct { // example: 0 Df string `json:"ip.flags_tree.df"` // example: 0 Mf string `json:"ip.flags_tree.mf"` // example: 0 Rb string `json:"ip.flags_tree.rb"` } `json:"ip.flags_tree"` // example: 0 Frag_offset string `json:"ip.frag_offset"` // example: 20 Hdr_len string `json:"ip.hdr_len"` // example: 127.0.0.1 Host string `json:"ip.host"` // example: 127.0.0.1 Src string `json:"ip.src"` // example: 127.0.0.1 Src_host string `json:"ip.src_host"` // example: 0x00000000 Id string `json:"ip.id"` // example: 2 ChceksumStatus string `json:"ip.checksum.status"` // example: 1044 Len string `json:"ip.len"` // example: 17 Proto string `json:"ip.proto"` // example: 54 Ttl string `json:"ip.ttl"` // example: 4 Version string `json:"ip.version"` } `json:"ip"` Sip struct { // example: INVITE sip:196@example.com;user=phone SIP/2.0 Request_line string `json:"sip.Request-line"` Request_line_tree struct { //example: INVITE Method string `json:"sip.Method"` //example: sip:196@example.com;user=phone Ruri string `json:"sip.r-uri"` Ruri_tree struct { //example: example.com Host string `json:"sip.r-uri.host"` //example: 196 User string `json:"sip.r-uri.user"` } `json:"sip.Request-line_tree"` //example: 0 Resend string `json:"sip.resend"` } `json:"sip.Request-line_tree"` Msg_body struct { //example: "IN IP4 192.168.10.193" Connection_info string `json:"sdp.connection_info"` Connection_info_tree struct { // example: 192.168.10.193 Address string `json:"sdp.connection_info.address"` // example: IP4 Address_type string `json:"sdp.connection_info.address_type"` // example: IN Network_type string `json:"sdp.connection_info.network_type"` } `json:"sip.connection_info_tree"` // example: audio 5004 RTP/AVP 0 8 9 18 101 Media string `json:"sdp.media"` // example: fmtp:101 0-15 Media_attr string `json:"sdp.media_attr"` Media_attr_tree struct { // example: 0-15 Parameter string `json:"sdp.fmtp.parameter"` // example: 101 Format string `json:"sdp.media.format"` // example: fmtp Field string `json:"sdp.media_attribute.field"` } `json:"sdp.media_attr_tree"` Media_tree struct { // example: DynamicRTP-Type-101 Fromat string `json:"sdp.media.format"` // example: audio Media string `json:"sdp.media.media"` // example: 5004 Port string `json:"sdp.media.port"` // example: 5004 Port_string string `json:"sdp.media.port_string"` // example: RTP/AVP Proto string `json:"sdp.media.proto"` } `json:"sdp.media_tree"` // example: hepgenjs 8000 8000 IN IP4 192.168.10.193 Owner string `json:"sdp.owner"` Owner_tree struct { // example: 192.168.10.193 Address string `json:"sdp.owner.address"` // example: IP4 Address_type string `json:"sdp.owner.address_type"` // example: IN Network_type string `json:"sdp.owner.network_type"` // example: 8000 SessionID string `json:"sdp.owner.sessionid"` // example: hepgenjs Username string `json:"sdp.owner.username"` // example: 8000 Version string `json:"sdp.owner.version"` } `json:"sdp.owner_tree"` // example: "SIP Call" Session_name string `json:"sdp.session_name"` // example: "0 0" Time string `json:"sdp.time"` Time_tree struct { // example: 0 Start string `json:"sdp.time.start"` // example: 0 Stop string `json:"sdp.time.stop"` } `json:"sdp.time_tree"` // example: 0 Version string `json:"sdp.version"` } `json:"sip.msg_body"` // example: "Via: SIP/2.0/UDP 192.168.10.193:5064;branch=z9hG4bK923381359;rport\r\nFrom: <sip:hepgenjs@example.com;user=phone>;tag=415746302\r\nTo: <sip:196@example.com;user=phone>\r\nCall-ID: a6xh18@127.0.0.1\r\nCSeq: 440 INVITE\r\nContact: <sip:hepgenjs@192.168.10.193:5064;user=phone>\r\nMax-Forwards: 70\r\nUser-Agent: HEPGEN.JS@example.com\r\nPrivacy: none\r\nP-Preferred-Identity: <sip:hepgenjs@example.com;user=phone>\r\nSupported: replaces, path, timer, eventlist\r\nAllow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE\r\nContent-Type: application/sdp\r\nAccept: application/sdp, application/dtmf-relay\r\nContent-Length: 313\r\n\r\nv=0\r\no=hepgenjs 8000 8000 IN IP4 192.168.10.193\r\ns=SIP Call\r\nc=IN IP4 192.168.10.193\r\nt=0 0\r\nm=audio 5004 RTP/AVP 0 8 9 18 101\r\na=sendrecv\r\na=rtpmap:0 PCMU/8000\r\na=ptime:20\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:18 G729/8000\r\na=fmtp:18 annexb=no\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-15\r\n\r\n\r\n" Msg_hdr string `json:"sip.msg_hdr"` RMsg_hdr_tree struct { } `json:"sip.msg_hdr_tree"` } `json:"sip"` Udp struct { // example: 0x0000ffa5 Checksum string `json:"udp.checksum"` // example: 2 ChceksumStatus string `json:"udp.checksum.status"` // example: 5060 Dstport string `json:"udp.dstport"` // example: 1024 Length string `json:"udp.length"` // example: 5060 Port string `json:"udp.port"` // example: 5060 Srcport string `json:"udp.srcport"` // example: 0 Stream string `json:"udp.stream"` } `json:"udp"` } `json:"_layers"` } `json:"_source"` // example: pcap_file Type string `json:"_type"` // contains filtered or unexported fields } `json:"decoded"` } `json:"data"` }
type Node ¶
type Node struct { // example: false Arhive bool `json:"arhive"` // example: hepic_archive Db_archive string `json:"db_archive"` // example: hepic_data Db_name string `json:"db_name"` // example: 148.251.238.121 Host string `json:"host"` // example: DE7 Node Name string `json:"name"` // example: "" Node string `json:"node"` // example: true Online bool `json:"online"` // example: false Primary bool `json:"primary"` Table_prefix string `json:"table_prefix"` // example: de7node Value string `json:"value"` }
swagger:model Node
type OAuth2MapToken ¶
type OAuth2MapToken struct { AccessToken string `json:"access_token"` DataJson json.RawMessage `json:"datajson"` CreateDate time.Time `json:"create_date"` ExpireDate time.Time `json:"expire_date"` Oauth2Token *oauth2.Token `json:"-"` ProfileJson json.RawMessage `json:"profile_json"` }
swagger:model OAuth2MapToken
type OAuth2TokenExchange ¶
type OAuth2TokenExchange struct { // example: token // required: true OneTimeToken string `json:"token" validate:"required"` }
swagger:model OAuth2TokenExchange
type PCAPResponse ¶
type PrometheusObject ¶
type PrometheusObject struct { Param struct { // example:500 Limit int `json:"limit"` // example: 3600 Precision int `json:"precision"` // example: ["go_goroutines"] Metrics []string `json:"metrics"` // false Total bool `json:"total"` } `json:"param"` Timestamp struct { From int64 `json:"from"` To int64 `json:"to"` } `json:"timestamp"` }
swagger:model PrometheusObject
type PrometheusPoint ¶
type PrometheusPoint struct { Attemps int `json:"attemps"` Partid int `json:"partid"` Group int `json:"group"` Id int `json:"id"` Reporttime int64 `json:"reporttime"` Table string `json:"table"` Tag1 string `json:"tag1"` Transaction string `json:"transaction"` Countername string `json:"countername"` Value float64 `json:"value"` }
Salutation : here you tell us what Salutation is Printer : what is this? Greet : describe what this function does CreateMessage : describe what this function does
type PrometheusResponse ¶
type PrometheusResponse struct { Total int `json:"total"` D json.RawMessage `json:"data"` }
type PrometheusResponseValue ¶
type PrometheusResponseValue struct { Success string `json:"success"` Data struct { // example: matrix ResultType string `json:"resultType"` Result []struct { Metric struct { // example: go_routines Name string `json:"__name__"` // example: localhost:9090 Instance string `json:"instance"` // example: prometheus Job string `json:"job"` } `json:"metric"` Values [][]interface{} `json:"values"` } `json:"result"` } `json:"data"` }
swagger:model PrometheusResponse
type ProtocolHeader ¶
type ProtocolHeader struct { DstIP string `json:"dstIp"` SrcIP string `json:"srcIp"` DstPort int `json:"dstPort"` SrcPort int `json:"srcPort"` Protocol int `json:"protocol"` CaptureID int `json:"captureId"` CapturePass string `json:"capturePass"` PayloadType int `json:"payloadType"` TimeSeconds int `json:"timeSeconds"` TimeUseconds int `json:"timeUseconds"` ProtocolFamily int `json:"protocolFamily"` }
type RemoteObject ¶
type RemoteObject struct { Param struct { // example: 100 Limit int `json:"limit"` // example: {type="call"} Search string `json:"search"` // example: http://localhost:3100 Server string `json:"server"` Timezone json.RawMessage `json:"timezone"` } `json:"param"` Timestamp struct { From int64 `json:"from"` To int64 `json:"to"` } `json:"timestamp"` }
swagger:model RemoteObject
type RemotePoint ¶
type RemotePoint struct { Attemps int `json:"attemps"` Partid int `json:"partid"` Group int `json:"group"` Id int `json:"id"` Reporttime int64 `json:"reporttime"` Table string `json:"table"` Tag1 string `json:"tag1"` Transaction string `json:"transaction"` Countername string `json:"countername"` Value float64 `json:"value"` }
Salutation : here you tell us what Salutation is Printer : what is this? Greet : describe what this function does CreateMessage : describe what this function does
type RemoteResponse ¶
type RemoteResponse struct { Total int `json:"total"` D json.RawMessage `json:"data"` }
type RemoteResponseData ¶
type RemoteResponseData struct { Data []struct { // example: Custom1 string `json:"custom_1"` // example: {"duration":"0","from_user":"1201","ruri_user":"102110112384797001",status":"8","type":"call"} Custom2 string `json:"custom_2"` // example: 1 ID int `json:"id"` // example: 1634081796154 MicroTs int `json:"micro_ts"` } }
type SearchCallData ¶
type SearchCallData struct { Data []CallElement `json:"data"` // example: ["callid", "srcIp", "srcPort"] Keys []string `json:"keys"` // example: 45 Total int `json:"total"` }
type SearchObject ¶
type SearchObject struct { // required: true Param struct { Transaction struct { } `json:"transaction"` // this controls the number of records to display // example: 200 // required: true Limit int `json:"limit"` // this control the type of search one can perform // type: string // format: binary // example: `{"1_call":[{"name":"limit","value":"10","type":"string","hepid":1}]}` Search json.RawMessage `json:"search"` // this control the type of search one can perform // type: boolean // example: false OrLogic bool `json:"orlogic"` // ips to be removed from search // required: false // type: array // items: // type: string // example: ["192.168.10.20"] WhiteList []string `json:"whitelist"` // location // required: false // type: object Location struct { Node []string `json:"node"` } `json:"location"` // timezone settings // type: object // default: null Timezone struct { Value int `json:"value"` Name string `json:"name"` } `json:"timezone"` } `json:"param"` // this control the time range for used for search Timestamp struct { // current timestamp in milliseconds // required :true // example: 1581793200000 From int64 `json:"from"` // current timestamp in milliseconds // required :true // example: 1581879599000 To int64 `json:"to"` } `json:"timestamp"` }
swagger:model SearchObject
type SearchTransaction ¶
type SearchTransaction struct { Data struct { // example: {127.0.0.1: localhost, 100.20.15.1: party1} Alias map[string]string `json:"alias"` Calldata []CallElement `json:"calldata"` } `json:"data"` // example: ["callid", "srcIp", "srcPort"] Keys []string `json:"keys"` Total int `json:"total"` }
type SearchTransactionLog ¶
type SearchTransactionLog struct { // example: "2001" CaptureID string `json:"captureId"` // example: myHep CapturePass string `json:"capturePass"` // example: wvn6zg@127.0.0.1 Correlation_id string `json:"correlation_id"` // example: 021-10-04T19:16:22.699Z Create_date string `json:"create_date"` // example: localnode Dbnode string `json:"dbnode"` // example: 127.0.0.1 DstIP string `json:"dstIp"` // example: 127.0.0.1 SrcIP string `json:"srcIp"` // example: 5060 DstPort float64 `json:"dstPort"` // example: 5080 SrcPort float64 `json:"srcPort"` // example: 1030 ID float64 `json:"id"` // example: 100 PayloadType int `json:"payloadType"` Profile string `json:"profile"` // example: log Proto string `json:"proto"` // example: 17 Protocol int `json:"protocol"` // example: 2 ProtocolFamily int `json:"protocolFamily"` Raw string `json:"raw"` // example: wvn6zg@127.0.0.1 Sid string `json:"sid"` // example: 1633374982 TimeSeconds int `json:"timeSeconds"` // example: 699000 TimeUseconds int `json:"timeUseconds"` // example: ["2001", "localnode"] Node []string `json:"node"` }
swagger:model SearchTransactionLog
type SearchTransactionLogList ¶
type SearchTransactionLogList struct {
Data []SearchTransactionLog `json:"data"`
}
type SearchTransactionQos ¶
type SearchTransactionQos struct { Rtcp SearchTransactionRtcpList `json:"rtcp"` Rtp SearchTransactionRtpList `json:"rtp"` }
type SearchTransactionRequest ¶
type SearchTransactionRequest struct { Config struct { Protocol_id struct { // example: SIP Name string `json:"name"` // example: 1 Value int `json:"value"` } `json:"protocol_id"` Protocol_profile struct { // example: call Name string `json:"name"` // example: call Value string `json:"value"` } `json:"protocol_profile"` } `json:"config"` // required: true Param struct { Transaction struct { } `json:"transaction"` // this controls the number of records to display // example: 200 // required: true Limit int `json:"limit"` // this control the type of search one can perform // type: string // format: binary // example: `{"1_call":[{"name":"limit","value":"10","type":"string","hepid":1}]}` Search json.RawMessage `json:"search"` // this control the type of search one can perform // type: boolean // example: false OrLogic bool `json:"orlogic"` // ips to be removed from search // required: false // type: array // items: // type: string // example: ["192.1698.10.20"] WhiteList []string `json:"whitelist"` // location // required: false // type: object Location struct { Node []string `json:"node"` } `json:"location"` // timezone settings // type: object // default: null Timezone struct { Value int `json:"value"` Name string `json:"name"` } `json:"timezone"` } `json:"param"` // this control the time range for used for search Timestamp struct { // current timestamp in miliseconds // required :true // example: 1581793200000 From int64 `json:"from"` // current timestamp in miliseconds // required :true // example: 1581879599000 To int64 `json:"to"` } `json:"timestamp"` }
type SearchTransactionRtcp ¶
type SearchTransactionRtcp struct { // example: "2001" CaptureID string `json:"captureId"` // example: myHep CapturePass string `json:"capturePass"` // example: wvn6zg@127.0.0.1 Correlation_id string `json:"correlation_id"` // example: 021-10-04T19:16:22.699Z Create_date string `json:"create_date"` // example: localnode Dbnode string `json:"dbnode"` // example: 127.0.0.1 DstIP string `json:"dstIp"` // example: 127.0.0.1 SrcIP string `json:"srcIp"` // example: 5060 DstPort float64 `json:"dstPort"` // example: 5080 SrcPort float64 `json:"srcPort"` // example: 1030 ID float64 `json:"id"` // example: 100 PayloadType int `json:"payloadType"` Profile string `json:"profile"` // example: log Proto string `json:"proto"` // example: 17 Protocol int `json:"protocol"` // example: 2 ProtocolFamily int `json:"protocolFamily"` Raw string `json:"raw"` // example: wvn6zg@127.0.0.1 Sid string `json:"sid"` // example: 1633374982 TimeSeconds int `json:"timeSeconds"` // example: 699000 TimeUseconds int `json:"timeUseconds"` // example: ["2001", "localnode"] Node []string `json:"node"` }
swagger:model SearchTransactionRtcp
type SearchTransactionRtcpList ¶
type SearchTransactionRtcpList struct {
Data []SearchTransactionRtcp `json:"data"`
}
type SearchTransactionRtp ¶
type SearchTransactionRtp struct { // example: 2001 CaptureID string `json:"captureId"` // example: myHep CapturePass string `json:"capturePass"` // example: wvn6zg@127.0.0.1 Correlation_id string `json:"correlation_id"` // example: 021-10-04T19:16:22.699Z Create_date string `json:"create_date"` // example: localnode Dbnode string `json:"dbnode"` // example: 127.0.0.1 DstIP string `json:"dstIp"` // example: 127.0.0.1 SrcIP string `json:"srcIp"` // example: 5060 DstPort float64 `json:"dstPort"` // example: 5080 SrcPort float64 `json:"srcPort"` // example: 1030 ID float64 `json:"id"` // example: 100 PayloadType int `json:"payloadType"` Profile string `json:"profile"` // example: log Proto string `json:"proto"` // example: 17 Protocol int `json:"protocol"` // example: 2 ProtocolFamily int `json:"protocolFamily"` Raw string `json:"raw"` // example: wvn6zg@127.0.0.1 Sid string `json:"sid"` // example: 1633374982 TimeSeconds int `json:"timeSeconds"` // example: 699000 TimeUseconds int `json:"timeUseconds"` // example: ["2001", "localnode"] Node []string `json:"node"` }
swagger:model SearchTransactionRtp
type SearchTransactionRtpList ¶
type SearchTransactionRtpList struct {
Data []SearchTransactionRtp `json:"data"`
}
type SecondData ¶
type SecondData struct {
Messages []Message `json:"messages"`
}
type SmartSearchField ¶
type SmartSearchField struct { // example: sip Category string `json:"category"` // example: callid Name string `json:"name"` // example: sip.callid Value string `json:"value"` }
swagger:model SmartSearchField
type SmartSearchFieldList ¶
type SmartSearchFieldList struct { Data struct { Data []SmartSearchField `json:"data"` } `json:"data"` }
swagger:model SmartSearchFieldList
type StatisticDb ¶
type StatisticDb struct { Data struct { Results []struct { Series []struct { // example: databases Name string `json:"name"` // example: ["name"] Columns []string `json:"columns"` // example: [["telegraf"], ["_internal"], ["homer"]] Values [][]string `json:"values"` } `json:"Series"` Messages interface{} `json:"Messages"` } `json:"Results"` } `json:"data"` // example: ok Status string `json:"status"` // example: 1 Total int `json:"total"` }
swagger:model StatisticDb
type StatisticObject ¶
type StatisticObject struct { Param struct { Limit int `json:"limit"` Precision int `json:"precision"` Query []struct { Main string `json:"main"` Database string `json:"database"` Retention string `json:"retention"` Rawquery string `json:"rawquery"` Type []string `json:"type"` Tag []string `json:"tag"` } `json:"query"` Bfrom int `json:"bfrom"` Total bool `json:"total"` } `json:"param"` Timestamp struct { From int64 `json:"from"` To int64 `json:"to"` } `json:"timestamp"` }
swagger:model StatisticObject
type StatisticPoint ¶
type StatisticPoint struct { Attemps int `json:"attemps"` Partid int `json:"partid"` Group int `json:"group"` Id int `json:"id"` Reporttime int64 `json:"reporttime"` Table string `json:"table"` Tag1 string `json:"tag1"` Transaction string `json:"transaction"` Countername string `json:"countername"` Value float64 `json:"value"` }
type StatisticResponse ¶
type StatisticResponse struct { Total int `json:"total"` D json.RawMessage `json:"data"` }
type StatisticRetentions ¶
type StatisticRetentions struct { Data struct { Results []struct { Series []struct { // example: ["name", "duration", "shardGroupDuration", "replicaN", "default"] Columns []string `json:"columns"` // example: [["autogen", "0s", "168h0m0s", 1, true]] Values [][]interface{} `json:"values"` } `json:"Series"` Messages interface{} `json:"Messages"` } `json:"Results"` } `json:"data"` // example: ok Status string `json:"status"` // example: 1 Total int `json:"total"` }
swagger:model StatisticRetentions
type StatisticSearchObject ¶
type StatisticSearchObject struct { Param struct { Limit int `json:"limit"` Precision int `json:"precision"` Search struct { Database string `json:"database"` } `json:"search"` Bfrom int `json:"bfrom"` Total bool `json:"total"` } `json:"param"` Timestamp struct { From int64 `json:"from"` To int64 `json:"to"` } `json:"timestamp"` }
swagger:model StatisticSearchObject
type SuccessfulResponse ¶
type SuccessfulResponse struct { // count elements in data // // required: true Count int `json:"count"` // data in JSON format // type: object // required: true Data json.RawMessage `json:"data"` // the message for user // // required: true Message string `json:"message"` }
swagger:model SuccessResponse
type TableAgentLocationSession ¶
type TableAgentLocationSession struct { ID int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"` GUID string `gorm:"column:guid;type:uuid" json:"uuid" validate:"required"` Gid int `gorm:"column:gid;type:int" json:"gid" validate:"required"` Host string `gorm:"column:host;type:varchar(250);default:'127.0.0.1'" json:"host" validate:"required"` Port int `gorm:"column:port;type:int;default:8080" json:"port"` Protocol string `gorm:"column:protocol;type:varchar(50);default:'log'" json:"protocol"` Path string `gorm:"column:path;type:varchar(250);default:'/api/search'" json:"path"` Node string `gorm:"column:node;type:varchar(100);default:'testnode'" json:"node"` Type string `gorm:"column:type;type:varchar(200);default:'type'" json:"type"` TTL int `gorm:"-" json:"ttl"` CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"create_date"` ExpireDate time.Time `gorm:"column:expire_date;not null" json:"expire_date"` Active int `gorm:"column:active;type:int;default:1" json:"active"` }
swagger:model AgentsLocation
func (TableAgentLocationSession) TableName ¶
func (TableAgentLocationSession) TableName() string
type TableAgentLocationSessionList ¶
type TableAgentLocationSessionList struct {
Data []TableAgentLocationSession `json:"data"`
}
swagger:model AgentsLocationList
type TableAlias ¶
type TableAlias struct { Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"` GUID string `gorm:"column:guid;type:uuid" json:"guid"` // alias name // example: verizon // required: true Alias string `gorm:"column:alias;type:varchar(250)" json:"alias" validate:"required"` // example: 192.168.10.20 // required: true IP string `gorm:"column:ip;type:varchar(60)" json:"ip" validate:"required,ip"` // example: 5060 // required: true Port *int `gorm:"column:port;type:int;default:0" json:"port" validate:"required,numeric"` // example: 32 // required: true Mask *int `gorm:"column:mask;type:int" json:"mask" validate:"required,numeric"` // example: 0 // required: true CaptureID string `gorm:"column:captureID;type:varchar(20)" json:"captureID" validate:"required"` Status *bool `gorm:"column:status;type:bool" json:"status" validate:"required"` CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"-"` }
swagger:model AliasStruct
func (TableAlias) TableName ¶
func (TableAlias) TableName() string
type TableAliasList ¶
type TableAliasList struct {
Data []TableAlias `json:"data"`
}
swagger:model AliasStructList
type TableApplications ¶
type TableApplications struct { ID int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"` GUID string `gorm:"column:guid;type:uuid" json:"guid" validate:"required"` NameApplication string `gorm:"column:name;type:varchar(50);unique_index:idx_name_host;not null" json:"application_name" validate:"required"` HostApplication string `gorm:"column:host;type:varchar(100);unique_index:idx_name_host;not null" json:"application_host" validate:"required"` VersionApplication string `gorm:"column:version;type:varchar(100);not null" json:"application_version" validate:"required"` CreatedAt time.Time `gorm:"column:created_at;default:current_timestamp;not null" json:"-"` }
table app
type TableAuthToken ¶
type TableAuthToken struct { ID int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"` GUID string `gorm:"column:guid;type:uuid" json:"guid"` UserGUID string `gorm:"column:creator_guid;type:uuid" json:"creator_guid"` Name string `gorm:"column:name;type:varchar(100)" json:"name" validate:"required"` Token string `gorm:"column:token;type:varchar(250)" json:"-"` UserObject json.RawMessage `gorm:"column:user_object;type:json" json:"user_object"` IPAddress string `gorm:"column:ip_address;type:inet" json:"ip_address"` CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"create_date"` LastUsageDate time.Time `gorm:"column:lastusage_date;not null" json:"lastusage_date"` ExpireDate time.Time `gorm:"column:expire_date;not null" json:"expire_date" validate:"required"` UsageCalls int `gorm:"column:usage_calls;type:int;default:1" json:"usage_calls"` LimitCalls int `gorm:"column:limit_calls;type:int;default:1000" json:"limit_calls"` Active *bool `gorm:"column:active;type:bool" json:"active" validate:"required"` }
swagger:model AuthToken
func (TableAuthToken) TableName ¶
func (TableAuthToken) TableName() string
type TableGlobalSettings ¶
type TableGlobalSettings struct { Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"` // should be a unique value representing GlobalSettings // example: e71771a2-1ea0-498f-8d27-391713e10664 // required: true GUID string `gorm:"column:guid;type:uuid" json:"guid" validate:"required"` // example: 1 // required: true PartId int `gorm:"column:partid;type:int;not null" json:"partid" validate:"required"` // example: profile // required: true Category string `gorm:"column:category;type:varchar(100);not null" json:"category" validate:"required"` CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"-"` // example: homer // required: true Param string `gorm:"column:param;type:varchar(100);not null" json:"param" validate:"required"` Data json.RawMessage `gorm:"column:data;type:json" json:"data"` }
swagger:model GlobalSettingsStruct
func (TableGlobalSettings) TableName ¶
func (TableGlobalSettings) TableName() string
type TableHepsubSchema ¶
type TableHepsubSchema struct { ID int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"` // example: 4b855914-ca3d-4562-8563-f2b660fe2636 GUID string `gorm:"column:guid;type:uuid" json:"guid" validate:"required"` // example: call Profile string `gorm:"column:profile;type:varchar(100)" json:"profile" validate:"required"` // example: 1 Hepid int `gorm:"column:hepid;type:varchar(250)" json:"hepid" validate:"required"` // example: SIP HepAlias string `gorm:"column:hep_alias;type:varchar(250)" json:"hep_alias" validate:"required"` // example: 1603221345489 Version int `gorm:"column:version;type:varchar(50)" json:"version" validate:"required"` Mapping json.RawMessage `gorm:"column:mapping" json:"mapping" validate:"required"` // example: 2020-10-20T21:15:45+02:00 CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"-"` }
swagger:model HepsubSchema
func (TableHepsubSchema) TableName ¶
func (TableHepsubSchema) TableName() string
type TableMappingSchema ¶
type TableMappingSchema struct { ID int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"` // example:a006a250-c261-4052-b1c2-6cb85ed580c2 GUID string `gorm:"column:guid;type:uuid" json:"guid"` // example: call Profile string `gorm:"column:profile;type:varchar(100);not null" json:"profile" validate:"required"` // example: 1 Hepid int `gorm:"column:hepid;type:int;not null" json:"hepid" validate:"required"` // example: SIP HepAlias string `gorm:"column:hep_alias;type:varchar(100)" json:"hep_alias"` // example: 10 PartID int `gorm:"column:partid;type:int;int:10;not null" json:"partid" validate:"required"` // example: 1 Version int `gorm:"column:version;type:int;not null" json:"version" validate:"required"` // example: 10 Retention int `gorm:"column:retention;type:int;not null" json:"retention" validate:"required"` // example: 10 PartitionStep int `gorm:"column:partition_step;int;not null" json:"partition_step" validate:"required"` CreateIndex json.RawMessage `gorm:"column:create_index;default:'{}';type:json" json:"create_index"` // example: CREATE TABLE test(id integer, data text); CreateTable string `gorm:"column:create_table;default:'CREATE TABLE';type:text" json:"create_table"` CorrelationMapping json.RawMessage `gorm:"column:correlation_mapping;default:'{}';type:json" json:"correlation_mapping"` FieldsMapping json.RawMessage `gorm:"column:fields_mapping;default:'{}';type:json" json:"fields_mapping"` MappingSettings json.RawMessage `gorm:"column:mapping_settings;default:'{}';type:json" json:"fields_settings"` SchemaMapping json.RawMessage `gorm:"column:schema_mapping;default:'{}';type:json" json:"schema_mapping"` SchemaSettings json.RawMessage `gorm:"column:schema_settings;default:'{}';type:json" json:"schema_settings"` CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"-"` }
swagger:model MappingSchema
func (TableMappingSchema) TableName ¶
func (TableMappingSchema) TableName() string
type TableRawData ¶
type TableRawData struct { Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"` // should be a unique value representing user // example: e71771a2-1ea0-498f-8d27-391713e10664 // required: true SID string `gorm:"column:sid;type:varchar" json:"sid" validate:"required"` //Create data CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"create_date"` //protocol_header ProtocolHeader json.RawMessage `gorm:"column:protocol_header;type:jsonb;not null" json:"protocol_header"` //data_header DataHeader json.RawMessage `gorm:"column:data_header;type:jsonb;not null" json:"data_header"` //raw Raw json.RawMessage `gorm:"column:raw;type:jsonb;not null" json:"raw"` }
swagger:model TableRtpStatsV2
func (TableRawData) TableName ¶
func (TableRawData) TableName() string
type TableUser ¶
type TableUser struct { Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"` // required: true UserName string `gorm:"column:username;type:varchar(100);unique_index:idx_username;not null" json:"username" validate:"required"` // example: 10 // required: true PartId int `gorm:"column:partid;type:int;default:10;not null" json:"partid"` // required: true Email string `gorm:"column:email;type:varchar(250);not null" json:"email" validate:"required,email"` // required: true Password string `gorm:"-" json:"password"` Enabled bool `gorm:"column:enabled;type:bool;default:true" json:"enabled"` FirstName string `gorm:"column:firstname;type:varchar(50);not null" json:"firstname" validate:"required"` // required: true LastName string `gorm:"column:lastname;type:varchar(50);not null" json:"lastname"` // required: true // example: NOC Department string `gorm:"column:department;type:varchar(50);not null" json:"department" validate:"required"` // required: true // example: admin UserGroup string `gorm:"column:usergroup;type:varchar(250);not null" json:"usergroup" validate:"required"` IsAdmin bool `gorm:"-" json:"-"` ExternalAuth bool `gorm:"-" json:"-"` Hash string `gorm:"column:hash;type:varchar(128);not null" json:"-"` // should be a unique value representing user // example: e71771a2-1ea0-498f-8d27-391713e10664 // required: true GUID string `gorm:"column:guid;type:varchar(50);not null" json:"guid" validate:"required"` CreatedAt time.Time `gorm:"column:created_at;default:current_timestamp;not null" json:"-"` ExternalProfile string `gorm:"-" json:"-"` Avatar string `gorm:"-" json:"-"` }
swagger:model CreateUserStruct
type TableUserSettings ¶
type TableUserSettings struct { Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"` // should be a unique value representing user // example: e71771a2-1ea0-498f-8d27-391713e10664 // required: true GUID string `gorm:"column:guid;type:uuid" json:"guid" validate:"required"` // required: true UserName string `gorm:"column:username;type:varchar(100);not null" json:"username" validate:"required"` // example: 10 // required: true PartId int `gorm:"column:partid;type:int;not null" json:"partid" validate:"required"` // example: profile // required: true Category string `gorm:"column:category;type:varchar(100);not null" json:"category" validate:"required"` CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"-"` // example: homer // required: true Param string `gorm:"column:param;type:varchar(100);not null" json:"param" validate:"required"` Data json.RawMessage `gorm:"column:data;type:json" json:"data"` // external IsExternal bool `gorm:"-" json:"external"` }
swagger:model UserSettings
func (TableUserSettings) TableName ¶
func (TableUserSettings) TableName() string
type TableVersions ¶
type TableVersions struct { Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"` // required: true NameTable string `gorm:"column:table_name;type:varchar(50);not null" json:"table_name" validate:"required"` // example: 10 VersionTable int `gorm:"column:table_version;type:int;default:10;not null" json:"table_version" validate:"required"` CreatedAt time.Time `gorm:"column:created_at;default:current_timestamp;not null" json:"-"` }
func (TableVersions) TableName ¶
func (TableVersions) TableName() string
type TextResponse ¶
type TransactionResponse ¶
type TransactionResponse struct { Total int `json:"total"` D SecondData `json:"data"` }
type UserCreateSuccessfulResponse ¶
type UserCreateSuccessfulResponse struct { // example: af72057b-2745-0a1b-b674-56586aadec57 Data string `json:"data"` // example: successfully created user Message string `json:"message"` }
swagger:model UserCreateSuccessResponse
type UserDeleteSuccessfulResponse ¶
type UserDeleteSuccessfulResponse struct { // example: af72057b-2745-0a1b-b674-56586aadec57 Data string `json:"data"` // example: successfully deleted user Message string `json:"message"` }
swagger:model UserDeleteSuccessResponse
type UserObjectToken ¶
type UserObjectToken struct { UserName string `default:"test" json:"username"` FirstName string `default:"Tester" json:"firstname"` Lastname string `default:"Tester" json:"lastname"` Email string `default:"tester@test.com" json:"email"` Usergroup string `default:"user" json:"usergroup"` ID uint32 `default:"1000" json:"id"` PartID uint32 `default:"10" json:"partid"` }
swagger:model UserObjectToken
type UserProfile ¶
type UserProfile struct { // example: dashboard GUID string `json:"guid"` UserName string `json:"username"` DisplayName string `json:"displayname"` Avatar string `json:"avatar"` UserGroup string `json:"group"` UserAdmin bool `json:"admin"` ExternalAuth bool `json:"external_auth"` ExternalProfile string `json:"external_profile"` }
swagger:model UserProfile
type UserSetting ¶
type UserSetting struct { // example: dashboard Category string `json:"category"` Data DashBoardElement `json:"data,omitempty"` // example: 1868f318-5f16-4c40-ab1e-bfa4f417ff61 GUID string `json:"guid"` // example: 59 ID int `json:"id"` // example:_1633964934444 Param string `json:"param"` // example: 10 Partid int `json:"partid"` // example: admin Username string `json:"username"` }
swagger:model UserSetting
type UserSettingCreateSuccessfulResponse ¶
type UserSettingCreateSuccessfulResponse struct { // example: f4e2953e-ab42-40df-a7de-9ceb7faca396 Data string `json:"data"` // example: successfully created userObject Message string `json:"message"` }
swagger:model UserSettingCreateSuccessfulResponse
type UserSettingDeleteSuccessfulResponse ¶
type UserSettingDeleteSuccessfulResponse struct { // example: f4e2953e-ab42-40df-a7de-9ceb7faca396 Data string `json:"data"` // example: successfully deleted userObject Message string `json:"message"` }
swagger:model UserSettingDeleteSuccessfulResponse
type UserSettingList ¶
type UserSettingList struct { Data []UserSetting `json:"data"` // example: 7 Count int `json:"count"` }
swagger:model UserSettingList
type UserSettingUpdateSuccessfulResponse ¶
type UserSettingUpdateSuccessfulResponse struct { // example: f4e2953e-ab42-40df-a7de-9ceb7faca396 Data string `json:"data"` // example: successfully updated userObject" Message string `json:"message"` }
swagger:model UserSettingUpdateSuccessfulResponse
type UserTokenBadResponse ¶
type UserTokenBadResponse struct { // statuscode StatusCode int `json:"statuscode"` // errot Error string `json:"error"` // message Message string `json:"message"` }
swagger:model FailureResponse
type UserTokenSuccessfulResponse ¶
type UserTokenSuccessfulResponse struct { // the token // example: JWT Token Token string `json:"token"` // the uuid // example: b9f6q23a-0bde-41ce-cd36-da3dbc17ea12 Scope string `json:"scope"` // the uuid User struct { Admin bool `json:"admin"` } `json:"user"` }
swagger:model UserLoginSuccessResponse
type UserUpdateSuccessfulResponse ¶
type UserUpdateSuccessfulResponse struct { // example: af72057b-2745-0a1b-b674-56586aadec57 Data string `json:"data"` // example: successfully updated user Message string `json:"message"` }
swagger:model UserUpdateSuccessResponse
type UserloginDetails ¶
type UserloginDetails struct { // example: admin // required: true Username string `json:"username" validate:"required"` // example: sipcapture // required: true Password string `json:"password" validate:"required"` }
swagger:model UserLogin