aiot

package
v1.0.98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRegion          = "cn-north-1"
	ServiceVersion20210101 = "2021-01-01"
	ServiceName            = "aiotvideo"
)
View Source
const (
	CascadeStatusCreated        = "created"         // 初始状态
	CascadeStatusStopped        = "stopped"         // 已停用
	CascadeStatusTryingRegister = "trying_register" // 尝试注册中
	CascadeStatusRegistered     = "registered"      // 注册成功
	CascadeStatusRegisterFail   = "register_fail"   // 注册失败
)
View Source
const (
	DeviceStatusOnline          = "online"
	DeviceStatusOffline         = "offline"
	DeviceStatusUnregistered    = "unregistered"
	DeviceStatusInvalidPassword = "invalid_password"
	DeviceStatusChannelUpdate   = "channel_update"
)
View Source
const (
	PTZControl    = "PTZControl"
	FiControl     = "FiControl"
	PresetControl = "PresetControl"
)

CloudControl - Action type

View Source
const (
	PtzCmdStop      = "stop"
	PtzCmdRight     = "right"
	PtzCmdLeft      = "left"
	PtzCmdDown      = "down"
	PtzCmdUp        = "up"
	PtzCmdRightUp   = "rightup"
	PtzCmdRightDown = "rightdown"
	PtzCmdLeftUp    = "leftup"
	PtzCmdLeftDown  = "leftdown"
	PtzCmdZoomIn    = "zoomin"
	PtzCmdZoomOut   = "zoomout"
)

CloudControl - PTZ控制 cmd type

View Source
const (
	FiCmdStop      = "stop"
	FiCmdFocusFar  = "focusfar"
	FiCmdFocusNear = "focusnear"
	FiCmdIrisIn    = "irisin"
	FiCmdIrisOut   = "irisout"
)

CloudControl - 光圈控制 cmd type

View Source
const (
	PresetCmdSet    = "set"
	PresetCmdGoto   = "goto"
	PresetCmdRemove = "remove"
)

CloudControl - 预置位控制 cmd type

View Source
const (
	CruiseCmdAdd         = "add"
	CruiseCmdRemove      = "remove"
	CruiseCmdSetSpeed    = "setspeed"
	CruiseCmdSetStayTime = "setstay"
	CruiseCmdStart       = "start"
	CruiseCmdStop        = "stop"
)

CloudControl - 巡航控制 cmd type

Variables

View Source
var (
	ServiceInfo = &base.ServiceInfo{
		Timeout: 30 * time.Second,
		Host:    "open.volcengineapi.com",
		Header: http.Header{
			"Accept": []string{"application/json"},
		},
	}
	ApiInfoList = map[string]*base.ApiInfo{}/* 209 elements not displayed */

)
View Source
var DefaultInstance = NewInstance()

DefaultInstance 默认的实例

Functions

This section is empty.

Types

type AIAnalysisResponse

type AIAnalysisResponse struct {
	SegInformation []*SegInfo `json:"SegInformation"`
	OriUrl         string     `json:"Url"`
	Time           int64      `json:"Time"`
}

type AITemplate

type AITemplate struct {
	CapabilitySet []string                  `json:"CapabilitySet"`
	TemplateItems map[string]AITemplateItem `json:"TemplateItems"`
	ImageTTL      int                       `json:"ImageTTL"`
	Path          string                    `json:"-"`
	Bucket        TemplateBucketConfig      `json:"-"`
}

type AITemplateItem

type AITemplateItem struct {
	CapabilityType      string                 `json:"CapabilityType"`
	ConfidenceThreshold float64                `json:"ConfidenceThreshold"`
	FrameInterval       int                    `json:"FrameInterval"`
	Extra               map[string]interface{} `json:"Extra"`
	Status              bool                   `json:"Status"`
	GrabStrategy        string                 `json:"GrabStrategy"`
	EnableTimes         EnableTimes            `json:"EnableTimes"`
}

type AIoT

type AIoT struct {
	Client *base.Client

	CostCallback func(api string, cost int64, query url.Values, payload string) //todo 用于api调用耗时测试,正式使用需要删除
	// contains filtered or unexported fields
}

IAM .

func NewInstance

func NewInstance() *AIoT

NewInstance 创建一个实例

func (*AIoT) AddGroupTreeNode

func (p *AIoT) AddGroupTreeNode(request *AddGroupTreeNodeRequest) (*AddGroupTreeNodeResponse, int, error)

func (*AIoT) AddRequestInterceptor

func (p *AIoT) AddRequestInterceptor(interceptor QueryInterceptorFunc)

func (*AIoT) AddSpaceDomain

func (p *AIoT) AddSpaceDomain(request *AddSpaceDomainRequest) (*SpaceResponse, int, error)

func (*AIoT) BatchDeleteCascadePlatform

func (p *AIoT) BatchDeleteCascadePlatform(request *BatchDeleteCascadePlatformRequest) (*RawResponse, int, error)

func (*AIoT) BatchDeleteCascadeTask

func (p *AIoT) BatchDeleteCascadeTask(request *BatchDeleteCascadeTaskRequest) (*RawResponse, int, error)

func (*AIoT) BatchDeleteSlowLive

func (p *AIoT) BatchDeleteSlowLive(request *BatchDeleteSlowLiveRequest) (*RawResponse, int, error)

func (*AIoT) BindCert

func (p *AIoT) BindCert(request *BindCertRequest) (*RawResponse, int, error)

func (*AIoT) BindDeviceToGroupTreeNode

func (p *AIoT) BindDeviceToGroupTreeNode(request *UpdateGroupTreeNodeRequest) (*RawResponse, int, error)

func (*AIoT) CancelBindTemplate

func (p *AIoT) CancelBindTemplate(request *CancelBindTemplateRequest) (*RawResponse, int, error)

func (*AIoT) CertDetail

func (p *AIoT) CertDetail(chainID string) (*CertDetailResponse, int, error)

func (*AIoT) CheckBindTemplate

func (p *AIoT) CheckBindTemplate(request *CheckBindTemplateRequest) (*ListSpacesResponse, int, error)

func (*AIoT) CloudControl

func (p *AIoT) CloudControl(request *CloudControlRequest) (*RawResponse, int, error)

func (*AIoT) CloudRecordPlay

func (p *AIoT) CloudRecordPlay(request *CloudRecordPlayRequest) (*CloudRecordPlayResponse, int, error)

func (*AIoT) CreateAITemplate

func (p *AIoT) CreateAITemplate(request *CreateTemplateRequest) (*TemplateResponse, int, error)

func (*AIoT) CreateCascadePlatform

func (p *AIoT) CreateCascadePlatform(request *CreateCascadePlatformRequest) (*CreateCascadePlatformResponse, int, error)

国标级联接口

func (*AIoT) CreateCascadeTask

func (p *AIoT) CreateCascadeTask(request *CreateCascadeTaskRequest) (*CreateCascadeTaskResponse, int, error)

func (*AIoT) CreateDevice

func (p *AIoT) CreateDevice(request *CreateDeviceRequest) (*CreateDeviceResponse, int, error)

device相关

func (*AIoT) CreateRecordTemplate

func (p *AIoT) CreateRecordTemplate(request *CreateTemplateRequest) (*TemplateResponse, int, error)

func (*AIoT) CreateScreenshotTemplate

func (p *AIoT) CreateScreenshotTemplate(request *CreateTemplateRequest) (*TemplateResponse, int, error)

func (*AIoT) CreateSlowLive

func (p *AIoT) CreateSlowLive(request *CreateSlowLiveRequest) (*SlowLiveResponse, int, error)

慢直播相关

func (*AIoT) CreateSpace

func (p *AIoT) CreateSpace(request *CreateSpaceRequest) (*SpaceResponse, int, error)

space相关接口

func (*AIoT) CreateStream

func (p *AIoT) CreateStream(request *CreateStreamRequest) (*StreamResponse, int, error)

func (*AIoT) CreateStructuredView

func (p *AIoT) CreateStructuredView(request *CreateStructuredViewRequest) (*StructuredViewResponse, int, error)

func (*AIoT) CreateStructuredViewCascadeJob

func (p *AIoT) CreateStructuredViewCascadeJob(request *CreateStructuredViewCascadeJobRequest) (*StructuredViewResponse, int, error)

func (*AIoT) CreateStructuredViewCascadePlatform

func (p *AIoT) CreateStructuredViewCascadePlatform(request *CreateStructuredViewCascadePlatformRequest) (*StructuredViewResponse, int, error)

func (*AIoT) CreateStructuredViewCode

func (p *AIoT) CreateStructuredViewCode(viewType string) (*StructuredViewResponse, int, error)

func (*AIoT) CreateStructuredViewSpace

func (p *AIoT) CreateStructuredViewSpace(request *CreateStructuredViewSpaceRequest) (*StructuredViewResponse, int, error)

视图

func (*AIoT) CruiseControl

func (p *AIoT) CruiseControl(request *CruiseControlRequest) (*RawResponse, int, error)

func (*AIoT) DeleteAITemplate

func (p *AIoT) DeleteAITemplate(request *DeleteTemplateRequest) (*TemplateResponse, int, error)

func (*AIoT) DeleteAlarmNotify

func (p *AIoT) DeleteAlarmNotify(alarmNotifyID string) (*RawResponse, int, error)

func (*AIoT) DeleteAlarmNotifyAll

func (p *AIoT) DeleteAlarmNotifyAll(spaceID, deviceID string) (*RawResponse, int, error)

func (*AIoT) DeleteCascadePlatform

func (p *AIoT) DeleteCascadePlatform(platformID string) (*RawResponse, int, error)

func (*AIoT) DeleteCascadeTask

func (p *AIoT) DeleteCascadeTask(taskID string) (*RawResponse, int, error)

func (*AIoT) DeleteCert

func (p *AIoT) DeleteCert(request *DeleteCertRequest) (*RawResponse, int, error)

func (*AIoT) DeleteDevice

func (p *AIoT) DeleteDevice(request *DeviceRequest) (*DeviceResponse, int, error)

func (*AIoT) DeleteGroupTreeNodes

func (p *AIoT) DeleteGroupTreeNodes(request *DeleteGroupTreeNodesRequest) (*RawResponse, int, error)

func (*AIoT) DeleteLocalDownload

func (p *AIoT) DeleteLocalDownload(spaceID, id string) (*RawResponse, int, error)

func (*AIoT) DeleteRecordTemplate

func (p *AIoT) DeleteRecordTemplate(request *DeleteTemplateRequest) (*TemplateResponse, int, error)

func (*AIoT) DeleteScreenshotTemplate

func (p *AIoT) DeleteScreenshotTemplate(request *DeleteTemplateRequest) (*TemplateResponse, int, error)

func (*AIoT) DeleteSlowLive

func (p *AIoT) DeleteSlowLive(slowLiveID string) (*SlowLiveResponse, int, error)

func (*AIoT) DeleteSpace

func (p *AIoT) DeleteSpace(request *SpaceRequest) (*SpaceResponse, int, error)

func (*AIoT) DeleteSpaceDomain

func (p *AIoT) DeleteSpaceDomain(spaceID, domain string) (*DeleteSpaceDomainResponse, int, error)

func (*AIoT) DeleteStream

func (p *AIoT) DeleteStream(request *StreamRequest) (*StreamResponse, int, error)

func (*AIoT) DeleteStructuredView

func (p *AIoT) DeleteStructuredView(viewID string) (*StructuredViewResponse, int, error)

func (*AIoT) DeleteStructuredViewCascadeJob

func (p *AIoT) DeleteStructuredViewCascadeJob(jobID string) (*StructuredViewResponse, int, error)

func (*AIoT) DeleteStructuredViewCascadePlatform

func (p *AIoT) DeleteStructuredViewCascadePlatform(platformID string) (*StructuredViewResponse, int, error)

func (*AIoT) DeleteStructuredViewSpace

func (p *AIoT) DeleteStructuredViewSpace(spaceID string) (*StructuredViewResponse, int, error)

func (*AIoT) DisableAuthInSpace

func (p *AIoT) DisableAuthInSpace(spaceID, domain string) (*RawResponse, int, error)

func (*AIoT) DisableStructuredView

func (p *AIoT) DisableStructuredView(viewID string) (*StructuredViewResponse, int, error)

func (*AIoT) DisableStructuredViewCascadeJob

func (p *AIoT) DisableStructuredViewCascadeJob(jobID string) (*StructuredViewResponse, int, error)

func (*AIoT) DisableStructuredViewCascadePlatform

func (p *AIoT) DisableStructuredViewCascadePlatform(platformID string) (*StructuredViewResponse, int, error)

func (*AIoT) DisableStructuredViewSpace

func (p *AIoT) DisableStructuredViewSpace(spaceID string) (*StructuredViewResponse, int, error)

func (*AIoT) EdgeBye

func (p *AIoT) EdgeBye(streamID string) (*EdgeResponse, int, error)

func (*AIoT) EdgeInvite

func (p *AIoT) EdgeInvite(streamID string, req *EdgeInviteRequest) (*EdgeResponse, int, error)

func (*AIoT) EdgeStatus

func (p *AIoT) EdgeStatus(streamID string, req *EdgeStatusRequest) (*EdgeResponse, int, error)

func (*AIoT) EnableStructuredView

func (p *AIoT) EnableStructuredView(viewID string) (*StructuredViewResponse, int, error)

func (*AIoT) EnableStructuredViewCascadeJob

func (p *AIoT) EnableStructuredViewCascadeJob(jobID string) (*StructuredViewResponse, int, error)

func (*AIoT) EnableStructuredViewCascadePlatform

func (p *AIoT) EnableStructuredViewCascadePlatform(platformID string) (*StructuredViewResponse, int, error)

func (*AIoT) EnableStructuredViewSpace

func (p *AIoT) EnableStructuredViewSpace(spaceID string) (*StructuredViewResponse, int, error)

func (*AIoT) ForbidStream

func (p *AIoT) ForbidStream(request *StreamRequest) (*StreamResponse, int, error)

func (*AIoT) FreshDevice

func (p *AIoT) FreshDevice(request *FreshDeviceRequest) (*DeviceResponse, int, error)

func (*AIoT) GenSipID

func (p *AIoT) GenSipID(request *GenSipIDRequest) (*DeviceResponse, int, error)

func (*AIoT) GetAIAnalysisResult

func (p *AIoT) GetAIAnalysisResult(req *GetAIAnalysisResultRequest) (*GetAIAnalysisResultResponse, int, error)

func (*AIoT) GetAITemplate

func (p *AIoT) GetAITemplate(request *TemplateRequest) (*GetTemplateResponse, int, error)

func (*AIoT) GetAPIInfo

func (p *AIoT) GetAPIInfo(api string) *base.ApiInfo

GetAPIInfo interface

func (*AIoT) GetCascadePlatform

func (p *AIoT) GetCascadePlatform(platformID string) (*GetCascadePlatformResponse, int, error)

func (*AIoT) GetCascadeTask

func (p *AIoT) GetCascadeTask(taskID string) (*GetCascadeTaskResponse, int, error)

func (*AIoT) GetDevice

func (p *AIoT) GetDevice(request *GetDeviceRequest) (*GetDeviceResponse, int, error)

func (*AIoT) GetDeviceChannels

func (p *AIoT) GetDeviceChannels(request *DeviceRequest) (*GetDeviceChannelsResponse, int, error)

func (*AIoT) GetDevicesByGroupTreeNode

func (p *AIoT) GetDevicesByGroupTreeNode(request *GetDevicesByGroupTreeNodeRequest) (*GetDevicesByGroupTreeNodeResponse, int, error)

func (*AIoT) GetGroupNodesByCascadeTask

func (p *AIoT) GetGroupNodesByCascadeTask(taskID string) (*GetGroupTreeNodeResponse, int, error)

func (*AIoT) GetGroupTreeNode

func (p *AIoT) GetGroupTreeNode(groupNodeID string) (*GetGroupTreeNodeResponse, int, error)

虚拟组织树接口

func (*AIoT) GetMediaDownload

func (p *AIoT) GetMediaDownload(request *GetLocalMediaDownloadRequest) (*ListGBMediaResponse, int, error)

func (*AIoT) GetPushStreamCnt

func (p *AIoT) GetPushStreamCnt(request *GetPushStreamCntRequest) (*GetPushStreamCntResponse, int, error)

func (*AIoT) GetRecordList

func (p *AIoT) GetRecordList(request *GetRecordListRequest) (*GetRecordListResponse, int, error)

func (*AIoT) GetRecordTemplate

func (p *AIoT) GetRecordTemplate(request *TemplateRequest) (*GetTemplateResponse, int, error)

func (*AIoT) GetScreenshotTemplate

func (p *AIoT) GetScreenshotTemplate(request *TemplateRequest) (*GetTemplateResponse, int, error)

func (*AIoT) GetServiceInfo

func (p *AIoT) GetServiceInfo() *base.ServiceInfo

GetServiceInfo interface

func (*AIoT) GetSlowLive

func (p *AIoT) GetSlowLive(slowLiveID string) (*GetSlowLiveResponse, int, error)

func (*AIoT) GetSpace

func (p *AIoT) GetSpace(request *SpaceRequest) (*GetSpaceResponse, int, error)

func (*AIoT) GetSpaceDomain

func (p *AIoT) GetSpaceDomain(spaceID, domain string) (*GetSpaceDomainResponse, int, error)

func (*AIoT) GetSpaceGroupTreeRoot

func (p *AIoT) GetSpaceGroupTreeRoot(spaceID string) (*GroupTreeNode, error)

func (*AIoT) GetSpaceTemplate

func (p *AIoT) GetSpaceTemplate(request *SpaceRequest) (*GetSpaceTemplateResponse, int, error)

func (*AIoT) GetStream

func (p *AIoT) GetStream(request *StreamRequest) (*GetStreamResponse, int, error)

func (*AIoT) GetStreamData

func (p *AIoT) GetStreamData(request *GetStreamDataRequest) (*GetStreamDataResponse, int, error)

func (*AIoT) GetStructuredView

func (p *AIoT) GetStructuredView(viewID string) (*GetStructuredViewResponse, int, error)

func (*AIoT) GetStructuredViewCascadeJob

func (p *AIoT) GetStructuredViewCascadeJob(jobID string) (*GetStructuredViewCascadeJobResponse, int, error)

func (*AIoT) GetStructuredViewCascadePlatform

func (p *AIoT) GetStructuredViewCascadePlatform(platformID string) (*GetStructuredViewCascadePlatformResponse, int, error)

func (*AIoT) GetStructuredViewDataInfo

func (p *AIoT) GetStructuredViewDataInfo(dataID, viewID string) (*GetStructuredViewDataInfoResponse, int, error)

func (*AIoT) GetStructuredViewSpace

func (p *AIoT) GetStructuredViewSpace(spaceID string) (*GetStructuredViewSpaceResponse, int, error)

func (*AIoT) GetTotalData

func (p *AIoT) GetTotalData(t string) (*GetTotalDataResponse, int, error)

func (*AIoT) ListAITemplates

func (p *AIoT) ListAITemplates(request *ListTemplateRequest) (*ListTemplateResponse, int, error)

func (*AIoT) ListAlarmNotify

func (p *AIoT) ListAlarmNotify(request *ListAlarmNotifyRequest) (*ListAlarmNotifyResponse, int, error)

func (*AIoT) ListCascadePlatforms

func (p *AIoT) ListCascadePlatforms(request *ListCascadePlatformRequest) (*ListCascadePlatformResponse, int, error)

func (*AIoT) ListCascadeTask

func (p *AIoT) ListCascadeTask(request *ListCascadeTaskRequest) (*ListCascadeTaskResponse, int, error)

func (*AIoT) ListCertificates

func (p *AIoT) ListCertificates(request *ListCertificatesRequest) (*ListCertificatesResponse, int, error)

func (*AIoT) ListDeviceRecords

func (p *AIoT) ListDeviceRecords(request *ListHistoryRequest) (*ListHistoryResponse, int, error)

func (*AIoT) ListDeviceScreenshots

func (p *AIoT) ListDeviceScreenshots(request *ListHistoryRequest) (*ListHistoryResponse, int, error)

func (*AIoT) ListDevices

func (p *AIoT) ListDevices(request *ListDevicesRequest) (*ListDevicesResponse, int, error)

func (*AIoT) ListGroupTreeNodes

func (p *AIoT) ListGroupTreeNodes(spaceID string) (*ListGroupTreeNodesResponse, int, error)

func (*AIoT) ListRecordTemplates

func (p *AIoT) ListRecordTemplates(request *ListTemplateRequest) (*ListTemplateResponse, int, error)

func (*AIoT) ListScreenshotTemplates

func (p *AIoT) ListScreenshotTemplates(request *ListTemplateRequest) (*ListTemplateResponse, int, error)

func (*AIoT) ListSlowLive

func (p *AIoT) ListSlowLive(request *SlowLiveRequest) (*ListSlowLiveResponse, int, error)

func (*AIoT) ListSpaceDomains

func (p *AIoT) ListSpaceDomains(spaceID string) (*ListSpaceDomainsResponse, int, error)

func (*AIoT) ListSpaces

func (p *AIoT) ListSpaces(request *ListSpacesRequest) (*ListSpacesResponse, int, error)

func (*AIoT) ListStreams

func (p *AIoT) ListStreams(request *ListStreamsRequest) (*ListStreamsResponse, int, error)

func (*AIoT) ListStructuredViewData

func (p *AIoT) ListStructuredViewData(request *ListStructuredViewDataRequest) (*ListStructuredViewDataResponse, int, error)

func (*AIoT) ListStructuredViewSpaces

func (p *AIoT) ListStructuredViewSpaces(request ListStructuredViewSpacesRequest) (*ListStructuredViewSpacesResponse, int, error)

func (*AIoT) ListStructuredViews

func (p *AIoT) ListStructuredViews(request *ListStructuredViewsRequest) (*ListStructuredViewsResponse, int, error)

func (*AIoT) LocalMediaDownload

func (p *AIoT) LocalMediaDownload(request *LocalMediaDownloadRequest) (*LocalMediaDownloadResponse, int, error)

func (*AIoT) PlayBackControl

func (p *AIoT) PlayBackControl(request *PlayBackControlRequest) (*RawResponse, int, error)

func (*AIoT) PlayBackStart

func (p *AIoT) PlayBackStart(request *PlayBackStartRequest) (*PlayBackStartResponse, int, error)

func (*AIoT) PlayBackStop

func (p *AIoT) PlayBackStop(request *StreamRequest) (*RawResponse, int, error)

func (*AIoT) QueryPresetInfo

func (p *AIoT) QueryPresetInfo(request *QueryPresetInfoRequest) (*QueryPresetInfoResponse, int, error)

func (*AIoT) ResetAlarm

func (p *AIoT) ResetAlarm(request *ResetAlarmRequest) (*RawResponse, int, error)

func (*AIoT) SetAlarmGuard

func (p *AIoT) SetAlarmGuard(request *SetAlarmGuardRequest) (*RawResponse, int, error)

func (*AIoT) SetHost

func (p *AIoT) SetHost(host string)

SetHost .

func (*AIoT) SetRegion

func (p *AIoT) SetRegion(region string)

SetHost .

func (*AIoT) SetSchema

func (p *AIoT) SetSchema(schema string)

SetSchema .

func (*AIoT) SetSpaceTemplate

func (p *AIoT) SetSpaceTemplate(request *SetSpaceTemplateRequest) (*RawResponse, int, error)

func (*AIoT) ShareGroupNodesToCascadeTask

func (p *AIoT) ShareGroupNodesToCascadeTask(arg *ShareGroupNodesRequest) (*RawResponse, int, error)

func (*AIoT) SignSlowliveWsToken

func (p *AIoT) SignSlowliveWsToken(request *SignSlowliveWsTokenRequest) (*SignSlowliveWsTokenResponse, int, error)

func (*AIoT) StartCascadeTask

func (p *AIoT) StartCascadeTask(taskID string) (*RawResponse, int, error)

func (*AIoT) StartDevice

func (p *AIoT) StartDevice(request *DeviceRequest) (*DeviceResponse, int, error)

func (*AIoT) StartSlowLive

func (p *AIoT) StartSlowLive(slowLiveID string) (*SlowLiveResponse, int, error)

func (*AIoT) StartSpace

func (p *AIoT) StartSpace(request *SpaceRequest) (*SpaceResponse, int, error)

func (*AIoT) StartStream

func (p *AIoT) StartStream(request *StreamRequest) (*StreamResponse, int, error)

func (*AIoT) StartVoiceTalk

func (p *AIoT) StartVoiceTalk(request *StartVoiceTalkRequest) (*StartVoiceTalkResponse, int, error)

func (*AIoT) StopCascadeTask

func (p *AIoT) StopCascadeTask(taskID string) (*RawResponse, int, error)

func (*AIoT) StopDevice

func (p *AIoT) StopDevice(request *DeviceRequest) (*DeviceResponse, int, error)

func (*AIoT) StopSlowLive

func (p *AIoT) StopSlowLive(slowLiveID string) (*SlowLiveResponse, int, error)

func (*AIoT) StopSpace

func (p *AIoT) StopSpace(request *SpaceRequest) (*SpaceResponse, int, error)

func (*AIoT) StopStream

func (p *AIoT) StopStream(request *StreamRequest) (*StreamResponse, int, error)

func (*AIoT) StopVoiceTalk

func (p *AIoT) StopVoiceTalk(request *StopVoiceTalkRequest) (*StopVoiceTalkResponse, int, error)

func (*AIoT) StreamLogs

func (p *AIoT) StreamLogs(request *StreamLogsRequest) (*StreamLogsResponse, int, error)

func (*AIoT) UnbindCert

func (p *AIoT) UnbindCert(request *UnbindCertRequest) (*RawResponse, int, error)

func (*AIoT) UnforbidStream

func (p *AIoT) UnforbidStream(request *StreamRequest) (*StreamResponse, int, error)

func (*AIoT) UpdateAITemplate

func (p *AIoT) UpdateAITemplate(request *UpdateTemplateRequest) (*TemplateResponse, int, error)

func (*AIoT) UpdateAuthInSpace

func (p *AIoT) UpdateAuthInSpace(request *UpdateAuthInSpaceRequest) (*RawResponse, int, error)

func (*AIoT) UpdateCascadePlatform

func (p *AIoT) UpdateCascadePlatform(request *UpdateCascadePlatformRequest) (*UpdateCascadePlatformResponse, int, error)

func (*AIoT) UpdateCascadeTask

func (p *AIoT) UpdateCascadeTask(taskID string, arg *UpdateCascadeTaskArg) (*RawResponse, int, error)

func (*AIoT) UpdateCert

func (p *AIoT) UpdateCert(request *UpdateCertRequest) (*RawResponse, int, error)

func (*AIoT) UpdateDevice

func (p *AIoT) UpdateDevice(request *UpdateDeviceRequest) (*DeviceResponse, int, error)

func (*AIoT) UpdateDomainHTTPS

func (p *AIoT) UpdateDomainHTTPS(request *UpdateDomainHTTPSRequest) (*SpaceResponse, int, error)

func (*AIoT) UpdateGroupTreeNode

func (p *AIoT) UpdateGroupTreeNode(request *UpdateGroupTreeNodeRequest) (*RawResponse, int, error)

func (*AIoT) UpdateRecordTemplate

func (p *AIoT) UpdateRecordTemplate(request *UpdateTemplateRequest) (*TemplateResponse, int, error)

func (*AIoT) UpdateScreenshotTemplate

func (p *AIoT) UpdateScreenshotTemplate(request *UpdateTemplateRequest) (*TemplateResponse, int, error)

func (*AIoT) UpdateSlowLive

func (p *AIoT) UpdateSlowLive(request *UpdateSlowLiveRequest) (*SlowLiveResponse, int, error)

func (*AIoT) UpdateSpace

func (p *AIoT) UpdateSpace(request *UpdateSpaceRequest) (*SpaceResponse, int, error)

func (*AIoT) UpdateSpaceDomain

func (p *AIoT) UpdateSpaceDomain(request *UpdateSpaceDomainRequest) (*UpdateSpaceDomainResponse, int, error)

func (*AIoT) UpdateStream

func (p *AIoT) UpdateStream(request *UpdateStreamRequest) (*StreamResponse, int, error)

func (*AIoT) UpdateStructuredCascadeJob

func (p *AIoT) UpdateStructuredCascadeJob(request *UpdateStructuredCascadeJobRequest) (*StructuredViewResponse, int, error)

func (*AIoT) UpdateStructuredView

func (p *AIoT) UpdateStructuredView(request *UpdateStructuredViewRequest) (*StructuredViewResponse, int, error)

func (*AIoT) UpdateStructuredViewCascadePlatform

func (p *AIoT) UpdateStructuredViewCascadePlatform(request *UpdateStructuredViewCascadePlatformRequest) (*StructuredViewResponse, int, error)

func (*AIoT) UpdateStructuredViewSpace

func (p *AIoT) UpdateStructuredViewSpace(request *UpdateStructuredViewSpaceRequest) (*StructuredViewResponse, int, error)

func (*AIoT) UploadCert

func (p *AIoT) UploadCert(request *UploadCertRequest) (*UploadCertResponse, int, error)

证书相关

type AccountStatus

type AccountStatus struct {
	Status      int          `json:"Status"`
	CreateTime  int64        `json:"CreateTime"`
	ChargeMode  ChargeMode   `json:"ChargeMode"`
	Permissions *Permissions `json:"Permissions"`
}

type AddGroupTreeNodeRequest

type AddGroupTreeNodeRequest struct {
	Name        string `json:"Name"`
	Description string `json:"Description"`
	SpaceID     string `json:"SpaceID"`
	ParentID    string `json:"ParentID"`
}

type AddGroupTreeNodeResponse

type AddGroupTreeNodeResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           string `json:"Result,omitempty"`
}

type AddSpaceDomainRequest

type AddSpaceDomainRequest struct {
	SpaceID string
	Domain  string `json:"Domain"`
	Type    string `json:"Type"`
}

type AlarmNotify

type AlarmNotify struct {
	AccountID        string `json:"AccountID"`
	SpaceID          string `json:"SpaceID"`
	DeviceNSID       string `json:"DeviceNSID"`
	CmdType          string `json:"CmdType"`
	SN               uint32 `json:"SN"`
	ChannelID        string `json:"ChannelID"`
	AlarmPriority    uint32 `json:"AlarmPriority"`
	AlarmMethod      uint32 `json:"AlarmMethod"`
	AlarmTime        int64  `json:"AlarmTime"`
	AlarmDescription string `json:"AlarmDescription"`
	Longitude        string `json:"Longitude"`
	Latitude         string `json:"Latitude"`
	AlarmInfo        string `json:"AlarmInfo"`
	AlarmNotifyID    string `json:"AlarmNotifyID"`
	Info             struct {
		AlarmType      uint32 `json:"AlarmType"`
		AlarmTypeParam struct {
			EventType uint32 `json:"EventType"`
		} `bson:"AlarmTypeParam"`
	} `bson:"Info"`
}

type AlertNotification

type AlertNotification struct {
	Enabled     bool `bson:"Enabled"`
	Phone       bool `bson:"Phone"`
	Device      bool `bson:"Device"`
	SMS         bool `bson:"SMS"`
	GPS         bool `bson:"GPS"`
	Video       bool `bson:"Video"`
	DeviceFault bool `bson:"DeviceFault"`
	Other       bool `bson:"Other"`
}

type BatchDeleteCascadePlatformRequest

type BatchDeleteCascadePlatformRequest struct {
	PlatformIDs []string `json:"IDs"`
}

type BatchDeleteCascadeTaskRequest

type BatchDeleteCascadeTaskRequest struct {
	TaskIDs []string `json:"IDs"`
}

type BatchDeleteSlowLiveRequest

type BatchDeleteSlowLiveRequest struct {
	LiveStreamIDs []string `json:"LiveStreamIDs"`
}

type BindCertRequest

type BindCertRequest struct {
	SpaceID    string
	Domain     string `json:"Domain"`
	ChainID    string `json:"ChainID"`
	DomainType string `json:"DomainType"`
}

type CalculatePkgRes

type CalculatePkgRes struct {
	Price float64 `json:"Price"`
}

type CalculatePkgResponse

type CalculatePkgResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           *CalculatePkgRes `json:"Result,omitempty"`
}

type CancelBindTemplateRequest

type CancelBindTemplateRequest struct {
	SpaceID      string
	TemplateType string
}

type CascadePlatform

type CascadePlatform struct {
	AccountID      string           `json:"AccountID"`
	PlatformID     string           `json:"PlatformID"`
	SipConfig      CascadeSipConfig `json:"SipConfig"`
	PlatformName   string           `json:"PlatformName"`   // 上级平台名称
	Description    string           `json:"Description"`    // 上级平台描述
	Enable         bool             `json:"Enable"`         // 是否使能级联平台
	EnableAccess   bool             `json:"EnableAccess"`   // 平台授权
	EnablePTZ      bool             `json:"EnablePTZ"`      // PTZ授权
	Status         CascadeStatus    `json:"Status"`         // 注册状态
	SharedNodesNum int              `json:"SharedNodesNum"` // 共享节点数量
	TaskIDs        []string         `json:"TaskIDs"`        // 关联的级联任务列表
	CreateAt       string           `json:"CreateAt"`
	UpdateAt       string           `json:"UpdateAt"`
}

type CascadeSipConfig

type CascadeSipConfig struct {
	SipServerID     string `json:"SipServerID"`     // SIP服务器ID
	Realm           string `json:"Realm"`           // SIP服务器域
	SipServerHost   string `json:"SipServerHost"`   // SIP服务器地址
	SipServerPort   int    `json:"SipServerPort"`   // SIP服务器端口
	SipUserID       string `json:"SipUserID"`       // 平台SIP用户名
	Password        string `json:"Password"`        // 平台SIP密码
	SipTransport    string `json:"SipTransport"`    // SIP信令传输协议, udp/tcp; default:udp
	RegisterExpires uint32 `json:"RegisterExpires"` // 注册有效期(秒)
	KeepalivePeriod uint32 `json:"KeepalivePeriod"` // 心跳周期(秒)
}

type CascadeStatus

type CascadeStatus string

CascadeStatus 级联任务状态

type CascadeTask

type CascadeTask struct {
	AccountID     string        `json:"AccountID"`
	TaskID        string        `json:"TaskID"`        // 级联任务ID, 2位数字
	TaskName      string        `json:"TaskName"`      // 级联任务名称
	Description   string        `json:"Description"`   // 级联任务描述
	GroupTreeID   string        `json:"GroupTreeID"`   // 关联的虚拟组织树ID
	GroupTreeName string        `json:"GroupTreeName"` // 关联的虚拟组织树名称
	PlatformID    string        `json:"PlatformID"`    // 关联的上级平台ID
	PlatformName  string        `json:"PlatformName"`  // 关联的上级平台名称
	Status        CascadeStatus `json:"Status"`        // 级联任务状态
	Enable        bool          `json:"Enable"`        // 是否启用
	SharedNodes   []string      `json:"SharedNodes"`   // 共享节点ID列表
	CreateAt      string        `json:"CreateAt"`
	UpdateAt      string        `json:"UpdateAt"`
}

type CatalogItemInfo

type CatalogItemInfo struct {
	PTZType       string `json:"PTZType,omitempty"` // 1-球机;2-半球机;3-固定枪机;4-遥控枪机
	Resolution    string `json:"Resolution,omitempty"`
	DownloadSpeed string `json:"DownloadSpeed,omitempty"`
}

type CertDetail

type CertDetail struct {
	ChainID   string `bson:"ChainID"`
	Status    string `bson:"Status"`
	Domain    string `bson:"Domain"`
	CreateAt  int64  `bson:"CreateAt"`
	UpdateAt  int64  `bson:"UpdateAt"`
	NotBefore int64  `bson:"NotBefore"`
	NotAfter  int64  `bson:"NotAfter"`
	CertName  string `bson:"CertName"`
	CertDesc  string `bson:"CertDesc"`
	CertPem   string `bson:"CertPem"`
}

type CertDetailResponse

type CertDetailResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           CertDetail `json:"Result,omitempty"`
}

type ChannelPkg

type ChannelPkg struct {
	Level     string `json:"Level"`
	Cnt       int    `json:"Cnt"`       // 购买的路数
	RenewType *int32 `json:"RenewType"` //自动续费方式
}

type Charge

type Charge struct {
	Bandwidth bool `json:"bandwidth"`
	Flow      bool `json:"flow"`
	Channel   bool `json:"channel"`
}

type ChargeItem

type ChargeItem struct {
	Name          string           `json:"Name"`
	ValidDur      string           `json:"ValidDur"`
	Region        string           `json:"Region"`
	Types         []*TypeItem      `json:"Types"`
	Specification []*Specification `json:"Specification"`
}

type ChargeMode

type ChargeMode string

type CheckBindTemplateRequest

type CheckBindTemplateRequest struct {
	TemplateID   string
	TemplateType string
	PageNumber   int
	PageSize     int
}

type CloudControlRequest

type CloudControlRequest struct {
	SipID     string
	DeviceID  string `json:"DeviceID"`
	ChannelID string `json:"ChannelID"`
	Cmd       string `json:"Cmd"`
	Para      uint8  `json:"Para"`
	Action    string `json:"action"`
}

type CloudRecordPlayRequest

type CloudRecordPlayRequest struct {
	StreamID   string `json:"StreamID"`
	StartTs    int64  `json:"StartTs"`
	EndTs      int64  `json:"EndTs"`
	TokenValid *int   `json:"TokenValid"`
}

type CloudRecordPlayResponse

type CloudRecordPlayResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           map[string]interface{} `json:"Result,omitempty"`
}

type Coordinates

type Coordinates struct {
	Longitude *float64 `json:"Longitude"` //经度
	Latitude  *float64 `json:"Latitude"`  //纬度
}

type CreateAccountRequest

type CreateAccountRequest struct {
	ChargeMode ChargeMode  `json:"ChargeMode"` //bind=带宽计费 flow=流量计费
	ChannelPkg *ChannelPkg `json:"ChannelPkg"`
}

type CreateAccountRes

type CreateAccountRes struct {
	PreorderNumber string `json:"PreorderNumber"`
}

type CreateAccountResponse

type CreateAccountResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           *CreateAccountRes `json:"Result,omitempty"`
}

type CreateCascadePlatformRequest

type CreateCascadePlatformRequest struct {
	PlatformName string           `json:"PlatformName"`
	Description  string           `json:"Description"`
	SipConfig    CascadeSipConfig `json:"SipConfig"`
	Enable       *bool            `json:"Enable"`       // 是否使能级联平台,不填默认使能
	EnableAccess bool             `json:"EnableAccess"` // 平台授权
	EnablePTZ    bool             `json:"EnablePTZ"`    // PTZ授权
}

type CreateCascadePlatformResponse

type CreateCascadePlatformResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           IDResponse `json:"Result,omitempty"`
}

type CreateCascadeTaskRequest

type CreateCascadeTaskRequest struct {
	TaskName    string `json:"TaskName"`    // 级联任务名称
	GroupTreeID string `json:"GroupTreeID"` // 关联的虚拟组织树ID
	PlatformID  string `json:"PlatformID"`  // 关联的上级平台ID
	Description string `json:"Description"`
}

type CreateCascadeTaskResponse

type CreateCascadeTaskResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           IDResponse `json:"Result,omitempty"`
}

type CreateDeviceArg

type CreateDeviceArg struct {
	Type                 string             `json:"Type"`
	DeviceName           string             `json:"DeviceName"`
	DeviceNSID           *string            `json:"DeviceNSID"`
	Username             *string            `json:"Username"`
	Password             *string            `json:"Password"`
	Description          string             `json:"Description"`
	AutoPullAfterRegiter *bool              `json:"AutoPullAfterRegiter"`
	PasswordLevel        string             `json:"PasswordLevel"`
	RtpTransportTcp      *bool              `json:"RtpTransportTcp"`
	DownloadSpeed        *int               `json:"DownloadSpeed"`
	Location             *string            `json:"Location"`
	Coordinates          *Coordinates       `json:"Coordinates"`
	AlertNotification    *AlertNotification `json:"AlertNotification"`
}

type CreateDeviceRequest

type CreateDeviceRequest struct {
	SpaceID               string
	Type                  string             `json:"Type"`
	DeviceName            string             `json:"DeviceName"`
	DeviceNSID            *string            `json:"DeviceNSID"`
	Username              *string            `json:"Username"`
	Password              *string            `json:"Password"`
	Description           string             `json:"Description"`
	AutoPullAfterRegister *bool              `json:"AutoPullAfterRegiter"`
	PasswordLevel         string             `json:"PasswordLevel"`
	RtpTransportTcp       *bool              `json:"RtpTransportTcp"`
	DownloadSpeed         *int               `json:"DownloadSpeed"`
	Location              *string            `json:"Location"`
	Coordinates           *Coordinates       `json:"Coordinates"`
	AlertNotification     *AlertNotification `json:"AlertNotification"`
}

type CreateDeviceResponse

type CreateDeviceResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           *IDDevice `json:"Result,omitempty"`
}

type CreateSlowLiveRequest

type CreateSlowLiveRequest struct {
	ID                      string          `json:"ID"`
	RelatedSpaces           []string        `json:"RelatedSpaces"`
	Name                    string          `json:"Name"`
	MergingMode             string          `json:"MergingMode"`
	OutputResolution        string          `json:"OutputResolution"`
	OutputFrameRate         int             `json:"OutputFrameRate"`
	OutputEncoding          string          `json:"OutputEncoding"`
	CreateTimestamp         int64           `json:"CreateTimestamp"`
	PreviousClosedTimestamp int64           `json:"PreviousClosedTimestamp"`
	FinishTimestamp         int64           `json:"FinishTimestamp"`
	Status                  SlowLiveStatus  `json:"Status"`
	EnablePushingStream     *bool           `json:"EnablePushingStream"`
	Config                  *SlowLiveConfig `json:"Config"`
	AccountID               string          `json:"AccountID"`
}

type CreateSpaceRequest

type CreateSpaceRequest struct {
	SpaceName   string `json:"SpaceName"`
	Description string `json:"Description"`
	Region      string `json:"Region"`
	AccessType  string `json:"AccessType"`
	GB          struct {
		PullOnDemand bool `json:"PullOnDemand"`
	} `json:"GB"`
	SDK struct {
		DeviceType             string                           `json:"DeviceType"`
		ProductValidDuration   SDKProductValidDurationEnum      `json:"ValidDuration"`
		GeneralDeviceAVAbility SDKGeneralDeviceAVAbilityBitmask `json:"GeneralDeviceAVAbility"`
		NVRAVAbility           SDKNVRAVAbilityEnum              `json:"NVRAVAbility"`
		OS                     string                           `json:"OS"`
		ChipManufacture        string                           `json:"ChipManufacture"`
		ChipModel              string                           `json:"ChipModel"`
	} `json:"SDK"`
	HLSLowLatency bool   `json:"HLSLowLatency"`
	CallbackURL   string `json:"CallbackURL"`
}

type CreateStreamRequest

type CreateStreamRequest struct {
	SpaceID     string
	StreamName  string `json:"StreamName"` //流的名称,用户输入
	Description string `json:"Description"`
}

type CreateStructuredViewCascadeJobRequest

type CreateStructuredViewCascadeJobRequest struct {
	ID              string                         `json:"ID"`
	AccountID       string                         `json:"AccountID"`
	JobName         string                         `json:"JobName"`
	ViewSpaceID     string                         `json:"ViewSpaceID"`
	ViewSpaceName   string                         `json:"ViewSpaceName"`
	ViewSpaceCode   string                         `json:"ViewSpaceCode"`
	PlatformID      string                         `json:"PlatformID"`
	PlatformCode    string                         `json:"PlatformCode"`
	PlatformName    string                         `json:"PlatformName"`
	CreateTimestamp int64                          `json:"CreateTimestamp"`
	UpdateTimestamp int64                          `json:"UpdateTimestamp"`
	Status          StructuredViewCascadeJobStatus `json:"Status"`
	Description     string                         `json:"Description"`
}

type CreateStructuredViewCascadePlatformRequest

type CreateStructuredViewCascadePlatformRequest struct {
	ID              string                              `json:"ID"`
	AccountID       string                              `json:"AccountID"`
	PlatformName    string                              `json:"PlatformName"`
	PlatformCode    string                              `json:"PlatformCode"`
	PlatformIP      string                              `json:"PlatformIP"`
	PlatformPort    int                                 `json:"PlatformPort"`
	Description     string                              `json:"Description"`
	Username        string                              `json:"Username"`
	Password        string                              `json:"Password"`
	CreateTimestamp int64                               `json:"CreateTimestamp"`
	UpdateTimestamp int64                               `json:"UpdateTimestamp"`
	Status          StructuredViewCascadePlatformStatus `json:"Status"`
}

type CreateStructuredViewRequest

type CreateStructuredViewRequest struct {
	ID               string               ` json:"ID"`
	AccountID        string               ` json:"AccountID"`
	ViewName         string               ` json:"ViewName"`
	ViewType         string               `json:"ViewType"`
	ViewCode         string               ` json:"ViewCode"`
	ViewSpaceID      string               ` json:"ViewSpaceID"`
	ViewSpaceName    string               ` json:"ViewSpaceName"`
	ViewIP           string               `json:"ViewIP"`
	ViewPort         int                  ` json:"ViewPort"`
	Protocol         string               ` json:"Protocol"`
	Username         string               ` json:"Username"`
	Password         string               ` json:"Password"`
	Description      string               ` json:"Description"`
	Location         string               ` json:"Location"`
	AdministrativeID string               ` json:"AdministrativeID"`
	CreateTimestamp  int64                ` json:"CreateTimestamp"`
	UpdateTimestamp  int64                ` json:"UpdateTimestamp"`
	Status           StructuredViewStatus ` json:"Status"`
}

type CreateStructuredViewSpaceRequest

type CreateStructuredViewSpaceRequest struct {
	ID              string                    `json:"ID"`
	AccountID       string                    `json:"AccountID"`
	SpaceName       string                    `json:"SpaceName"`
	ViewNumber      int64                     `json:"ViewNumber"`
	StoragePeriod   int                       `json:"StoragePeriod"`
	StorageType     string                    `json:"StorageType"`
	Region          string                    `json:"Region"`
	Description     string                    `json:"Description"`
	SpaceCode       string                    `json:"SpaceCode"`
	SpaceIP         string                    `json:"SpaceIP"`
	SpacePort       int                       `json:"SpacePort"`
	CreateTimestamp int64                     `json:"CreateTimestamp"`
	UpdateTimestamp int64                     `json:"UpdateTimestamp"`
	Status          StructuredViewSpaceStatus `json:"Status"`
}

type CreateTemplateRequest

type CreateTemplateRequest struct {
	TemplateName string              `json:"TemplateName"`
	Screenshot   *ScreenshotTemplate `json:"Screenshot"`
	Record       *RecordTemplate     `json:"Record"`
	AI           *AITemplate         `json:"AI"`
}

type CruiseControlRequest

type CruiseControlRequest struct {
	SipID     string `json:"SipID"`
	Action    string `json:"Action"`
	DeviceID  string `json:"DeviceID"`
	ChannelID string `json:"ChannelID"`
	GroupID   uint8  `json:"GroupID"`
	PresetID  uint8  `json:"PresetID"`
	Para      uint8  `json:"Para"`
}

type DataProject

type DataProject struct {
	TimeStamp string  `json:"TimeStamp"`
	Value     float64 `json:"Value"`
}

type DeleteCertRequest

type DeleteCertRequest struct {
	ChainID string `json:"ChainID"`
}

type DeleteGroupTreeNodesRequest

type DeleteGroupTreeNodesRequest struct {
	IDs []string `json:"IDs"`
}

type DeleteSpaceDomainRes

type DeleteSpaceDomainRes struct {
	Domain interface{} `json:"Domain"`
}

type DeleteSpaceDomainResponse

type DeleteSpaceDomainResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           DeleteSpaceDomainRes `json:"Result,omitempty"`
}

type DeleteTemplateRequest

type DeleteTemplateRequest struct {
	TemplateID   string `json:"TemplateID"`
	TemplateType string `json:"TemplateType"`
}

type DeviceChannelResp

type DeviceChannelResp struct {
	DeviceName string                  `json:"DeviceName"`
	DeviceID   string                  `json:"DeviceID"`
	DeviceNSID string                  `json:"DeviceNSID"`
	Channels   []*DeviceItemWithStream `json:"Channels"`
}

type DeviceItem

type DeviceItem struct {
	DeviceID     string          `json:"DeviceID"`
	Event        string          `json:"Event,omitempty"`
	Name         string          `json:"Name"`
	Manufacturer string          `json:"Manufacturer,omitempty"`
	Model        string          `json:"Model"`
	Owner        string          `json:"Owner,omitempty"`
	CivilCode    string          `json:"CivilCode,omitempty"`
	Address      string          `json:"Address"`
	Parental     string          `json:"Parental,omitempty"`
	ParentID     string          `json:"ParentID"`
	RegisterWay  string          `json:"RegisterWay,omitempty"`
	Secrecy      string          `json:"Secrecy,omitempty"`
	StreamNum    string          `json:"StreamNum,omitempty"`
	IPAddress    string          `json:"IPAddress,omitempty"`
	Port         string          `json:"Port"`
	Password     string          `json:"Password,omitempty"`
	Status       string          `json:"Status"`
	Info         CatalogItemInfo `json:"Info,omitempty"`
}

type DeviceItemWithStream

type DeviceItemWithStream struct {
	DeviceItem DeviceItem `json:"DeviceItem"`
	StreamID   string     `json:"StreamID"`
	CreateAt   string     `json:"CreateAt"`
}

type DeviceRequest

type DeviceRequest struct {
	DeviceID string
}

type DeviceResponse

type DeviceResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           IDResponse `json:"Result,omitempty"`
}

type DeviceStreams

type DeviceStreams struct {
	StreamID string   `bson:"stream_id"`
	PullUrls []string `bson:"pull_urls"`
	PushUrl  string   `bson:"push_url"`
	Status   string   `bson:"status"`
}

type DeviceType

type DeviceType string
const (
	DeviceTypeCamera   DeviceType = "IPC"
	DeviceTypeNVR      DeviceType = "NVR"
	DeviceTypePlatform DeviceType = "Platform" //国标平台
)

func (DeviceType) String

func (d DeviceType) String() string

type DeviceView

type DeviceView struct {
	SpaceID              string                    `json:"SpaceID"`
	Type                 string                    `json:"Type"`
	DeviceName           string                    `json:"DeviceName"`
	DeviceID             string                    `json:"DeviceID"`
	DeviceNSID           string                    `json:"DeviceNSID"`
	Username             string                    `json:"Username"`
	Password             string                    `json:"Password"`
	Description          string                    `json:"Description"`
	AutoPullAfterRegiter bool                      `json:"AutoPullAfterRegiter"`
	CreatedAt            string                    `json:"CreatedAt"`
	UpdatedAt            string                    `json:"UpdatedAt"`
	Manufactory          string                    `json:"Manufactory"`
	AlertNotification    *AlertNotification        `json:"AlertNotification"`
	DeviceStreams        map[string]*DeviceStreams `json:"DeviceStreams"`
	Status               string                    `json:"Status"`
	ChannelNum           int                       `json:"ChannelNum"`
	RtpTransportTcp      bool                      `json:"RtpTransportTcp"` //流传输协议tcp为true,否则默认udp
	ContactCount         int                       `json:"ContactCount"`    //Device的contact数量, 用于前端提示多device注册同一个账号
	Location             string                    `json:"Location"`
	Coordinates          *Coordinates              `json:"Coordinates"`
}

type EdgeInviteRequest

type EdgeInviteRequest struct {
	StreamID      string
	LocalFlvHttps string
	Status        string
	SSRC          int
	RTPPort       int
	IP            string
}

type EdgeResponse

type EdgeResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           EdgeResponseDetail `json:"Result,omitempty"`
}

type EdgeResponseDetail

type EdgeResponseDetail struct {
	Status bool
}

type EdgeStatusRequest

type EdgeStatusRequest struct {
	StreamID      string
	LocalFlvHttps string
	Status        string
	SSRC          int
	RTPPort       int
	IP            string
}

type EnableTime

type EnableTime struct {
	EnableFrom string
	EnableTo   string
}

type EnableTimes

type EnableTimes []EnableTime

type FaceRecord

type FaceRecord struct {
}

type Font

type Font struct {
	FontSize     *int    `json:"FontSize"`
	PrimaryColor *string `json:"PrimaryColor"`
	Alignment    *string `json:"Alignment"`
}

type FreshDeviceRequest

type FreshDeviceRequest struct {
	SpaceID  string
	DeviceID string
}

type GBMediaDownload

type GBMediaDownload struct {
	ID               string        `json:"ID"` //=streamID
	StartTime        int64         `json:"StartTime"`
	EndTime          int64         `json:"EndTime"`
	CallID           string        `json:"CallID"`
	Status           string        `json:"Status"`
	Url              string        `json:"Url"`
	FileSize         int64         `json:"FileSize"`
	Msg              string        `json:"Msg"`
	FileStreamLength time.Duration `json:"FileStreamLength"`
	FileName         string        `json:"FileName"`
	DeviceMsg        string        `json:"DeviceMsg"` //设备上传时异常bye存储信息
	CreateAt         int64         `json:"CreateAt"`
	SubtitleUrl      string        `json:"SubtitleUrl"`
	FirstTs          int64         `json:"FirstTs"`
	FirstTranscode   int64         `json:"FirstTranscode"`
	DeviceInfoStatus int8          `json:"DeviceInfoStatus"` //0=waiting,-1=failed,1=success
}

type GenSipIDRequest

type GenSipIDRequest struct {
	DeviceType  string
	SipServerID string
}

type GetAIAnalysisResult

type GetAIAnalysisResult struct {
	PageResult
	AiResult []*AIAnalysisResponse
}

type GetAIAnalysisResultRequest

type GetAIAnalysisResultRequest struct {
	StreamID string              `json:"StreamID"`
	StartT   int64               `json:"StartTime"`
	EndT     int64               `json:"EndTime"`
	AI       map[string][]string `json:"AI"`
}

type GetAIAnalysisResultResponse

type GetAIAnalysisResultResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           GetAIAnalysisResult `json:"Result,omitempty"`
}

type GetAccountResponse

type GetAccountResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           *AccountStatus `json:"Result,omitempty"`
}

type GetCascadePlatformResponse

type GetCascadePlatformResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           CascadePlatform `json:"Result,omitempty"`
}

type GetCascadeTaskResponse

type GetCascadeTaskResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           CascadeTask `json:"Result,omitempty"`
}

type GetDataProject

type GetDataProject struct {
	TotalUp   float64
	TotalDown float64
	DataUp    []DataProject
	DataDown  []DataProject
}

type GetDataProjectWithBindWidthAndFlowRequest

type GetDataProjectWithBindWidthAndFlowRequest struct {
	SpaceID    string
	StreamName string
	StartTime  string
	EndTime    string
	Data       string
}

type GetDataProjectWithBindWidthAndFlowResponse

type GetDataProjectWithBindWidthAndFlowResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           GetDataProject `json:"Result,omitempty"`
}

type GetDeviceChannelsResponse

type GetDeviceChannelsResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           DeviceChannelResp `json:"Result,omitempty"`
}

type GetDeviceRequest

type GetDeviceRequest struct {
	SpaceID     string
	DeviceID    string
	SipServerID string
}

type GetDeviceResponse

type GetDeviceResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           *DeviceView `json:"Result,omitempty"`
}

type GetDevicesByGroupTreeNodeRequest

type GetDevicesByGroupTreeNodeRequest struct {
	NodeID     string `json:"NodeID"`
	SearchName string `json:"SearchName"`
}

type GetDevicesByGroupTreeNodeRes

type GetDevicesByGroupTreeNodeRes struct {
	PageNumber int64          `json:"PageNumber"`
	PageSize   int64          `json:"PageSize"`
	TotalCount int64          `json:"TotalCount"`
	Data       []*GroupDevice `json:"Data"`
}

type GetDevicesByGroupTreeNodeResponse

type GetDevicesByGroupTreeNodeResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           GetDevicesByGroupTreeNodeRes `json:"Result,omitempty"`
}

type GetGroupTreeNodeResponse

type GetGroupTreeNodeResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           GroupTreeNode `json:"Result,omitempty"`
}

type GetLocalMediaDownloadRequest

type GetLocalMediaDownloadRequest struct {
	ID      string
	SpaceID string
}

type GetPkgInfoResponse

type GetPkgInfoResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           []*ChargeItem `json:"Result,omitempty"`
}

type GetPushStreamCntRequest

type GetPushStreamCntRequest struct {
	SpaceID   string
	StartTime string
	EndTime   string
}

type GetPushStreamCntRes

type GetPushStreamCntRes struct {
	Cnt []DataProject
}

type GetPushStreamCntResponse

type GetPushStreamCntResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           GetPushStreamCntRes `json:"Result,omitempty"`
}

type GetRecordListRequest

type GetRecordListRequest struct {
	DeviceID     string `json:"DeviceID"`
	ChannelID    string `json:"ChannelID"`
	StartTime    int64  `json:"StartTime"`
	EndTime      int64  `json:"EndTime"`
	RecordType   string `json:"RecordType"`
	TimeoutInSec int    `json:"TimeoutInSec"`
	Order        bool   `json:"Order"`
}

type GetRecordListResponse

type GetRecordListResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           RecordList `json:"Result,omitempty"`
}

type GetSlowLiveResponse

type GetSlowLiveResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           GetSlowLiveResult `json:"Result,omitempty"`
}

type GetSlowLiveResult

type GetSlowLiveResult struct {
	SlowLive *SlowLiveView `json:"SlowLive"`
}

type GetSpaceDomainResponse

type GetSpaceDomainResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           SpaceDomain `json:"Result,omitempty"`
}

type GetSpaceResponse

type GetSpaceResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           SpaceView `json:"Result,omitempty"`
}

type GetSpaceTemplateResponse

type GetSpaceTemplateResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           SpaceTemplate `json:"Result,omitempty"`
}

type GetStreamDataRequest

type GetStreamDataRequest struct {
	StreamID  string
	StartTime string
	EndTime   string
}

type GetStreamDataRes

type GetStreamDataRes struct {
	BVideo []DataProject
	BAudio []DataProject
	FPS    []DataProject
	Height int
	Width  int
}

type GetStreamDataResponse

type GetStreamDataResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           GetStreamDataRes `json:"Result,omitempty"`
}

type GetStreamResponse

type GetStreamResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           StreamResp `json:"Result,omitempty"`
}

type GetStructuredViewCascadeJobResponse

type GetStructuredViewCascadeJobResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           StructuredViewCascadeJob `json:"Result,omitempty"`
}

type GetStructuredViewCascadePlatformResponse

type GetStructuredViewCascadePlatformResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           StructuredViewCascadePlatform `json:"Result,omitempty"`
}

type GetStructuredViewDataInfoResponse

type GetStructuredViewDataInfoResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           PhotoObjectDetail `json:"Result,omitempty"`
}

type GetStructuredViewResponse

type GetStructuredViewResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           StructuredView `json:"Result,omitempty"`
}

type GetStructuredViewSpaceResponse

type GetStructuredViewSpaceResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           StructuredViewSpace `json:"Result,omitempty"`
}

type GetTemplateResponse

type GetTemplateResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           Template `json:"Result,omitempty"`
}

type GetTotalDataRes

type GetTotalDataRes struct {
	MaxUp           float64
	MaxDown         float64
	UpChainGrowth   string
	DownChainGrowth string
}

type GetTotalDataResponse

type GetTotalDataResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           GetTotalDataRes `json:"Result,omitempty"`
}

type GroupDevice

type GroupDevice struct {
	ID          string         `json:"ID"`
	Type        string         `json:"Type"`
	DeviceName  string         `json:"DeviceName"`
	Description string         `json:"Description"`
	Status      string         `json:"Status"`
	DeviceNSID  string         `json:"DeviceNSID"`
	Protocol    string         `json:"Protocol"`
	Vendor      string         `json:"Vendor"`
	Channels    []*GroupStream `json:"Channels"`
	Available   bool           `json:"Available"`
}

type GroupStream

type GroupStream struct {
	ID          string `json:"ID"`
	SipID       string `json:"SipID"`
	StreamName  string `json:"StreamName"`
	DeviceID    string `json:"DeviceID"`
	Status      string `json:"Status"`
	Description string `json:"Description"`
	Available   bool   `json:"Available"`
}

type GroupTreeNode

type GroupTreeNode struct {
	ID          string           `json:"ID"`
	Name        string           `json:"Name"`
	NSID        string           `json:"NSID"`
	Description string           `json:"Description"`
	Shared      bool             `json:"Shared"` // only used to mark node share flag for cascade task
	SpaceID     string           `json:"SpaceID"`
	SpaceName   string           `json:"SpaceName"`
	Region      string           `json:"Region"`
	ParentID    string           `json:"ParentID"`
	Nodes       []*GroupTreeNode `json:"Nodes"`
	Device      *GroupDevice     `json:"Device"`
}

type HistoryResult

type HistoryResult struct {
	Type         string        `json:"Type"`
	Path         string        `json:"Path"`
	FileSize     float64       `json:"-"`
	ScreenResult *ScreenResult `json:"ScreenResult,omitempty"`
	RecordResult *RecordResult `json:"RecordResult,omitempty"`
}

type IDDevice

type IDDevice struct {
	ID string `json:"ID"`
	*DeviceView
}

type IDResponse

type IDResponse struct {
	ID string `json:"ID"`
}

type ListAlarmNotifyRequest

type ListAlarmNotifyRequest struct {
	PageNumber    int
	PageSize      int
	DeviceNSID    string   `bson:"DeviceNSID"`
	ChannelID     string   `bson:"ChannelID"`
	StartTime     int64    `bson:"StartTime"`
	EndTime       int64    `bson:"EndTime"`
	AlarmMethod   []uint32 `bson:"AlarmMethod"`
	AlarmPriority []uint32 `bson:"AlarmPriority"`
	AlarmType2    []uint32 `bson:"AlarmType2"`
	AlarmType5    []uint32 `bson:"AlarmType5"`
	AlarmType6    []uint32 `bson:"AlarmType6"`
	Order         uint32   `bson:"Order"`
}

type ListAlarmNotifyResponse

type ListAlarmNotifyResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListAlarmNotifyResult `json:"Result,omitempty"`
}

type ListAlarmNotifyResult

type ListAlarmNotifyResult struct {
	PageResult
	AlarmNotifies []*AlarmNotify
}

type ListCascadePlatformRequest

type ListCascadePlatformRequest struct {
	PlatformName string
	PageNumber   int64
	PageSize     int64
	Order        string
}

type ListCascadePlatformResponse

type ListCascadePlatformResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListCascadePlatformResult `json:"Result,omitempty"`
}

type ListCascadePlatformResult

type ListCascadePlatformResult struct {
	PageResult
	CascadePlatforms []*CascadePlatform `json:"CascadePlatforms"`
}

type ListCascadeTaskRequest

type ListCascadeTaskRequest struct {
	PlatformName  string `json:"PlatformName"`
	PlatformID    string `json:"PlatformID"`
	GroupTreeID   string `json:"GroupTreeID"`
	GroupTreeName string `json:"GroupTreeName"`
	PageNumber    int    `json:"PageNumber"`
	PageSize      int    `json:"PageSize"`
	Order         string `json:"Order"`
}

type ListCascadeTaskResponse

type ListCascadeTaskResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListCascadeTaskResult `json:"Result,omitempty"`
}

type ListCascadeTaskResult

type ListCascadeTaskResult struct {
	PageResult
	CascadeTasks []*CascadeTask `json:"CascadeTasks"`
}

type ListCertificatesRequest

type ListCertificatesRequest struct {
	PageNumber int
	PageSize   int
}

type ListCertificatesResponse

type ListCertificatesResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListCertsResult `json:"Result,omitempty"`
}

type ListCertsResult

type ListCertsResult struct {
	PageResult
	Certs []*SimpleCertInfo
}

type ListDevicesRequest

type ListDevicesRequest struct {
	SpaceID    string
	DeviceID   string
	DeviceNSID string
	DeviceName string
	PageNumber int
	PageSize   int
	Order      string
}

type ListDevicesResponse

type ListDevicesResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListDevicesResult `json:"Result,omitempty"`
}

type ListDevicesResult

type ListDevicesResult struct {
	PageResult
	Devices []*DeviceView
}

type ListGBMediaResp

type ListGBMediaResp struct {
	PageResult
	GBMedias []*GBMediaDownload
}

type ListGBMediaResponse

type ListGBMediaResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           *ListGBMediaResp `json:"Result"`
}

type ListGroupTreeNodesRes

type ListGroupTreeNodesRes struct {
	PageNumber int64            `json:"PageNumber"`
	PageSize   int64            `json:"PageSize"`
	TotalCount int64            `json:"TotalCount"`
	Nodes      []*GroupTreeNode `json:"Nodes"`
}

type ListGroupTreeNodesResponse

type ListGroupTreeNodesResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListGroupTreeNodesRes `json:"Result,omitempty"`
}

type ListHistoryRequest

type ListHistoryRequest struct {
	SpaceID    string
	StreamID   string
	PageNumber int
	PageSize   int
	StartTs    string `json:"StartTs"`
	EndTs      string `json:"EndTs"`
}

type ListHistoryResponse

type ListHistoryResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           []*HistoryResult `json:"Result,omitempty"`
}

type ListSlowLiveResponse

type ListSlowLiveResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListSlowLiveResult `json:"Result,omitempty"`
}

type ListSlowLiveResult

type ListSlowLiveResult struct {
	PageResult
	SlowLiveStreamings []*SlowLiveView `json:"SlowLiveStreamings"`
}

type ListSpaceDomainsRes

type ListSpaceDomainsRes struct {
	Domains interface{} `json:"Domains"`
}

type ListSpaceDomainsResponse

type ListSpaceDomainsResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListSpaceDomainsRes `json:"Result,omitempty"`
}

type ListSpacesRequest

type ListSpacesRequest struct {
	PageNumber int
	PageSize   int
	Order      string
}

type ListSpacesResponse

type ListSpacesResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListSpacesResult `json:"Result,omitempty"`
}

type ListSpacesResult

type ListSpacesResult struct {
	PageResult
	Spaces []*SpaceView
}

type ListStreamRecordsResult

type ListStreamRecordsResult struct {
	PageResult
	StreamRecords []*StreamRecord
}

type ListStreamsRequest

type ListStreamsRequest struct {
	SpaceID    string
	StreamName string
	PageNumber int
	PageSize   int
	Order      string
}

type ListStreamsResponse

type ListStreamsResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListStreamsResult `json:"Result,omitempty"`
}

type ListStreamsResult

type ListStreamsResult struct {
	PageResult
	Streams []*StreamResp
}

type ListStructuredViewCascadeJobRequest

type ListStructuredViewCascadeJobRequest struct {
	JobName    string
	PageNumber int
	PageSize   int
	Order      string
}

type ListStructuredViewCascadeJobResponse

type ListStructuredViewCascadeJobResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListStructuredViewCascadeJobResult `json:"Result,omitempty"`
}

type ListStructuredViewCascadeJobResult

type ListStructuredViewCascadeJobResult struct {
	PageResult
	JobList []*StructuredViewCascadeJob `json:"JobList"`
}

type ListStructuredViewCascadePlatformRequest

type ListStructuredViewCascadePlatformRequest struct {
	PlatformName string
	PageNumber   int
	PageSize     int
	Order        string
}

type ListStructuredViewCascadePlatformResponse

type ListStructuredViewCascadePlatformResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListStructuredViewCascadePlatformResult `json:"Result,omitempty"`
}

type ListStructuredViewCascadePlatformResult

type ListStructuredViewCascadePlatformResult struct {
	PageResult
	PlatformList []*StructuredViewCascadePlatform `json:"PlatformList"`
}

type ListStructuredViewDataRequest

type ListStructuredViewDataRequest struct {
	ViewDataType string
	StartTs      string
	EndTs        string
	ViewID       string
	PageNumber   int
	PageSize     int
	Order        string
}

type ListStructuredViewDataResponse

type ListStructuredViewDataResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListStructuredViewDataResult `json:"Result,omitempty"`
}

type ListStructuredViewDataResult

type ListStructuredViewDataResult struct {
	PageResult
	StructuredViewData []*StructuredViewData `json:"DataList"`
}

type ListStructuredViewResult

type ListStructuredViewResult struct {
	PageResult
	StructuredView []*StructuredView `json:"ViewList"`
}

type ListStructuredViewSpaceResult

type ListStructuredViewSpaceResult struct {
	PageResult
	StructuredViewSpace []*StructuredViewSpace `json:"ViewSpaceList"`
}

type ListStructuredViewSpacesRequest

type ListStructuredViewSpacesRequest struct {
	SpaceName  string
	Order      string
	PageNumber int
	PageSize   int
}

type ListStructuredViewSpacesResponse

type ListStructuredViewSpacesResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListStructuredViewSpaceResult `json:"Result,omitempty"`
}

type ListStructuredViewsRequest

type ListStructuredViewsRequest struct {
	ViewSpaceName string
	ViewName      string
	PageNumber    int
	PageSize      int
	Order         string
}

type ListStructuredViewsResponse

type ListStructuredViewsResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListStructuredViewResult `json:"Result,omitempty"`
}

type ListTemplateRequest

type ListTemplateRequest struct {
	PageNumber int
	PageSize   int
	Order      string
}

type ListTemplateResponse

type ListTemplateResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListTemplatesResult `json:"Result,omitempty"`
}

type ListTemplatesResult

type ListTemplatesResult struct {
	PageResult
	Templates []*Template
}

type LocalMediaDownloadRequest

type LocalMediaDownloadRequest struct {
	SpaceID             string
	DeviceID            string `json:"DeviceID"`
	ChannelID           string `json:"ChannelID"`
	StartTime           int64  `json:"StartTime"`
	EndTime             int64  `json:"EndTime"`
	Version             string `json:"Version"`
	MediaProcess        *Mps   `json:"MediaProcess"`
	DownloadSpeedSingle *int   `json:"DownloadSpeedSingle"` //在本地录像下载的时候时候,不填就以设备维度所设置的速度进行下载
	SchedQuotaKey       string `json:"SchedQuotaKey"`       //调度到哪个集群
}

type LocalMediaDownloadResp

type LocalMediaDownloadResp struct {
	Result bool   `json:"Result"`
	ID     string `json:"ID"`
}

type LocalMediaDownloadResponse

type LocalMediaDownloadResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           LocalMediaDownloadResp `json:"Result,omitempty"`
}

type LogView

type LogView struct {
	Message string `json:"Message"`
}

type LogViews

type LogViews []*LogView

type M3U8Option

type M3U8Option struct {
	ToMp4 *bool
}

type Mps

type Mps struct {
	M3U8Option *M3U8Option `json:"M3U8Option"`
	Subtitle   *Subtitle   `json:"Subtitle"`
}

type NewPackageResponse

type NewPackageResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           *CreateAccountRes `json:"Result,omitempty"`
}

type PageRequest

type PageRequest struct {
	PageNumber int
	PageSize   int
}

type PageResult

type PageResult struct {
	PageNumber int64
	PageSize   int64
	TotalCount int64
}

type ParseRecord

type ParseRecord struct {
	AccountID   string        `json:"AccountID" bson:"AccountID"` // 账号ID
	LibID       string        `json:"LibID" bson:"LibID"`         // 车辆库ID
	ItemID      string        `json:"ItemID" bson:"ItemID"`       // 车辆库车辆 ID
	AITaskID    string        `json:"AITaskID" bson:"AITaskID"`   // AI 任务ID
	Plate       string        `json:"Plate" bson:"Plate"`         // 车牌
	Ts          time.Duration `json:"Ts" bson:"Ts"`               // 时间戳
	TosKey      string        `json:"TosKey" bson:"TosKey"`       // 车辆截图
	Score       float32       `json:"Score" bson:"Score"`         // AI识别打分
	DownloadUrl string        `json:"DownloadUrl,omitempty"`      // 存储网关下载地址
}

ai releated model

type Permissions

type Permissions struct {
	Charge *Charge `json:"Charge"`
}

type PhotoObjectDetail

type PhotoObjectDetail struct {
	PhotoID             string `json:"PhotoID"`
	InfoKind            string `json:"InfoKind"` //人工采集还是自动采集
	ImageSource         string `json:"ImageSource"`
	StoragePath         string `json:"StoragePath"`
	Type                string `json:"Type"` //"11"人脸小图, "14"场景大图
	Title               string `json:"Title"`
	FileFormat          string `json:"FileFormat"`
	ShotTime            string `json:"ShotTime"`
	ContentDescription  string `json:"ContentDescription"`  //对图像内容的简要描述
	ShotPlaceFullAdress string `json:"ShotPlaceFullAdress"` //拍摄地点区划内详细地址
	SecurityLevel       string `json:"SecurityLevel"`
	Width               int    `json:"Width"`
	Height              int    `json:"Height"`
	CreateTime          string `json:"CreateTime"`
	DownloadUrl         string `json:"DownloadUrl"`
	DeviceID            string `json:"device_id"`
}

type PlayBackControlRequest

type PlayBackControlRequest struct {
	StreamID string  `json:"StreamID"`
	Cmd      int     `json:"Cmd"`
	Ntp      string  `json:"Ntp"`
	Scale    float32 `json:"Scale"`
}

type PlayBackStartRequest

type PlayBackStartRequest struct {
	DeviceID            string `json:"DeviceID"`
	ChannelID           string `json:"ChannelID"`
	StartTime           int64  `json:"StartTime"`
	EndTime             int64  `json:"EndTime"`
	Version             string `json:"Version"`
	MediaProcess        *Mps   `json:"MediaProcess"`
	DownloadSpeedSingle *int   `json:"DownloadSpeedSingle"` //在本地录像下载的时候时候,不填就以设备维度所设置的速度进行下载
	SchedQuotaKey       string `json:"SchedQuotaKey"`       //调度到哪个集群
}

type PlayBackStartResp

type PlayBackStartResp struct {
	StreamID string   `json:"StreamID"`
	PullUrls []string `json:"PullUrls"`
	PushUrl  string   `json:"PushUrl"`
}

type PlayBackStartResponse

type PlayBackStartResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           PlayBackStartResp `json:"Result,omitempty"`
}

type PresetItem

type PresetItem struct {
	PresetID   string `json:"PresetID"`
	PresetName string `json:"PresetName"`
}

type PresetList

type PresetList struct {
	Num   int          `json:"Num"`
	Items []PresetItem `json:"Item"`
}

type QualityDetection

type QualityDetection struct {
	AICapabilityTypeBlackout     *int `json:"blackout"`
	AICapabilityTypeHinder       *int `json:"hinder"`
	AICapabilityTypeOverexposure *int `json:"overexposure"`
	AICapabilityTypeBlur         *int `json:"blur"`
	AICapabilityTypeNoise        *int `json:"noise"`
}

type QueryInterceptorFunc

type QueryInterceptorFunc func(api string, v url.Values) url.Values

type QueryPresetInfoRequest

type QueryPresetInfoRequest struct {
	SipID     string
	DeviceID  string `json:"DeviceID"`
	ChannelID string `json:"ChannelID"`
	TimeOut   int    `json:"TimeOut"`
}

type QueryPresetInfoResponse

type QueryPresetInfoResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           PresetList `json:"Result,omitempty"`
}

type RawResponse

type RawResponse struct {
	ResponseMetadata base.ResponseMetadata
}

type RecordItem

type RecordItem struct {
	DeviceID  string `json:"DeviceID"`
	Name      string `json:"Name"`
	StartTime string `json:"StartTime"`
	EndTime   string `json:"EndTime"`
	Secrecy   string `json:"Secrecy"`
	Type      string `json:"Type"`
	FileSize  string `json:"FileSize"`
}

type RecordList

type RecordList struct {
	Num   int          `json:"Num"`
	Items []RecordItem `json:"Items"`
}

type RecordResult

type RecordResult struct {
	StartTs  string  `json:"StartTs"`
	EndTs    string  `json:"EndTs"`
	Duration float64 `json:"Duration"`
	Cover    string  `json:"Cover"`
	Format   string  `json:"Format"`
}

type RecordTemplate

type RecordTemplate struct {
	RecordDuration int                  `json:"RecordDuration"` // ms
	SliceDuration  int                  `json:"SliceDuration"`
	TTL            TemplateTTLConfig    `json:"TTL"`
	Type           string               `json:"Type"`
	Format         string               `json:"Format"`
	Path           string               `json:"-"`
	Bucket         TemplateBucketConfig `json:"-"`
}

type RectParams

type RectParams struct {
	Top    int `json:"top"`
	Left   int `json:"left"`
	Width  int `json:"width"`
	Height int `json:"height"`
}

type ResetAlarmRequest

type ResetAlarmRequest struct {
	SipID      string
	DeviceNSID string
	ChannelID  string
}

type SDKGeneralDeviceAVAbilityBitmask

type SDKGeneralDeviceAVAbilityBitmask int

type SDKNVRAVAbilityEnum

type SDKNVRAVAbilityEnum int

type SDKProductValidDurationEnum

type SDKProductValidDurationEnum int

type ScreenResult

type ScreenResult struct {
}

type ScreenshotTemplate

type ScreenshotTemplate struct {
	ScreenshotPeriod int                  `json:"ScreenshotPeriod"` // ms
	Type             []ScreenshotType     `json:"Type"`             //多种截图方式
	Bucket           TemplateBucketConfig `json:"-"`
	TTL              TemplateTTLConfig    `json:"TTL"`
}

type ScreenshotType

type ScreenshotType string

type ScreenshotTypeInt

type ScreenshotTypeInt int32

type SegInfo

type SegInfo struct {
	SegUrl     string           `json:"SegUrl"`
	RectParams RectParams       `json:"RectParams"`
	Vehicle    VehicleRecord    `json:"Vehicle"`
	Face       FaceRecord       `json:"Face"`
	VQ         QualityDetection `json:"VQ"`
}

type SetAlarmGuardRequest

type SetAlarmGuardRequest struct {
	SipID      string
	DeviceNSID string
	ChannelID  string
	Enable     string
}

type SetSpaceTemplateRequest

type SetSpaceTemplateRequest struct {
	SpaceID      string
	TemplateType string
	TemplateID   string `json:"TemplateID"`
}

type ShareGroupNodesRequest

type ShareGroupNodesRequest struct {
	TaskID       string   `json:"TaskID"`
	GroupNodeIDs []string `json:"GroupNodeIDs"`
}

type SignSlowliveWsTokenRequest

type SignSlowliveWsTokenRequest struct {
	ValidDuration int
	SlowliveID    string
}

type SignSlowliveWsTokenResponse

type SignSlowliveWsTokenResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           SignSlowliveWsTokenResult `json:"Result,omitempty"`
}

type SignSlowliveWsTokenResult

type SignSlowliveWsTokenResult struct {
	Token      string `json:"Token"`
	ExpireAt   int64  `json:"ExpireAt"`
	SlowliveID string `json:"SlowliveID"`
}

type SimpleCertInfo

type SimpleCertInfo struct {
	ChainID   string `json:"ChainID"`
	CertName  string `json:"CertName"`
	Status    string `json:"Status"`
	Domain    string `json:"Domain"`
	CreateAt  int64  `json:"CreateAt"`
	UpdateAt  int64  `json:"UpdateAt"`
	NotBefore int64  `json:"NotBefore"`
	NotAfter  int64  `json:"NotAfter"`
}

type SimpleTemplate

type SimpleTemplate struct {
	TemplateID       string `json:"TemplateID"`
	TemplateName     string `json:"TemplateName"`
	ApplyToALLStream bool   `json:"-"`
	BindTime         string `json:"BindTime"`
}

type SipServer

type SipServer struct {
	SipId     string         `json:"SipId"`
	SipDomain string         `json:"SipDomain"`
	SipIp     string         `json:"SipIp"`
	SipPort   map[string]int `json:"SipPort"`
}

type SlowLiveConfig

type SlowLiveConfig struct {
	EnableRolling   bool                    `json:"EnableRolling"`
	RollingInterval int                     `json:"RollingInterval"`
	StreamList      []*SlowLiveStreamConfig `json:"StreamList"`
}

type SlowLiveRequest

type SlowLiveRequest struct {
	PageNumber int
	PageSize   int
}

type SlowLiveResponse

type SlowLiveResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           IDResponse `json:"Result,omitempty"`
}

type SlowLiveStatus

type SlowLiveStatus string

type SlowLiveStreamConfig

type SlowLiveStreamConfig struct {
	StreamID    string `json:"StreamID"`
	EnableAudio bool   `json:"EnableAudio"`
}

type SlowLiveView

type SlowLiveView struct {
	ID                      string          `json:"ID"`
	RelatedSpaces           []string        `json:"RelatedSpaces"`
	Name                    string          `json:"Name"`
	MergingMode             string          `json:"MergingMode"`
	OutputResolution        string          `json:"OutputResolution"`
	OutputFrameRate         int             `json:"OutputFrameRate"`
	OutputEncoding          string          `json:"OutputEncoding"`
	CreateTimestamp         int64           `json:"CreateTimestamp"`
	PreviousClosedTimestamp int64           `json:"PreviousClosedTimestamp"`
	FinishTimestamp         int64           `json:"FinishTimestamp"`
	Status                  SlowLiveStatus  `json:"Status"`
	EnablePushingStream     *bool           `json:"EnablePushingStream"`
	Config                  *SlowLiveConfig `json:"Config"`
	AccountID               string          `json:"AccountID"`
}

type SpaceDomain

type SpaceDomain struct {
	Domain        string           `json:"Domain"`
	Type          string           `json:"Type"`
	Status        string           `json:"Status"`
	CNAME         string           `json:"CNAME"`
	CNAMEStatus   string           `json:"CNAMEStatus"`
	Default       bool             `json:"Default"`
	Https         SpaceDomainHttps `json:"https"`
	CreatedAt     string           `json:"CreatedAt"`
	UpdatedAt     string           `json:"UpdatedAt"`
	TimeFlag      bool             `json:"TimeFlag"`
	MainKey       string           `json:"MainKey"`
	SpareKey      string           `json:"SpareKey"`
	ValidDuration int64            `json:"ValidDuration"`
}

type SpaceDomainHttps

type SpaceDomainHttps struct {
	Enable        bool   `json:"Enable"`
	CertificateID string `json:"CertificateID"`
}

type SpaceGB

type SpaceGB struct {
	Domain       string `json:"-"`
	PullOnDemand bool   `json:"PullOnDemand"`
}

type SpaceRequest

type SpaceRequest struct {
	SpaceID string
}

type SpaceResponse

type SpaceResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           IDResponse `json:"Result,omitempty"`
}

type SpaceTemplate

type SpaceTemplate struct {
	Screenshot SimpleTemplate `json:"Screenshot"`
	Record     SimpleTemplate `json:"Record"`
	AI         SimpleTemplate `json:"AI"`
}

type SpaceView

type SpaceView struct {
	SpaceName     string                 `json:"SpaceName"`
	Description   string                 `json:"Description"`
	SpaceID       string                 `json:"SpaceID"`
	Region        string                 `json:"Region"`
	AccessType    string                 `json:"AccessType"` //GB/RTMP
	Status        string                 `json:"Status"`
	GB            SpaceGB                `json:"GB"`
	HLSLowLatency bool                   `json:"HLSLowLatency"`
	CreatedAt     string                 `json:"CreatedAt"`
	UpdatedAt     string                 `json:"UpdatedAt"`
	Domains       map[string]SpaceDomain `json:"Domains"`
	SipServer     *SipServer             `json:"SipServer"`
	CallbackURL   *string                `json:"CallbackURL"`
	Template      struct {
		Screenshot SimpleTemplate `json:"Screenshot"`
		Record     SimpleTemplate `json:"Record"`
		AI         SimpleTemplate `json:"AI"`
	} `bson:"Template"`
}

type Specification

type Specification struct {
	Name  string  `json:"Name"`
	Type  string  `json:"Type"`
	Code  string  `json:"Code"`
	Price float64 `json:"Price"`
}

type StartVoiceTalkRequest

type StartVoiceTalkRequest struct {
	SpaceID    string
	DeviceNSID string
	UseTcp     bool
}

type StartVoiceTalkResp

type StartVoiceTalkResp struct {
	AudioSendUrl string `json:"AudioSendUrl"`
}

type StartVoiceTalkResponse

type StartVoiceTalkResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           StartVoiceTalkResp
}

type StopVoiceTalkRequest

type StopVoiceTalkRequest struct {
	SpaceID    string
	DeviceNSID string
}

type StopVoiceTalkResponse

type StopVoiceTalkResponse struct {
	ResponseMetadata base.ResponseMetadata
}

type StreamLogsRequest

type StreamLogsRequest struct {
	StartTs    string
	EndTs      string
	StreamID   string
	Order      string
	PageNumber int
	PageSize   int
}

type StreamLogsResponse

type StreamLogsResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           ListStreamRecordsResult `json:"Result,omitempty"`
}

type StreamRecord

type StreamRecord struct {
	RecordID  string `bson:"RecordID"`
	StreamID  string `bson:"StreamID"`
	StartTime int    `bson:"StartTime"`
	EndTime   int    `bson:"EndTime"`
	Duration  int    `bson:"Duration"`
}

type StreamRequest

type StreamRequest struct {
	StreamID string
}

type StreamResp

type StreamResp struct {
	*StreamView
	Logs LogViews
}

type StreamResponse

type StreamResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           IDResponse `json:"Result,omitempty"`
}

type StreamTemplate

type StreamTemplate struct {
	TemplateName string `json:"-"`
	TemplateID   string `json:"TemplateID"`
}

type StreamView

type StreamView struct {
	AccountID       string         `json:"AccountID,omitempty"`
	SpaceID         string         `json:"SpaceID"`
	SIPID           string         `json:"SIPID"`
	StreamName      string         `json:"StreamName"`
	StreamID        string         `json:"StreamID"`
	SpaceAccessType string         `json:"SpaceAccessType"`
	DeviceID        string         `json:"DeviceID"`
	DeviceNSID      string         `json:"DeviceNSID"`
	ChannelID       string         `json:"ChannelID"`
	Status          string         `json:"Status"`
	Description     string         `json:"Description"`
	Screenshot      StreamTemplate `json:"Screenshot"`
	Record          StreamTemplate `json:"Record"`
	AI              StreamTemplate `json:"AI"`
	CreatedAt       string         `json:"CreatedAt"`
	UpdatedAt       string         `json:"UpdatedAt"`
	PushUrlDDL      int64          `json:"PushUrlDDL,omitempty"`
	PushUrl         string         `json:"PushUrl,omitempty"`
	PullUrls        []string       `json:"PullUrls"`
	FailedTimes     int            `json:"FailedTimes"`
	RecentPushTs    string         `json:"RecentPushTs"`    //最近推流时间
	StreamLogs      LogViews       `json:"StreamLogs"`      //stream日志
	RtpTransportTcp bool           `json:"RtpTransportTcp"` //rtp传输协议是否使用tcp
	DemandLive      bool           `json:"DemandLive"`
}

type StructuredView

type StructuredView struct {
	ID               string               `json:"ID"`
	AccountID        string               `json:"AccountID"`
	ViewName         string               `json:"ViewName"`
	ViewType         string               `json:"ViewType"`
	ViewCode         string               `json:"ViewCode"`
	ViewSpaceID      string               `json:"ViewSpaceID"`
	ViewSpaceName    string               `json:"ViewSpaceName"`
	ViewIP           string               `json:"ViewIP"`
	ViewPort         int                  `json:"ViewPort"`
	Protocol         string               `json:"Protocol"`
	Username         string               `json:"Username"`
	Password         string               `json:"Password"`
	Description      string               `json:"Description"`
	Location         string               `json:"Location"`
	AdministrativeID string               `json:"AdministrativeID"`
	CreateTimestamp  int64                `json:"CreateTimestamp"`
	UpdateTimestamp  int64                `json:"UpdateTimestamp"`
	Status           StructuredViewStatus `bson:"Status" json:"Status"`
}

type StructuredViewCascadeJob

type StructuredViewCascadeJob struct {
	ID              string                         `json:"ID"`
	AccountID       string                         `json:"AccountID"`
	JobName         string                         `json:"JobName"`
	ViewSpaceID     string                         `json:"ViewSpaceID"`
	ViewSpaceName   string                         `json:"ViewSpaceName"`
	ViewSpaceCode   string                         `json:"ViewSpaceCode"`
	PlatformID      string                         `json:"PlatformID"`
	PlatformCode    string                         `json:"PlatformCode"`
	PlatformName    string                         `json:"PlatformName"`
	CreateTimestamp int64                          `json:"CreateTimestamp"`
	UpdateTimestamp int64                          `json:"UpdateTimestamp"`
	Status          StructuredViewCascadeJobStatus `json:"Status"`
	Description     string                         `json:"Description"`
}

type StructuredViewCascadeJobStatus

type StructuredViewCascadeJobStatus string

type StructuredViewCascadePlatform

type StructuredViewCascadePlatform struct {
	ID              string                              `json:"ID"`
	AccountID       string                              `json:"AccountID"`
	PlatformName    string                              `json:"PlatformName"`
	PlatformCode    string                              `json:"PlatformCode"`
	PlatformIP      string                              `json:"PlatformIP"`
	PlatformPort    int                                 `json:"PlatformPort"`
	Description     string                              `json:"Description"`
	Username        string                              `json:"Username"`
	Password        string                              `json:"Password"`
	CreateTimestamp int64                               `json:"CreateTimestamp"`
	UpdateTimestamp int64                               `json:"UpdateTimestamp"`
	Status          StructuredViewCascadePlatformStatus `json:"Status"`
}

type StructuredViewCascadePlatformStatus

type StructuredViewCascadePlatformStatus string

type StructuredViewData

type StructuredViewData struct {
	ID           string `json:"ID"`
	ViewDataType string `json:"ViewDataType"`
	Timestamp    int64  `json:"Timestamp"`
	Url          string `json:"Url"`
}

type StructuredViewResponse

type StructuredViewResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           IDResponse `json:"Result,omitempty"`
}

type StructuredViewSpace

type StructuredViewSpace struct {
	ID              string                    `json:"ID"`
	AccountID       string                    `json:"AccountID"`
	SpaceName       string                    `json:"SpaceName"`
	ViewNumber      int64                     `json:"ViewNumber"`
	StoragePeriod   int                       `json:"StoragePeriod"`
	StorageType     string                    `json:"StorageType"`
	Region          string                    `json:"Region"`
	Description     string                    `json:"Description"`
	SpaceCode       string                    `json:"SpaceCode"`
	SpaceIP         string                    `json:"SpaceIP"`
	SpacePort       int                       `json:"SpacePort"`
	CreateTimestamp int64                     `json:"CreateTimestamp"`
	UpdateTimestamp int64                     `json:"UpdateTimestamp"`
	Status          StructuredViewSpaceStatus `json:"Status"`
}

type StructuredViewSpaceStatus

type StructuredViewSpaceStatus string

type StructuredViewStatus

type StructuredViewStatus string

type Subtitle

type Subtitle struct {
	SubtitleList SubtitleList `json:"SubtitleList"`
	SubtitleSrc  string       `json:"SubtitleSrc"`
	Font         Font         `json:"Font"`
}

type SubtitleItem

type SubtitleItem struct {
	Start   int64  `json:"Start"` //millsecond
	End     int64  `json:"End"`   //millsecond
	Content string `json:"Content"`
}

type SubtitleList

type SubtitleList []*SubtitleItem

type Template

type Template struct {
	AccountID    string              `json:"-"`
	TemplateID   string              `json:"TemplateID"`
	TemplateName string              `json:"TemplateName"`
	TemplateType string              `json:"TemplateType"`
	Screenshot   *ScreenshotTemplate `json:"Screenshot,omitempty"`
	Record       *RecordTemplate     `json:"Record,omitempty"`
	AI           *AITemplate         `json:"AI,omitempty"`
	CreatedAt    string              `json:"CreatedAt"`
	UpdatedAt    string              `json:"UpdatedAt"`
	Status       string              `json:"-"`
}

type TemplateBucketConfig

type TemplateBucketConfig struct {
	Region    string `json:"Region"`
	Name      string `json:"Name"`
	Path      string `json:"Path"`
	AccessKey string `json:"AccessKey"`
}

type TemplateRequest

type TemplateRequest struct {
	TemplateID string
}

type TemplateResponse

type TemplateResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           IDResponse `json:"Result,omitempty"`
}

type TemplateTTLConfig

type TemplateTTLConfig struct {
	Days int `json:"Days"`
}

type TypeItem

type TypeItem struct {
	Name  string
	Extra string
}

type UnbindCertRequest

type UnbindCertRequest struct {
	SpaceID string
	Domain  string `json:"Domain"`
}

type UpdateAccountRequest

type UpdateAccountRequest struct {
	ChargeMode *ChargeMode `json:"ChargeMode"`
}

type UpdateAuthInSpaceRequest

type UpdateAuthInSpaceRequest struct {
	SpaceID       string `json:"SpaceID"`
	Domain        string `json:"Domain"`
	MainKey       string `json:"MainKey"`
	SpareKey      string `json:"SpareKey"`
	ValidDuration int64  `json:"ValidDuration"`
}

type UpdateCascadePlatformRequest

type UpdateCascadePlatformRequest struct {
	PlatformID   string           `json:"PlatformID"`
	PlatformName string           `json:"PlatformName"` // 上级平台名称
	Description  string           `json:"Description"`  // 上级平台描述
	SipConfig    CascadeSipConfig `json:"SipConfig"`
	EnableAccess bool             `json:"EnableAccess"` // 平台授权
	EnablePTZ    bool             `json:"EnablePTZ"`    // PTZ授权
}

type UpdateCascadePlatformResponse

type UpdateCascadePlatformResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           IDResponse `json:"Result,omitempty"`
}

type UpdateCascadeTaskArg

type UpdateCascadeTaskArg struct {
	TaskName string `json:"TaskName"`
}

type UpdateCertRequest

type UpdateCertRequest struct {
	SSLPublic  string `json:"SSLPublic"`
	SSLPrivate string `json:"SSLPrivate"`
	ChainID    string `json:"ChainID"`
	CertName   string `json:"CertName"`
	CertDesc   string `json:"CertDesc"`
}

type UpdateDeviceArg

type UpdateDeviceArg struct {
	DeviceName           *string            `json:"DeviceName"`
	DeviceNSID           *string            `json:"DeviceNSID"`
	Username             *string            `json:"Username"`
	Password             *string            `json:"Password"`
	Description          *string            `json:"Description"`
	AutoPullAfterRegiter *bool              `json:"AutoPullAfterRegiter"`
	AlertNotification    *AlertNotification `json:"AlertNotification"`
	ChannelNum           *int               `json:"-"`
	Status               string             `json:"-"`
	Type                 string             `json:"Type"`
	RtpTransportTcp      *bool              `json:"RtpTransportTcp"` //流传输协议tcp为true,否则默认udp
	Location             *string            `json:"Location"`        //可以修改设备的地址位置和坐标
	Coordinates          *Coordinates       `json:"Coordinates"`
	OnChannelNum         *int               `json:"-"`
}

type UpdateDeviceRequest

type UpdateDeviceRequest struct {
	DeviceID             string
	DeviceName           *string            `json:"DeviceName"`
	DeviceNSID           *string            `json:"DeviceNSID"`
	Username             *string            `json:"Username"`
	Password             *string            `json:"Password"`
	Description          *string            `json:"Description"`
	AutoPullAfterRegiter *bool              `json:"AutoPullAfterRegiter"`
	AlertNotification    *AlertNotification `json:"AlertNotification"`
	Type                 string             `json:"Type"`
	RtpTransportTcp      *bool              `json:"RtpTransportTcp"` //流传输协议tcp为true,否则默认udp
	Location             *string            `json:"Location"`        //可以修改设备的地址位置和坐标
	Coordinates          *Coordinates       `json:"Coordinates"`
}

type UpdateDomainHTTPSRequest

type UpdateDomainHTTPSRequest struct {
	SpaceID       string
	Domain        string
	Enable        bool   `json:"Enable"`
	CertificateID string `json:"CertificateID"`
}

type UpdateGroupTreeNodeRequest

type UpdateGroupTreeNodeRequest struct {
	ID          string `json:"ID"`
	Name        string `json:"Name"`
	Description string `json:"Description"`
	DeviceID    string `json:"DeviceID"`
}

type UpdateSlowLiveRequest

type UpdateSlowLiveRequest struct {
	LiveStreamID            string
	ID                      string          `json:"ID"`
	RelatedSpaces           []string        `json:"RelatedSpaces"`
	Name                    string          `json:"Name"`
	MergingMode             string          `json:"MergingMode"`
	OutputResolution        string          `json:"OutputResolution"`
	OutputFrameRate         int             `json:"OutputFrameRate"`
	OutputEncoding          string          `json:"OutputEncoding"`
	CreateTimestamp         int64           `json:"CreateTimestamp"`
	PreviousClosedTimestamp int64           `json:"PreviousClosedTimestamp"`
	FinishTimestamp         int64           `json:"FinishTimestamp"`
	Status                  SlowLiveStatus  `json:"Status"`
	EnablePushingStream     *bool           `json:"EnablePushingStream"`
	Config                  *SlowLiveConfig `json:"Config"`
	AccountID               string          `json:"AccountID"`
}

type UpdateSpaceDomainRequest

type UpdateSpaceDomainRequest struct {
	SpaceID     string
	SpaceDomain string `json:"SpaceDomain"`
	Default     bool   `json:"Default"`
}

type UpdateSpaceDomainResponse

type UpdateSpaceDomainResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           map[string]SpaceDomain `json:"Result,omitempty"`
}

type UpdateSpaceRequest

type UpdateSpaceRequest struct {
	SpaceID       string
	SpaceName     *string `json:"SpaceName"`
	Description   *string `json:"Description"`
	HLSLowLatency *bool   `json:"HLSLowLatency"`
	GB            struct {
		PullOnDemand *bool `json:"PullOnDemand"`
	} `json:"GB"`
	CallbackURL *string `json:"CallbackURL"`
}

type UpdateStreamRequest

type UpdateStreamRequest struct {
	SpaceID        string
	StreamID       string
	StreamName     *string `json:"StreamName"`
	Description    *string `json:"Description"`
	TemplateEnable bool    `json:"template_enable"`
	Screenshot     *struct {
		TemplateName string `json:"TemplateName"`
		TemplateID   string `json:"TemplateID"`
	} `json:"Screenshot"`
	Record *struct {
		TemplateName string `json:"TemplateName"`
		TemplateID   string `json:"TemplateID"`
	} `json:"Record"`
	PushUrl    string `json:"push_url"`
	Status     string `json:"Status"`
	PushUrlDDL *int64 `json:"PushUrlDDL"`
}

type UpdateStructuredCascadeJobRequest

type UpdateStructuredCascadeJobRequest struct {
	JobID           string
	ID              string                         `json:"ID"`
	AccountID       string                         `json:"AccountID"`
	JobName         string                         `json:"JobName"`
	ViewSpaceID     string                         `json:"ViewSpaceID"`
	ViewSpaceName   string                         `json:"ViewSpaceName"`
	ViewSpaceCode   string                         `json:"ViewSpaceCode"`
	PlatformID      string                         `json:"PlatformID"`
	PlatformCode    string                         `json:"PlatformCode"`
	PlatformName    string                         `json:"PlatformName"`
	CreateTimestamp int64                          `json:"CreateTimestamp"`
	UpdateTimestamp int64                          `json:"UpdateTimestamp"`
	Status          StructuredViewCascadeJobStatus `json:"Status"`
	Description     string                         `json:"Description"`
}

type UpdateStructuredViewCascadePlatformRequest

type UpdateStructuredViewCascadePlatformRequest struct {
	PlatformID      string
	ID              string                              `json:"ID"`
	AccountID       string                              `json:"AccountID"`
	PlatformName    string                              `json:"PlatformName"`
	PlatformCode    string                              `json:"PlatformCode"`
	PlatformIP      string                              `json:"PlatformIP"`
	PlatformPort    int                                 `json:"PlatformPort"`
	Description     string                              `json:"Description"`
	Username        string                              `json:"Username"`
	Password        string                              `json:"Password"`
	CreateTimestamp int64                               `json:"CreateTimestamp"`
	UpdateTimestamp int64                               `json:"UpdateTimestamp"`
	Status          StructuredViewCascadePlatformStatus `json:"Status"`
}

type UpdateStructuredViewRequest

type UpdateStructuredViewRequest struct {
	ViewID           string
	ID               string               ` json:"ID"`
	AccountID        string               ` json:"AccountID"`
	ViewName         string               ` json:"ViewName"`
	ViewType         string               `json:"ViewType"`
	ViewCode         string               ` json:"ViewCode"`
	ViewSpaceID      string               ` json:"ViewSpaceID"`
	ViewSpaceName    string               ` json:"ViewSpaceName"`
	ViewIP           string               `json:"ViewIP"`
	ViewPort         int                  ` json:"ViewPort"`
	Protocol         string               ` json:"Protocol"`
	Username         string               ` json:"Username"`
	Password         string               ` json:"Password"`
	Description      string               ` json:"Description"`
	Location         string               ` json:"Location"`
	AdministrativeID string               ` json:"AdministrativeID"`
	CreateTimestamp  int64                ` json:"CreateTimestamp"`
	UpdateTimestamp  int64                ` json:"UpdateTimestamp"`
	Status           StructuredViewStatus ` json:"Status"`
}

type UpdateStructuredViewSpaceRequest

type UpdateStructuredViewSpaceRequest struct {
	SpaceID         string
	ID              string                    `json:"ID"`
	AccountID       string                    `json:"AccountID"`
	SpaceName       string                    `json:"SpaceName"`
	ViewNumber      int64                     `json:"ViewNumber"`
	StoragePeriod   int                       `json:"StoragePeriod"`
	StorageType     string                    `json:"StorageType"`
	Region          string                    `json:"Region"`
	Description     string                    `json:"Description"`
	SpaceCode       string                    `json:"SpaceCode"`
	SpaceIP         string                    `json:"SpaceIP"`
	SpacePort       int                       `json:"SpacePort"`
	CreateTimestamp int64                     `json:"CreateTimestamp"`
	UpdateTimestamp int64                     `json:"UpdateTimestamp"`
	Status          StructuredViewSpaceStatus `json:"Status"`
}

type UpdateTemplateRequest

type UpdateTemplateRequest struct {
	TemplateID   string
	TemplateName *string             `json:"TemplateName"`
	Screenshot   *ScreenshotTemplate `json:"Screenshot"`
	Record       *RecordTemplate     `json:"Record"`
	AI           *AITemplate         `json:"AI"`
	Enable       *bool               `json:"enable"`
}

type UploadCertRequest

type UploadCertRequest struct {
	CertName   string `json:"CertName"`
	CertDesc   string `json:"CertDesc"`
	SSLPublic  string `json:"SSLPublic"`
	SSLPrivate string `json:"SSLPrivate"`
}

type UploadCertResponse

type UploadCertResponse struct {
	ResponseMetadata base.ResponseMetadata
	Result           map[string]string `json:"Result,omitempty"`
}

type VehicleRecord

type VehicleRecord struct {
	ObjectID       int          `json:"ObjectID,omitempty"`   // 识别ObjectID
	Plate          string       `json:"Plate,omitempty"`      // 车牌
	Brand          string       `json:"Brand,omitempty"`      // 品牌
	Type           string       `json:"Type,omitempty"`       // 车辆类型
	Color          string       `json:"Color,omitempty"`      // 车颜色
	Status         string       `json:"Status,omitempty"`     // 车损状态
	RectParams     *RectParams  `json:"RectParams,omitempty"` // 车辆坐标
	Score          float32      `json:"Score,omitempty"`      // 打分
	CarParseRecord *ParseRecord `json:"ParseRecord,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL