Documentation ¶
Index ¶
- type AmountStatistics
- type ApplicationInfo
- type AudioDetail
- type AudioDetailList
- type AudioResult
- type AudioResultDetail
- type AudioScanResultDetail
- type AudioTask
- type AuditRange
- type BindWebsiteInfo
- type BindWebsiteReq
- type BlockDetail
- type BucketPrefixCfg
- type Callback
- type ConsumeAmount
- type ContactGroup
- type ContactPerson
- type Contactor
- type CustomInfo
- type CustomItemInfo
- type CustomItemReq
- type CustomReq
- type DataConsumeData
- type DataConsumeStatement
- type DataOverview
- type DataResult
- type DataStatement
- type Face
- type FeedbackCensorLibReq
- type FeedbackTaskInfo
- type Frame
- type FrameCfg
- type FrameConf
- type FrameDetail
- type FrozenThreshold
- type HandleWebsiteResultsReq
- type HintWordsInfo
- type IdReq
- type ImageResult
- type ImageResultDetail
- type ImageTask
- type KeyUrls
- type LimitInfo
- type LogoData
- type OrderInfo
- type OssCallback
- type OssCallbackReq
- type OssDataResult
- type OssDataUnReview
- type OssScanCfg
- type OssScanCfgReq
- type OssScanReviewReq
- type PackInfo
- type ProgramCodeData
- type QrcodeData
- type SFaceData
- type ScanConf
- type Score
- type SetLimitReq
- type SetWarningReq
- type StsAuthReq
- type SubmitWebsiteReq
- type SystemConf
- type TaskData
- type TaskDatas
- type TextResult
- type TextResultDetail
- type TextTask
- type UserDetail
- type VerifyWebsiteReq
- type VideoDetail
- type VideoDetailList
- type VideoResult
- type VideoResultDetail
- type VideoTask
- type WarningRuleCfg
- type WebsiteDetail
- type WebsiteInstanceInfo
- type WebsiteResultInfo
- type WebsiteRiskLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmountStatistics ¶
type ApplicationInfo ¶
type ApplicationInfo struct { /* 是否可用, 0-不可用 1-可用 (Optional) */ Valid int `json:"valid"` }
type AudioDetail ¶
type AudioDetail struct { /* 总时长 (Optional) */ Audio_time int `json:"audio_time"` /* 疑似时长 (Optional) */ Audio_review_time int `json:"audio_review_time"` /* 违规时长 (Optional) */ Audio_block_time int `json:"audio_block_time"` /* 正常时长 (Optional) */ Audio_pass_time int `json:"audio_pass_time"` /* 涉黄违规时长 (Optional) */ Porn_block_time int `json:"porn_block_time"` /* 涉政违规时长 (Optional) */ Politics_block_time int `json:"politics_block_time"` /* 涉恐违规时长 (Optional) */ Terrorism_block_time int `json:"terrorism_block_time"` }
type AudioDetailList ¶
type AudioDetailList struct { /* 总时长,单位为分钟 (Optional) */ Audio_time []int `json:"audio_time"` /* 正常时长,单位为分钟 (Optional) */ Audio_pass_time []int `json:"audio_pass_time"` /* 疑似时长,单位为分钟 (Optional) */ Audio_review_time []int `json:"audio_review_time"` /* 违规时长,单位为分钟 (Optional) */ Audio_block_time []int `json:"audio_block_time"` }
type AudioResult ¶
type AudioResult struct { /* 错误码,和HTTP的status code一致 (Optional) */ Code int `json:"code"` /* 错误描述信息 (Optional) */ Msg string `json:"msg"` /* 对应请求的dataId (Optional) */ DataId string `json:"dataId"` /* 该检测任务的ID (Optional) */ TaskId string `json:"taskId"` /* 对应请求中的url (Optional) */ Url string `json:"url"` /* 返回结果。调用成功时(code=200),返回结果中包含一个或多个元素。每个元素是个结构体,具体结构描述见AudioResultDetail (Optional) */ Results []AudioResultDetail `json:"results"` }
type AudioResultDetail ¶
type AudioResultDetail struct { /* 检测场景,和调用请求中的场景对应 (Optional) */ Scene string `json:"scene"` /* 检测结果的分类,与具体的scene对应。取值范围参考scene和label说明 (Optional) */ Label string `json:"label"` /* 结果为该分类的概率,取值范围为0.00-100.00。值越高,表示越有可能属于改该子分类 (Optional) */ Score float32 `json:"score"` /* 建议用户执行的操作,取值范围pass:图片正常,无需进行其余操作,或者未识别出目标对象review:检测结果不确定,需要进行人工审核,或识别出目标对象block:图片违规,建议执行进一步操作(如直接删除或做限制处理) (Optional) */ Suggestion string `json:"suggestion"` /* 语音对应的文本详情(每一句文本对应一个元素),包含一个或者多个元素,具体结构描述见detail。 (Optional) */ Details []AudioScanResultDetail `json:"details"` }
type AudioScanResultDetail ¶
type AudioScanResultDetail struct { /* 句子开始的时间,单位是秒。 (Optional) */ StartTime int `json:"startTime"` /* 句子结束的时间,单位是秒。 (Optional) */ EndTime int `json:"endTime"` /* 语音转换成文本的结果。 (Optional) */ Text string `json:"text"` /* 该句语言的检测结果的分类,取值参见audioScenes与label参数说明。 (Optional) */ Label string `json:"label"` /* 命中该风险的上下文信息。具体结构描述见hintWordsInfo (Optional) */ HintWordsInfos []HintWordsInfo `json:"hintWordsInfos"` }
type AuditRange ¶ added in v1.45.0
type BindWebsiteInfo ¶ added in v1.45.0
type BindWebsiteInfo struct { /* 协议,http或https (Optional) */ Scheme string `json:"scheme"` /* 域名,不含协议 (Optional) */ Host string `json:"host"` /* 全站检测频率,1d-1天,7d-7天 (Optional) */ HostInterval string `json:"hostInterval"` /* 完整的首页地址 (Optional) */ HomePage string `json:"homePage"` /* 首页检测间隔,eg:1h表示一小时,必须为整小时 (Optional) */ HomePageInterval string `json:"homePageInterval"` }
type BindWebsiteReq ¶ added in v1.45.0
type BindWebsiteReq struct { /* 协议,http或https */ Scheme string `json:"scheme"` /* 域名,不含协议 */ Host string `json:"host"` /* 全站检测频率,1d-1天,7d-7天 */ HostInterval string `json:"hostInterval"` /* 完整的首页地址,必须在host下 */ HomePage string `json:"homePage"` /* 首页检测间隔,eg:1h表示一小时,必须为整小时 */ HomePageInterval string `json:"homePageInterval"` }
type BlockDetail ¶
type BlockDetail struct { /* 涉政 (Optional) */ Politics int `json:"politics"` /* 涉恐 (Optional) */ Terrorism int `json:"terrorism"` /* 涉黄 (Optional) */ Porn int `json:"porn"` /* 违禁 (Optional) */ Illegal int `json:"illegal"` /* 辱骂 (Optional) */ Insult int `json:"insult"` /* 广告 (Optional) */ Ad int `json:"ad"` /* 涉政暴恐 (Optional) */ Politics_terrorism int `json:"politics_terrorism"` }
type BucketPrefixCfg ¶
type ConsumeAmount ¶
type ConsumeAmount struct { /* api文本 (Optional) */ Api_text int `json:"api_text"` /* api图片 (Optional) */ Api_image int `json:"api_image"` /* api图片涉黄 (Optional) */ Api_image_porn int `json:"api_image_porn"` /* api图片涉政暴恐 (Optional) */ Api_image_politics_terrorism int `json:"api_image_politics_terrorism"` /* api音频时长 (Optional) */ Api_audio int `json:"api_audio"` /* api视频截帧量 (Optional) */ Api_video int `json:"api_video"` /* api视频语音时长 (Optional) */ Api_video_audio int `json:"api_video_audio"` /* api视频涉黄 (Optional) */ Api_video_porn int `json:"api_video_porn"` /* api视频涉政暴恐 (Optional) */ Api_video_politics_terrorism int `json:"api_video_politics_terrorism"` /* oss文本 (Optional) */ Oss_text int `json:"oss_text"` /* oss图片 (Optional) */ Oss_image int `json:"oss_image"` /* oss图片涉黄 (Optional) */ Oss_image_porn int `json:"oss_image_porn"` /* oss图片涉政暴恐 (Optional) */ Oss_image_politics_terrorism int `json:"oss_image_politics_terrorism"` /* oss音频时长 (Optional) */ Oss_audio int `json:"oss_audio"` /* oss视频截帧量 (Optional) */ Oss_video int `json:"oss_video"` /* oss视频语音时长 (Optional) */ Oss_video_audio int `json:"oss_video_audio"` /* oss视频涉黄 (Optional) */ Oss_video_porn int `json:"oss_video_porn"` /* oss视频涉政暴恐 (Optional) */ Oss_video_politics_terrorism int `json:"oss_video_politics_terrorism"` }
type ContactGroup ¶ added in v1.45.0
type ContactPerson ¶ added in v1.45.0
type ContactPerson struct { /* 联系人Id (Optional) */ ContactId int `json:"contactId"` /* 联系人姓名 (Optional) */ Name string `json:"name"` /* 联系人电话,非账号联系人时不加密 (Optional) */ PhoneNumber string `json:"phoneNumber"` /* 联系人邮箱 (Optional) */ Email string `json:"email"` /* 是否选中,1-选中,0-未选中 (Optional) */ Selected int `json:"selected"` }
type CustomInfo ¶ added in v1.45.0
type CustomInfo struct { /* 敏感库id (Optional) */ LibId string `json:"libId"` /* 站点检查实例Id,多个以 , 分割 (Optional) */ WebsiteInstanceId string `json:"websiteInstanceId"` /* 文件类型,text-文本,image-图片,audio-音频,video-视频 (Optional) */ ResourceType string `json:"resourceType"` /* 匹配方式,exact:精确匹配,fuzzy:模糊匹配;仅限文本类型 (Optional) */ MatchType string `json:"matchType"` /* 敏感库名 (Optional) */ Name string `json:"name"` /* 文本/语音支持 antispam-反垃圾,视频/图片支持 porn-涉黄,terrorism-涉政暴恐 (Optional) */ Scenes string `json:"scenes"` /* white 白名单,black 黑名单,suspect 疑似名单 (Optional) */ Suggestion string `json:"suggestion"` /* 状态 1启用,0禁用 (Optional) */ Status int `json:"status"` /* 更新时间 (Optional) */ UpdateTime string `json:"updateTime"` /* 该敏感库下包含的item条数 (Optional) */ ItemNumber int `json:"itemNumber"` }
type CustomItemInfo ¶ added in v1.45.0
type CustomItemInfo struct { /* 敏感库id (Optional) */ LibId string `json:"libId"` /* 敏感库itemId (Optional) */ ItemId string `json:"itemId"` /* 文件类型,text-文本,image-图片,audio-音频,video-视频 (Optional) */ ResourceType string `json:"resourceType"` /* 敏感库Item的具体内容 (Optional) */ Content string `json:"content"` /* 更新时间 (Optional) */ UpdateTime string `json:"updateTime"` }
type CustomItemReq ¶ added in v1.45.0
type CustomReq ¶ added in v1.45.0
type CustomReq struct { /* 检测类型,api/oss/website,默认api (Optional) */ CensorType string `json:"censorType"` /* 站点检查实例Id,多个以 , 分割;当censorType为website时,该参数必填 (Optional) */ WebsiteInstanceId string `json:"websiteInstanceId"` /* 文件类型,text-文本,image-图片,audio-音频,video-视频 */ ResourceType string `json:"resourceType"` /* 匹配方式,exact:精确匹配,fuzzy:模糊匹配;仅限文本类型,默认exact (Optional) */ MatchType string `json:"matchType"` /* 敏感库名 */ Name string `json:"name"` /* 文本/语音支持 antispam-反垃圾,视频/图片支持 porn-涉黄,terrorism-涉政暴恐,ad-图文广告 */ Scenes string `json:"scenes"` /* white 白名单,black 黑名单,suspect 疑似名单 */ Suggestion string `json:"suggestion"` /* 状态 1启用,0禁用,默认 1启用 (Optional) */ Status int `json:"status"` /* 敏感库id,更新时该参数必填 (Optional) */ LibId string `json:"libId"` /* 敏感库来源:custom自定义,feedback系统库,更新时该参数必填 (Optional) */ Source string `json:"source"` }
type DataConsumeData ¶
type DataConsumeData struct { /* 调用量 (Optional) */ Total int `json:"total"` /* 涉黄 (Optional) */ Porn int `json:"porn"` /* (Optional) */ Ad int `json:"ad"` /* 涉政暴恐 (Optional) */ Politics_terrorism int `json:"politics_terrorism"` /* 视频调用详情 (Optional) */ VideoDetail VideoDetail `json:"videoDetail"` }
type DataConsumeStatement ¶
type DataConsumeStatement struct { /* 时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */ Time string `json:"time"` /* (Optional) */ Data DataConsumeData `json:"data"` }
type DataOverview ¶
type DataOverview struct { /* 机器识别量 (Optional) */ Recognization int `json:"recognization"` /* 正常量 (Optional) */ Pass int `json:"pass"` /* 违规内容量 (Optional) */ Block int `json:"block"` /* 疑似内容量 (Optional) */ Review int `json:"review"` /* 5xx状态码量 (Optional) */ Status5xx int `json:"status5xx"` /* 总的响应时间 (Optional) */ TaskMsec int `json:"taskMsec"` /* (Optional) */ BlockDetail BlockDetail `json:"blockDetail"` /* 音频识别详情 (Optional) */ AudioDetail AudioDetail `json:"audioDetail"` /* 视频识别详情(包括截帧数和音频时长) (Optional) */ VideoDetail VideoDetail `json:"videoDetail"` }
type DataResult ¶
type DataResult struct { /* 文本类型为检测内容,图片类型为图片短链 (Optional) */ Content string `json:"content"` /* taskId (Optional) */ TaskId string `json:"taskId"` /* dataId (Optional) */ DataId string `json:"dataId"` /* 送审时间 2019-12-18 16:02:19(北京时间UTC+8) (Optional) */ Time string `json:"time"` /* 日志落盘时间 2019-12-18 16:02:19(北京时间UTC+8) (Optional) */ LogTime string `json:"logTime"` /* 识别结果 (Optional) */ Result string `json:"result"` /* 场景_结果 格式。 (Optional) */ Details []string `json:"details"` /* 响应结果 (Optional) */ Response string `json:"response"` /* 返回时间 (Optional) */ EndTime string `json:"endTime"` /* 状态码 (Optional) */ Code string `json:"code"` /* 图片/音频/视频的url (Optional) */ Url string `json:"url"` /* 视频截帧 (Optional) */ Frame FrameCfg `json:"frame"` /* 人工审核结果,空表示没有审核 (Optional) */ FbSuggestion string `json:"fbSuggestion"` }
type DataStatement ¶
type DataStatement struct { /* 时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */ Time string `json:"time"` /* (Optional) */ Data DataOverview `json:"data"` }
type FeedbackCensorLibReq ¶ added in v1.45.0
type FeedbackCensorLibReq struct { /* task任务信息,最多可批量100个 */ TaskInfos []FeedbackTaskInfo `json:"taskInfos"` /* 加黑时场景。文本/语音支持 antispam-反垃圾,视频/图片支持 porn-涉黄,terrorism-涉政暴恐。加白时为空 (Optional) */ Scenes []string `json:"scenes"` /* 结果,pass-正常(加白),blocl-违规(加黑) */ Suggestion string `json:"suggestion"` /* 文件类型,text-文本,image-图片,audio-音频,video-视频 */ ResourceType string `json:"resourceType"` /* 检测类型,api/oss/website */ CensorType string `json:"censorType"` }
type FeedbackTaskInfo ¶ added in v1.45.0
type FrameDetail ¶ added in v1.45.0
type FrameDetail struct { /* 涉政截帧数 (Optional) */ Politics_frame_count int `json:"politics_frame_count"` /* 涉黄截帧数 (Optional) */ Porn_frame_count int `json:"porn_frame_count"` /* 暴恐截帧数 (Optional) */ Terrorism_frame_count int `json:"terrorism_frame_count"` /* 总截帧数 (Optional) */ Total_frame_count int `json:"total_frame_count"` }
type FrozenThreshold ¶
type HandleWebsiteResultsReq ¶ added in v1.45.0
type HintWordsInfo ¶
type HintWordsInfo struct { /* 检测文本命中的风险内容上下文内容。如果命中了您自定义的风险文本库,则会返回命中的文本内容(关键词或相似文本) (Optional) */ Context string `json:"context"` /* 命中自定义词库时,才有本字段。取值为创建词库时填写的词库名称 (Optional) */ LibName string `json:"libName"` /* 命中您自定义文本库时,才会返回该字段,取值为创建风险文本库后系统返回的文本库code (Optional) */ LibCode string `json:"libCode"` }
type ImageResult ¶
type ImageResult struct { /* 错误码,和HTTP的status code一致 (Optional) */ Code int `json:"code"` /* 错误描述信息 (Optional) */ Msg string `json:"msg"` /* 对应请求的dataId (Optional) */ DataId string `json:"dataId"` /* 该检测任务的ID (Optional) */ TaskId string `json:"taskId"` /* 对应请求中的url (Optional) */ Url string `json:"url"` /* 返回结果。调用成功时(code=200),返回结果中包含一个或多个元素。每个元素是个结构体,具体结构描述见ImageResultDetail (Optional) */ Results []ImageResultDetail `json:"results"` }
type ImageResultDetail ¶
type ImageResultDetail struct { /* 检测场景,和调用请求中的场景对应 (Optional) */ Scene string `json:"scene"` /* 检测结果的分类,与具体的scene对应。取值范围参考scene和label说明 (Optional) */ Label string `json:"label"` /* 结果为该分类的概率,取值范围为0.00-100.00。值越高,表示越有可能属于改该子分类 (Optional) */ Score float32 `json:"score"` /* 建议用户执行的操作,取值范围pass:图片正常,无需进行其余操作,或者未识别出目标对象review:检测结果不确定,需要进行人工审核,或识别出目标对象block:图片违规,建议执行进一步操作(如直接删除或做限制处理) (Optional) */ Suggestion string `json:"suggestion"` /* 命中该风险的上下文信息。具体结构描述见hintWordsInfo (Optional) */ HintWordsInfos []HintWordsInfo `json:"hintWordsInfos"` /* 图片中包含暴恐识涉政内容时,返回识别出来的暴恐涉政信息,具体结构描述见sfaceData (Optional) */ SfaceData []SFaceData `json:"sfaceData"` }
type KeyUrls ¶ added in v1.45.0
type KeyUrls struct { /* 设置的url列表 (Optional) */ KeyUrls []string `json:"keyUrls"` }
type LimitInfo ¶ added in v1.45.0
type LimitInfo struct { /* 接口类型:textScan, imageScan, asyncImageScan, asyncAudioScan, asyncVideoScan, videoScan (Optional) */ InterfaceType string `json:"interfaceType"` /* 阈值,比如:(文本:1000字符,图片/音频/视频:10MB/GB/KB) (Optional) */ Threshold string `json:"threshold"` /* 并发,比如:10 或者 - (Optional) */ Rate string `json:"rate"` /* 配置ID (Optional) */ LimitId string `json:"limitId"` }
type OrderInfo ¶
type OrderInfo struct { /* 用户名 (Optional) */ Pin string `json:"pin"` /* 资源包类型 (Optional) */ PackageType string `json:"packageType"` /* 时长 (Optional) */ Validity string `json:"validity"` /* 规格 (Optional) */ Specs string `json:"specs"` /* 资源包数量 (Optional) */ Quantity int `json:"quantity"` /* 价格 (Optional) */ TotalFee string `json:"totalFee"` /* 支付时间 (Optional) */ PayTime string `json:"payTime"` }
type OssCallback ¶
type OssCallback struct { /* 回调地址 (Optional) */ Callback string `json:"callback"` /* 增量回调,0-不开启,1-开启 (Optional) */ IncrementCall int `json:"incrementCall"` /* 存量回调,0-不开启,1-开启 (Optional) */ StockCall int `json:"stockCall"` /* 扫描回调,0-不开启,1-开启 (Optional) */ ScanCall int `json:"scanCall"` /* 审核回调,0-不开启,1-开启 (Optional) */ ReviewCall int `json:"reviewCall"` /* 校验seed (Optional) */ Seed string `json:"seed"` }
type OssCallbackReq ¶
type OssCallbackReq struct { /* 回调地址,完整的url */ Callback string `json:"callback"` /* 增量回调,0-不开启,1-开启 */ IncrementCall int `json:"incrementCall"` /* 存量回调,0-不开启,1-开启 */ StockCall int `json:"stockCall"` /* 扫描回调,0-不开启,1-开启 */ ScanCall int `json:"scanCall"` /* 审核回调,0-不开启,1-开启 */ ReviewCall int `json:"reviewCall"` /* 校验seed,不传或传入空字符串则生成新的seed并返回 (Optional) */ Seed string `json:"seed"` }
type OssDataResult ¶
type OssDataResult struct { /* 图片或视频的短链 (Optional) */ Content string `json:"content"` /* taskId (Optional) */ TaskId string `json:"taskId"` /* dataId (Optional) */ DataId string `json:"dataId"` /* 送审时间 2019-12-18 16:02:19(北京时间UTC+8) (Optional) */ Time string `json:"time"` /* 日志落盘时间 2019-12-18 16:02:19(北京时间UTC+8) (Optional) */ LogTime string `json:"logTime"` /* 识别结果 (Optional) */ Result string `json:"result"` /* 详情,见blockDetail中描述 (Optional) */ Details []string `json:"details"` /* 得分 (Optional) */ Score Score `json:"score"` /* 冻结处理,modify-修改权限,remove-移动,空字符串表示无处理 (Optional) */ Action string `json:"action"` /* oss中空间名 (Optional) */ Bucket string `json:"bucket"` /* oss中对象名 (Optional) */ Object string `json:"object"` /* 人工审核处理 (Optional) */ ReviewResult string `json:"reviewResult"` }
type OssDataUnReview ¶ added in v1.45.0
type OssDataUnReview struct { /* 语音反垃圾 (Optional) */ Audio_antispam int `json:"audio_antispam"` /* 文本反垃圾 (Optional) */ Text_antispam int `json:"text_antispam"` /* 涉黄 (Optional) */ Porn int `json:"porn"` /* 涉政暴恐 (Optional) */ Politics_terrorism int `json:"politics_terrorism"` /* 机器识别量 (Optional) */ Recognization int `json:"recognization"` /* 正常量 (Optional) */ Pass int `json:"pass"` /* 违规内容量 (Optional) */ Block int `json:"block"` /* 疑似内容量 (Optional) */ Review int `json:"review"` /* 5xx状态码量 (Optional) */ Status5xx int `json:"status5xx"` /* 总的响应时间 (Optional) */ TaskMsec int `json:"taskMsec"` /* (Optional) */ BlockDetail BlockDetail `json:"blockDetail"` /* 音频识别详情 (Optional) */ AudioDetail AudioDetail `json:"audioDetail"` /* 视频识别详情(包括截帧数和音频时长) (Optional) */ VideoDetail VideoDetail `json:"videoDetail"` }
type OssScanCfg ¶
type OssScanCfg struct { /* id标识,更新时传入,新增时传0 (Optional) */ Id int `json:"id"` /* 检测类型,increment-增量,stock-存量 (Optional) */ ScanType string `json:"scanType"` /* 存量检测的开始时间,增量时无意义 (Optional) */ StartTime int `json:"startTime"` /* 存量检测的截止时间,增量时无意义 (Optional) */ EndTime int `json:"endTime"` /* 需要检测的oss bucket信息 (Optional) */ BucketsInfo []BucketPrefixCfg `json:"bucketsInfo"` /* 冻结方式,policy-修改权限,remove-移动到备份文件夹 (Optional) */ FreezeAction string `json:"freezeAction"` /* 图片配置 (Optional) */ ImageInfo ScanConf `json:"imageInfo"` /* 视频配置 (Optional) */ VideoInfo ScanConf `json:"videoInfo"` /* 文本配置 (Optional) */ TextInfo ScanConf `json:"textInfo"` /* 音频配置 (Optional) */ AudioInfo ScanConf `json:"audioInfo"` /* 视频截帧配置, 暂不支持配置 (Optional) */ FrameInfo FrameConf `json:"frameInfo"` /* 状态,0-检测中,1-暂停,2-完成,3-任务失败 (Optional) */ Status int `json:"status"` /* 任务开始时间 (Optional) */ TaskStTime int `json:"taskStTime"` /* 任务结束/中止时间 (Optional) */ TaskEndTime int `json:"taskEndTime"` }
type OssScanCfgReq ¶
type OssScanCfgReq struct { /* id标识,更新时传入,新增时传0 (Optional) */ Id int `json:"id"` /* 检测类型,increment-增量,stock-存量 */ ScanType string `json:"scanType"` /* 存量检测的开始时间,增量时无意义 (Optional) */ StartTime int `json:"startTime"` /* 存量检测的截止时间,增量时无意义 (Optional) */ EndTime int `json:"endTime"` /* 需要检测的oss bucket信息 */ BucketsInfo []BucketPrefixCfg `json:"bucketsInfo"` /* 冻结方式,policy-修改权限,remove-移动到备份文件夹,目前仅支持remove */ FreezeAction string `json:"freezeAction"` /* 图片配置 */ ImageInfo ScanConf `json:"imageInfo"` /* 视频配置 */ VideoInfo ScanConf `json:"videoInfo"` /* 视频截帧配置, 暂不支持 (Optional) */ FrameInfo FrameConf `json:"frameInfo"` /* 文本配置 (Optional) */ TextInfo ScanConf `json:"textInfo"` /* 音频配置 (Optional) */ AudioInfo ScanConf `json:"audioInfo"` }
type OssScanReviewReq ¶
type PackInfo ¶
type PackInfo struct { /* 资源包类型 (Optional) */ PackageType string `json:"packageType"` /* 来源,1-免费,2-付费 (Optional) */ From int `json:"from"` /* 总用量 (Optional) */ TotalAmount string `json:"totalAmount"` /* 剩余用量 (Optional) */ BalanceAmount string `json:"balanceAmount"` /* 生效时间 (Optional) */ StartTime string `json:"startTime"` /* 失效时间 (Optional) */ EndTime string `json:"endTime"` /* 资源包id (Optional) */ PackId string `json:"packId"` }
type ProgramCodeData ¶
type QrcodeData ¶
type ScanConf ¶
type ScanConf struct { /* 0-不开启检测,1-开启检测 */ Enable int `json:"enable"` /* 检测场景,audio-语音违规-视频支持,porn-涉黄-图片视频支持,terrorism-涉政暴恐-图片视频支持,antispam-反垃圾-文本语音支持,enable为1时必须 (Optional) */ Scense []string `json:"scense"` /* 0-不开启自动冻结,1-开启自动冻结 (Optional) */ Frozen int `json:"frozen"` /* 自动冻结阈值 (Optional) */ Threshold FrozenThreshold `json:"threshold"` /* 检测类型,all-全部 (Optional) */ FileType []string `json:"fileType"` /* 文件后缀,all-表示全部 (Optional) */ FileSuffix []string `json:"fileSuffix"` }
type SetLimitReq ¶ added in v1.45.0
type SetLimitReq struct { /* 接口类型:textScan, imageScan, asyncImageScan, asyncAudioScan, asyncVideoScan, videoScan */ InterfaceType string `json:"interfaceType"` /* 阈值,比如:(文本:1000字符,图片/音频/视频:10MB/GB/KB) */ Threshold string `json:"threshold"` /* 并发,比如:10 或者 - */ Rate string `json:"rate"` /* 配置ID (Optional) */ LimitId string `json:"limitId"` }
type SetWarningReq ¶ added in v1.45.0
type SetWarningReq struct { /* 是否开启开关 (Optional) */ Enable int `json:"enable"` /* 是否开启实时消息提醒 (Optional) */ RealTimeNotify int `json:"realTimeNotify"` /* */ LogTypes []string `json:"logTypes"` /* */ RiskLevels []string `json:"riskLevels"` /* 通知时间,eg:"10:00:00" */ NotifyTime string `json:"notifyTime"` /* 通知方式 (Optional) */ ContactWays []string `json:"contactWays"` /* 告警通知人 (Optional) */ ContactorPersons []Contactor `json:"contactorPersons"` /* 告警通知群组 (Optional) */ ContactorGroups []Contactor `json:"contactorGroups"` }
type StsAuthReq ¶
type StsAuthReq struct { /* 被授权的服务,oss-对象存储 (Optional) */ AuthFor string `json:"authFor"` }
type SubmitWebsiteReq ¶ added in v1.45.0
type SystemConf ¶ added in v1.45.0
type TaskData ¶
type TaskData struct { /* 错误码,和HTTP的status code一致 (Optional) */ Code int `json:"code"` /* 错误描述信息 (Optional) */ Msg string `json:"msg"` /* 对应请求的dataId (Optional) */ DataId string `json:"dataId"` /* 该检测任务的ID (Optional) */ TaskId string `json:"taskId"` /* 对应请求中的url (Optional) */ Url string `json:"url"` }
type TaskDatas ¶
type TaskDatas struct { /* (Optional) */ Results []HintWordsInfo `json:"results"` }
type TextResult ¶
type TextResult struct { /* 错误码,和HTTP的status code一致 (Optional) */ Code int `json:"code"` /* 错误描述信息 (Optional) */ Msg string `json:"msg"` /* 对应请求的dataId (Optional) */ DataId string `json:"dataId"` /* 该检测任务的ID (Optional) */ TaskId string `json:"taskId"` /* 对应请求的内容 (Optional) */ Content string `json:"content"` /* 如果检测文本命中您自定义关键词词库中的词,该字段会返回,并将命中的关键词替换为"*" (Optional) */ FilteredContent string `json:"filteredContent"` /* 返回结果。调用成功时(code=200),返回结果中包含一个或多个元素。每个元素是个结构体,具体结构描述见TextResultDetail (Optional) */ Results []TextResultDetail `json:"results"` }
type TextResultDetail ¶
type TextResultDetail struct { /* 检测场景,和调用请求中的场景对应 (Optional) */ Scene string `json:"scene"` /* 检测结果的分类,与具体的scene对应。取值范围参考scene 和 label说明 (Optional) */ Label string `json:"label"` /* 结果为该分类的概率,取值范围为0.00-100.00。值越高,表示越有可能属于该分类subLabel (Optional) */ Score float32 `json:"score"` /* 建议用户执行的操作,取值范围pass:文本正常,无需进行其余操作,或者未识别出目标对象review:检测结果不确定,需要进行人工审核,或识别出目标对象block:图片违规,建议执行进一步操作(如直接删除或做限制处理) (Optional) */ Suggestion string `json:"suggestion"` /* 命中该风险的上下文信息。具体结构描述见hintWordsInfo (Optional) */ HintWordsInfos []HintWordsInfo `json:"hintWordsInfos"` }
type UserDetail ¶
type UserDetail struct { /* 用户名称 (Optional) */ Pin string `json:"pin"` /* 更新时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */ UpdateTime string `json:"updateTime"` /* 创建时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */ CreateTime string `json:"createTime"` /* 用户类型,0-全部类型,1-有效用户,2-无效用户,3-付费用户,4-免费用户 (Optional) */ UserType string `json:"userType"` /* 累计调用量(1个月内) (Optional) */ UsedAmount int `json:"usedAmount"` /* 购入流量包数 (Optional) */ PackagesAmount int `json:"packagesAmount"` /* 跟踪描述 (Optional) */ Tracking string `json:"tracking"` }
type VerifyWebsiteReq ¶ added in v1.45.0
type VerifyWebsiteReq struct { /* 验证方式 1-京东云账户验证,2-主机文件验证,3-CNAME域名验证,4-网站首页HTML标签验证,目前仅支持2 */ VerifyType int `json:"verifyType"` }
type VideoDetail ¶
type VideoDetail struct { /* 音频识别总时长 (Optional) */ Audio_time int `json:"audio_time"` /* 涉政截帧数 (Optional) */ Politics_frame_count int `json:"politics_frame_count"` /* 涉黄截帧数 (Optional) */ Porn_frame_count int `json:"porn_frame_count"` /* 暴恐截帧数 (Optional) */ Terrorism_frame_count int `json:"terrorism_frame_count"` /* 图文截帧数 (Optional) */ Ad_frame_count int `json:"ad_frame_count"` /* 总截帧数 (Optional) */ Total_frame_count int `json:"total_frame_count"` }
type VideoDetailList ¶
type VideoDetailList struct { /* 音频总时长,单位为分钟 (Optional) */ Audio_time []int `json:"audio_time"` /* 涉政截帧量 (Optional) */ Politics_frame_count []int `json:"politics_frame_count"` /* 涉黄截帧量 (Optional) */ Porn_frame_count []int `json:"porn_frame_count"` /* 暴恐截帧量 (Optional) */ Terrorism_frame_count []int `json:"terrorism_frame_count"` /* 涉政暴恐截帧量 (Optional) */ Politics_terrorism_frame_count []int `json:"politics_terrorism_frame_count"` /* 总截帧量 (Optional) */ Total_frame_count []int `json:"total_frame_count"` }
type VideoResult ¶
type VideoResult struct { /* 错误码,和HTTP的status code一致 (Optional) */ Code int `json:"code"` /* 错误描述信息 (Optional) */ Msg string `json:"msg"` /* 对应请求的dataId (Optional) */ DataId string `json:"dataId"` /* 该检测任务的ID (Optional) */ TaskId string `json:"taskId"` /* 对应请求中的url (Optional) */ Url string `json:"url"` /* 返回结果。调用成功时(code=200),返回结果中包含一个或多个元素。每个元素是个结构体,具体结构描述见VideoResultDetail (Optional) */ Results []VideoResultDetail `json:"results"` /* 视频语音检测结果。具体结构描述见audioScanResult。 (Optional) */ AudioResults []AudioResultDetail `json:"audioResults"` }
type VideoResultDetail ¶
type VideoResultDetail struct { /* 检测场景,和调用请求中的场景对应 (Optional) */ Scene string `json:"scene"` /* 检测结果的分类,与具体的scene对应。取值范围参考scene和label说明 (Optional) */ Label string `json:"label"` /* 结果为该分类的概率,取值范围为0.00-100.00。值越高,表示越有可能属于改该子分类 (Optional) */ Score float32 `json:"score"` /* 建议用户执行的操作,取值范围pass:图片正常,无需进行其余操作,或者未识别出目标对象review:检测结果不确定,需要进行人工审核,或识别出目标对象block:图片违规,建议执行进一步操作(如直接删除或做限制处理) (Optional) */ Suggestion string `json:"suggestion"` /* 视频中包含暴恐识涉政内容时,返回识别出来的暴恐涉政信息,具体结构描述见sfaceData (Optional) */ SfaceData []SFaceData `json:"sfaceData"` }
type VideoTask ¶
type VideoTask struct { /* 数据Id。需要保证在一次请求中所有的Id不重复 (Optional) */ DataId string `json:"dataId"` /* 待检测视频的URL,最大200M (Optional) */ Url string `json:"url"` /* 视频截帧间隔,单位为秒,取值范围为1~60。默认值为1秒 (Optional) */ Interval int `json:"interval"` /* 本视频截帧的张数上限,取值范围为5~3600,默认为200张,该参数仅在文件检测中生效(live=false) 如果是视频流(live=true)该参数无效。 (Optional) */ MaxFrames int `json:"maxFrames"` }
type WarningRuleCfg ¶ added in v1.45.0
type WarningRuleCfg struct { /* 用户名 (Optional) */ UserPin string `json:"userPin"` /* 是否开启开关 (Optional) */ Enable int `json:"enable"` /* 是否开启实时消息提醒 (Optional) */ RealTimeNotify int `json:"realTimeNotify"` /* (Optional) */ LogTypes []string `json:"logTypes"` /* (Optional) */ RiskLevels []string `json:"riskLevels"` /* 通知时间,eg:"10:00:00" (Optional) */ NotifyTime string `json:"notifyTime"` /* 告警方式 (Optional) */ ContactWays []string `json:"contactWays"` /* 告警通知人 (Optional) */ ContactorPersons []ContactPerson `json:"contactorPersons"` /* 告警通知群组 (Optional) */ ContactorGroups []ContactGroup `json:"contactorGroups"` }
type WebsiteDetail ¶ added in v1.45.0
type WebsiteInstanceInfo ¶ added in v1.45.0
type WebsiteInstanceInfo struct { /* 实例ID (Optional) */ WebsiteInstanceId string `json:"websiteInstanceId"` /* 实例名称 (Optional) */ NickName string `json:"nickName"` /* 协议,http或https (Optional) */ Scheme string `json:"scheme"` /* 域名,不含协议 (Optional) */ Host string `json:"host"` /* 全站检测频率,1d-1天,7d-7天 (Optional) */ HostInterval string `json:"hostInterval"` /* 首页检测间隔,eg:1h表示一小时,必须为整小时 (Optional) */ HomePageInterval string `json:"homePageInterval"` /* 创建时间,秒级时间戳 (Optional) */ CreateAt int `json:"createAt"` /* 到期时间,秒级时间戳 (Optional) */ ExpireAt int `json:"expireAt"` /* 实例状态,0-未绑定,1-正常,2-绑定未验证,3-绑定已验证,4-停止 (Optional) */ Status int `json:"status"` /* 0-不可用,1-可用 (Optional) */ Valid int `json:"valid"` /* 计费状态,INIT-初始化,START-启用,ARREARAGE_STOP-正常,ARREARAGE_STOP-欠费停服,ARREARAGE_DESTROY-欠费删除,EXPIRE_STOP-过期停服,EXPIRE_DESTROY-过期删除,USER_DESTROY-订单取消,ADMIN_DESTROY-管理员删除 (Optional) */ ChargeStatus string `json:"chargeStatus"` /* 首页防篡改设置状态,0-未设置,1-设置 (Optional) */ HomePageCacheStatus int `json:"homePageCacheStatus"` }
type WebsiteResultInfo ¶ added in v1.45.0
type WebsiteResultInfo struct { /* 实例ID (Optional) */ WebsiteInstanceId string `json:"websiteInstanceId"` /* 域名,不含协议 (Optional) */ Host string `json:"host"` /* 总量 (Optional) */ TotalCount int `json:"totalCount"` /* 高风险数 (Optional) */ HighRisk int `json:"highRisk"` /* 中风险数 (Optional) */ MediumRisk int `json:"mediumRisk"` /* 低风险数 (Optional) */ LowRisk int `json:"lowRisk"` /* 未处理数 (Optional) */ Pending int `json:"pending"` /* 实例检测详情 (Optional) */ List []WebsiteRiskLog `json:"list"` }
type WebsiteRiskLog ¶ added in v1.45.0
type WebsiteRiskLog struct { /* ids (Optional) */ Ids []int `json:"ids"` /* 实例ID (Optional) */ WebsiteInstanceId string `json:"websiteInstanceId"` /* 域名,不含协议 (Optional) */ Host string `json:"host"` /* url (Optional) */ Url string `json:"url"` /* 日志类型,1首页 2全站 (Optional) */ LogType int `json:"logType"` /* (Optional) */ RiskTypes []int `json:"riskTypes"` /* 风险等级 1低 2中 3高 (Optional) */ RiskLevel int `json:"riskLevel"` /* 处理状态 0未处理 1已处理 (Optional) */ Status int `json:"status"` /* 更新时间 (Optional) */ UpdateTime int `json:"updateTime"` }
Source Files ¶
- AmountStatistics.go
- ApplicationInfo.go
- AudioDetail.go
- AudioDetailList.go
- AudioResult.go
- AudioResultDetail.go
- AudioScanResultDetail.go
- AudioTask.go
- AuditRange.go
- BindWebsiteInfo.go
- BindWebsiteReq.go
- BlockDetail.go
- BucketPrefixCfg.go
- Callback.go
- ConsumeAmount.go
- ContactGroup.go
- ContactPerson.go
- Contactor.go
- CustomInfo.go
- CustomItemInfo.go
- CustomItemReq.go
- CustomReq.go
- DataConsumeData.go
- DataConsumeStatement.go
- DataOverview.go
- DataResult.go
- DataStatement.go
- Face.go
- FeedbackCensorLibReq.go
- FeedbackTaskInfo.go
- Frame.go
- FrameCfg.go
- FrameConf.go
- FrameDetail.go
- FrozenThreshold.go
- HandleWebsiteResultsReq.go
- HintWordsInfo.go
- IdReq.go
- ImageResult.go
- ImageResultDetail.go
- ImageTask.go
- KeyUrls.go
- LimitInfo.go
- LogoData.go
- OrderInfo.go
- OssCallback.go
- OssCallbackReq.go
- OssDataResult.go
- OssDataUnReview.go
- OssScanCfg.go
- OssScanCfgReq.go
- OssScanReviewReq.go
- PackInfo.go
- ProgramCodeData.go
- QrcodeData.go
- SFaceData.go
- ScanConf.go
- Score.go
- SetLimitReq.go
- SetWarningReq.go
- StsAuthReq.go
- SubmitWebsiteReq.go
- SystemConf.go
- TaskData.go
- TaskDatas.go
- TextResult.go
- TextResultDetail.go
- TextTask.go
- UserDetail.go
- VerifyWebsiteReq.go
- VideoDetail.go
- VideoDetailList.go
- VideoResult.go
- VideoResultDetail.go
- VideoTask.go
- WarningRuleCfg.go
- WebsiteDetail.go
- WebsiteInstanceInfo.go
- WebsiteResultInfo.go
- WebsiteRiskLog.go
Click to show internal directories.
Click to hide internal directories.