"use strict";(self.webpackChunkelementary_public_docs=self.webpackChunkelementary_public_docs||[]).push([[69530],{15680:(e,t,a)=>{a.d(t,{xA:()=>s,yg:()=>d});var n=a(96540);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var g=n.createContext({}),o=function(e){var t=n.useContext(g),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},s=function(e){var t=o(e.components);return n.createElement(g.Provider,{value:t},e.children)},u="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,g=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=o(a),m=r,d=u["".concat(g,".").concat(m)]||u[m]||y[m]||l;return a?n.createElement(d,p(p({ref:t},s),{},{components:a})):n.createElement(d,p({ref:t},s))}));function d(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,p=new Array(l);p[0]=m;var i={};for(var g in t)hasOwnProperty.call(t,g)&&(i[g]=t[g]);i.originalType=e,i[u]="string"==typeof e?e:r,p[1]=i;for(var o=2;o{a.r(t),a.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>c,frontMatter:()=>p,metadata:()=>g,toc:()=>s});var n=a(58168),r=(a(96540),a(15680)),l=a(96763);const p={sidebar_position:14},i="\u67e5\u8be2\u65e5\u5fd7\u5b9e\u65f6\u6d41\u8fc7\u6ee4\u5668",g={unversionedId:"developer-tools/cms/openapi/query-log-livestream-filters",id:"developer-tools/cms/openapi/query-log-livestream-filters",title:"\u67e5\u8be2\u65e5\u5fd7\u5b9e\u65f6\u6d41\u8fc7\u6ee4\u5668",description:"\u63a5\u53e3\u63cf\u8ff0",source:"@site/docs/developer-tools/cms/openapi/query-log-livestream-filters.md",sourceDirName:"developer-tools/cms/openapi",slug:"/developer-tools/cms/openapi/query-log-livestream-filters",permalink:"/help/docs/developer-tools/cms/openapi/query-log-livestream-filters",draft:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/developer-tools/cms/openapi/query-log-livestream-filters.md",tags:[],version:"current",sidebarPosition:14,frontMatter:{sidebar_position:14},sidebar:"tutorialSidebar",previous:{title:"\u66f4\u65b0\u5c06\u65e5\u5fd7\u5bfc\u51fa\u5230 OSS \u7684\u914d\u7f6e",permalink:"/help/docs/developer-tools/cms/openapi/update-log-oss-config"},next:{title:"\u751f\u6210\u7528\u4e8e\u7b7e\u540d\u65e5\u5fd7\u5b9e\u65f6\u6d41\u8bf7\u6c42\u7684\u4ee4\u724c",permalink:"/help/docs/developer-tools/cms/openapi/sign-log-livestream-token"}},o={},s=[{value:"\u63a5\u53e3\u63cf\u8ff0",id:"\u63a5\u53e3\u63cf\u8ff0",level:2},{value:"\u8bf7\u6c42\u5934\uff08Request Header\uff09",id:"\u8bf7\u6c42\u5934request-header",level:2},{value:"\u8bf7\u6c42\u53c2\u6570\uff08Request Parameters\uff09",id:"\u8bf7\u6c42\u53c2\u6570request-parameters",level:2},{value:"\u8bf7\u6c42\u4f53\uff08Request Body\uff09",id:"\u8bf7\u6c42\u4f53request-body",level:2},{value:"\u8bf7\u6c42\u793a\u4f8b\uff08Request Example\uff09",id:"\u8bf7\u6c42\u793a\u4f8brequest-example",level:2},{value:"\u54cd\u5e94\uff08Response\uff09",id:"\u54cd\u5e94response",level:2},{value:"\u54cd\u5e94\u793a\u4f8b\uff08Response Example\uff09",id:"\u54cd\u5e94\u793a\u4f8bresponse-example",level:2}],u=(y="ApiLinkRegion",function(e){return l.warn("Component "+y+" was not imported, exported, or provided by MDXProvider as global scope"),(0,r.yg)("div",e)});var y;const m={toc:s},d="wrapper";function c(e){let{components:t,...a}=e;return(0,r.yg)(d,(0,n.A)({},m,a,{components:t,mdxType:"MDXLayout"}),(0,r.yg)("h1",{id:"\u67e5\u8be2\u65e5\u5fd7\u5b9e\u65f6\u6d41\u8fc7\u6ee4\u5668"},"\u67e5\u8be2\u65e5\u5fd7\u5b9e\u65f6\u6d41\u8fc7\u6ee4\u5668"),(0,r.yg)("h2",{id:"\u63a5\u53e3\u63cf\u8ff0"},"\u63a5\u53e3\u63cf\u8ff0"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"GET")),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"/monitor/ts/data/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/telemetryStations/:telemetry_station_name/logLivestream/filters")),(0,r.yg)("p",null,"\u67e5\u8be2\u65e5\u5fd7\u5b9e\u65f6\u6d41\u8fc7\u6ee4\u5668"),(0,r.yg)(u,{apiType:"cms",mdxType:"ApiLinkRegion"},(0,r.yg)("a",{href:"/docs/API/cms/workspace-service-query-log-livestream-filters",className:"but_to_APi"},"\u8c03\u8bd5\u63a5\u53e3")),(0,r.yg)("h2",{id:"\u8bf7\u6c42\u5934request-header"},"\u8bf7\u6c42\u5934\uff08Request Header\uff09"),(0,r.yg)("p",null,"\u53c2\u8003",(0,r.yg)("a",{parentName:"p",href:"/help/docs/developer-tools/cms/openapi/authentication"},"\u8ba4\u8bc1\uff08authentication\uff09")),(0,r.yg)("h2",{id:"\u8bf7\u6c42\u53c2\u6570request-parameters"},"\u8bf7\u6c42\u53c2\u6570\uff08Request Parameters\uff09"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u540d\u79f0"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u5fc5\u987b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u4f4d\u7f6e"),(0,r.yg)("th",{parentName:"tr",align:null},"\u9ed8\u8ba4\u503c"),(0,r.yg)("th",{parentName:"tr",align:null},"\u53d6\u503c\u8303\u56f4"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"subscription_name"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u662f"),(0,r.yg)("td",{parentName:"tr",align:null},"path"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8ba2\u9605")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"resource_group_name"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u662f"),(0,r.yg)("td",{parentName:"tr",align:null},"path"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u7ec4")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"zone"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u662f"),(0,r.yg)("td",{parentName:"tr",align:null},"path"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"\u53ef\u7528\u533a")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"telemetry_station_name"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u662f"),(0,r.yg)("td",{parentName:"tr",align:null},"path"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"\u76d1\u63a7\u7a7a\u95f4")))),(0,r.yg)("h2",{id:"\u8bf7\u6c42\u4f53request-body"},"\u8bf7\u6c42\u4f53\uff08Request Body\uff09"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u540d\u79f0"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"resource_type"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u7c7b\u578b")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"resource_id"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90ID")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"filters"),(0,r.yg)("td",{parentName:"tr",align:null},"[]Filter"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8fc7\u6ee4\u5668")))),(0,r.yg)("p",null,"\u5176\u4e2d\uff0c",(0,r.yg)("inlineCode",{parentName:"p"},"Filter"),"\u5982\u4e0b\uff1a"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u540d\u79f0"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"key"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u7b5b\u9009\u952e\uff0c\u4f8b\u5982gpu")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"values"),(0,r.yg)("td",{parentName:"tr",align:null},"[]string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u7b5b\u9009\u503c\uff0c\u4f8b\u5982","[0,1,2]")))),(0,r.yg)("h2",{id:"\u8bf7\u6c42\u793a\u4f8brequest-example"},"\u8bf7\u6c42\u793a\u4f8b\uff08Request Example\uff09"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-shell"},"curl -XGET 'https://monitor.sensecoreapi.tech/monitor/ts/data/v1/subscriptions/224bae0c-a98f-41f5-b5d3-9f54aa98455f/resourceGroups/default/zones/cn-sh-01z/telemetryStations/ts-user-a95a77a3-961f-43fa-9577-d5c8a2cb0149/logLivestream/filters' \\\n -H 'Content-Type: application/json'\n")),(0,r.yg)("h2",{id:"\u54cd\u5e94response"},"\u54cd\u5e94\uff08Response\uff09"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u540d\u79f0"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"filters"),(0,r.yg)("td",{parentName:"tr",align:null},"[]Filter"),(0,r.yg)("td",{parentName:"tr",align:null},"\u7b5b\u9009\u6761\u4ef6")))),(0,r.yg)("p",null,"\u5176\u4e2d\uff0c",(0,r.yg)("inlineCode",{parentName:"p"},"Filter"),"\u5982\u4e0b\uff1a"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u540d\u79f0"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"key"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u7b5b\u9009\u952e\uff0c\u4f8b\u5982gpu")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"values"),(0,r.yg)("td",{parentName:"tr",align:null},"[]string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u7b5b\u9009\u503c\uff0c\u4f8b\u5982","[0,1,2]")))),(0,r.yg)("h2",{id:"\u54cd\u5e94\u793a\u4f8bresponse-example"},"\u54cd\u5e94\u793a\u4f8b\uff08Response Example\uff09"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-json"},'{\n "filters": [\n {\n "key": "label_acp_lepton_sensetime_com_job_name",\n "values": []\n },\n {\n "key": "gpu",\n "values": []\n },\n {\n "key": "GPU_I_ID",\n "values": []\n },\n {\n "key": "label_acp_lepton_sensetime_com_cci_name",\n "values": []\n },\n {\n "key": "exported_pod",\n "values": []\n }\n ]\n}\n')))}c.isMDXComponent=!0}}]);