"use strict";(self.webpackChunkelementary_public_docs=self.webpackChunkelementary_public_docs||[]).push([[48233],{21408:(e,a,m)=>{m.r(a),m.d(a,{assets:()=>u,contentTitle:()=>g,default:()=>b,frontMatter:()=>p,metadata:()=>d,toc:()=>h});var i=m(58168),s=(m(96540),m(15680)),t=m(54754),l=m(34366),r=m(13185),n=m(26612),o=m(30774),c=m(47335),y=(m(38454),m(19365));const p={id:"resource-provider-create-scale-plan",title:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212",description:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212",sidebar_label:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212",hide_title:!0,hide_table_of_contents:!0,api:"eJztWV9vG8cR/yqLfYqBE6m4b3wqQxOB0LpiKeUhUAhmeTfkbXy3e9ndk8wQBPyQxHLbVEZQRy1k1DHQwDXQOgKaGokjpF/GPMnfop3do3gUKZE28lbqRXe3u7/595u5Oc6AGtbTtLJDm6BlqnxoKLnLA1C05dEAtK94YrgUtEJH+0ejH1+MTn7I7jx5efL96cnT039+dfrgm7Nnj0f7X1KPygQUw80bAa1QlQOuJTnimq+AGVjTPotgLYmYoB5NmGIxGFCoxIAKFgOtUA1ql/tAPcpRcsJMSC+qsx0CyfcRHpSoRxV8nHIFAa0YlYJHtR9CzGhlQE0/sbBGcdGjw2HLbQZt3pFBH3f4UhgQBi9ZkkTct4aUP9Ioa1CAmgjZoQHXScT6bau1R2MZALotlyY7H4Fv0EaFnjEcNAI4Ey/qNOPsGTdnX989+/ZzOvSmxb4B0uj+F6dPjhHJalwZUBBpjAbd3LxRb29v3KxTz13frG83N2oFo5ZX9++PRycH1KNdqWJm/rfHChliSLVhwn8j1U+Pvh999q/Rs7++/On3iGW51FZp5HyrgAWbIuqPGZDDM6VYH8lkINYFsT9bhM6efDra/8skQhO12oY7sCJv9gButQOrkl1eyJnzAxOtLrNpzPGr1M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g3rRGBlBLzbBYUkTJTsKRbHlrtilyspYhBGe4QLP0oDfN6sb207tZC7zUbN3pTIhgVOtWPeTq/ZqLXeCo1JdKVc7nETpp2SL+NyTyX+tRKpMz+cqD423B/HGXsuIAkHHzR6JmCGVXJTXK24kJaozAU/vy9T4jNBulwERKaGxFIBYR28NCHXU57B86HcQ1/vSXXLUYhP8rLa2CA3QPOeIO+mPICJbX4k06CUJydayBKuy4HdW7Yi9LUipZzNtkTbymRCifOoRGqbcDhLqtDy7vVyPj3S5UF+NSzrcYXX1LNTqPFgKlURrdCxSizWJQ1Cgy8VsISXfFHWJg24xKUyOrOsEopzJg1+qrjpW5QOMAWqmqIKO63i8hZWflcEipvOKwFKpvlIC+/dJstYfHk0J9Os+m0WJxFMPkkLVWTqJ4DJc/dBP/UdP/ncLnwbctGVVqfc0xdnhsjUmWJ19u9Psxf3s4P7L386yh5+MfrdY+pR9KtbXi+tl95GcIxPzERB74UDxylBhRne4pO5Vw3cNuUkYlzYdgZjPMgZskN3r+ccQI5Qj1YmU8kCTVoeDZFZlR06GHSYhvdUNBzi449TUBj2lkd3meJYDiwJAq7xOqCVLov0xVJcNOOtZv4xd43MTjvnmjB+7Qh86di3Oq1Q6tFb0C+MVYetoUdDYDjmRY3cas3JXdtGjMnpmT5l6I1PVH0fEnPl3lYhAxubW9vUo5185JqzTrE9nN2yPVqhH9APqB0kI4LrkPH5gEZM9FLbYFCHi3//BQrDOBU=",sidebar_class_name:"post api-method",info_path:"docs/API/ams/resourceprovider-api",custom_edit_url:null},g=void 0,d={unversionedId:"API/ams/resource-provider-create-scale-plan",id:"API/ams/resource-provider-create-scale-plan",title:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212",description:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212",source:"@site/docs/API/ams/resource-provider-create-scale-plan.api.mdx",sourceDirName:"API/ams",slug:"/API/ams/resource-provider-create-scale-plan",permalink:"/help/docs/API/ams/resource-provider-create-scale-plan",draft:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"resource-provider-create-scale-plan",title:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212",description:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212",sidebar_label:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212",hide_title:!0,hide_table_of_contents:!0,api:"eJztWV9vG8cR/yqLfYqBE6m4b3wqQxOB0LpiKeUhUAhmeTfkbXy3e9ndk8wQBPyQxHLbVEZQRy1k1DHQwDXQOgKaGokjpF/GPMnfop3do3gUKZE28lbqRXe3u7/595u5Oc6AGtbTtLJDm6BlqnxoKLnLA1C05dEAtK94YrgUtEJH+0ejH1+MTn7I7jx5efL96cnT039+dfrgm7Nnj0f7X1KPygQUw80bAa1QlQOuJTnimq+AGVjTPotgLYmYoB5NmGIxGFCoxIAKFgOtUA1ql/tAPcpRcsJMSC+qsx0CyfcRHpSoRxV8nHIFAa0YlYJHtR9CzGhlQE0/sbBGcdGjw2HLbQZt3pFBH3f4UhgQBi9ZkkTct4aUP9Ioa1CAmgjZoQHXScT6bau1R2MZALotlyY7H4Fv0EaFnjEcNAI4Ey/qNOPsGTdnX989+/ZzOvSmxb4B0uj+F6dPjhHJalwZUBBpjAbd3LxRb29v3KxTz13frG83N2oFo5ZX9++PRycH1KNdqWJm/rfHChliSLVhwn8j1U+Pvh999q/Rs7++/On3iGW51FZp5HyrgAWbIuqPGZDDM6VYH8lkINYFsT9bhM6efDra/8skQhO12oY7sCJv9gButQOrkl1eyJnzAxOtLrNpzPGr1M0Ov8kePsI9Y+2uFh/KVBV2cWGgB2rWI8cH2eHzYsi5ML+4bonGRWpgGYz9z199+WgOxoxB2eHz0f6P1oUmQshaJP1b1iimemDaInWOidltHiO/315f9xbKL1Lu6Fn29d3RvW+zh//IHhy/unuwjF6jRy9evvhjdvj81eF3RbSC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xFIBYR28NCHXU57B86HcQ1/vSXXLUYhP8rLa2CA3QPOeIO+mPICJbX4k06CUJydayBKuy4HdW7Yi9LUipZzNtkTbymRCifOoRGqbcDhLqtDy7vVyPj3S5UF+NSzrcYXX1LNTqPFgKlURrdCxSizWJQ1Cgy8VsISXfFHWJg24xKUyOrOsEopzJg1+qrjpW5QOMAWqmqIKO63i8hZWflcEipvOKwFKpvlIC+/dJstYfHk0J9Os+m0WJxFMPkkLVWTqJ4DJc/dBP/UdP/ncLnwbctGVVqfc0xdnhsjUmWJ19u9Psxf3s4P7L386yh5+MfrdY+pR9KtbXi+tl95GcIxPzERB74UDxylBhRne4pO5Vw3cNuUkYlzYdgZjPMgZskN3r+ccQI5Qj1YmU8kCTVoeDZFZlR06GHSYhvdUNBzi449TUBj2lkd3meJYDiwJAq7xOqCVLov0xVJcNOOtZv4xd43MTjvnmjB+7Qh86di3Oq1Q6tFb0C+MVYetoUdDYDjmRY3cas3JXdtGjMnpmT5l6I1PVH0fEnPl3lYhAxubW9vUo5185JqzTrE9nN2yPVqhH9APqB0kI4LrkPH5gEZM9FLbYFCHi3//BQrDOBU=",sidebar_class_name:"post api-method",info_path:"docs/API/ams/resourceprovider-api",custom_edit_url:null},sidebar:"cn_APi_Afs",previous:{title:"\u590d\u5236\u4f38\u7f29\u7b56\u7565",permalink:"/help/docs/API/ams/resource-provider-copy-scale-plan"},next:{title:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u89c4\u5219",permalink:"/help/docs/API/ams/resource-provider-create-scale-rule"}},u={},h=[{value:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212",id:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212",level:2}],f={toc:h},T="wrapper";function b(e){let{components:a,...m}=e;return(0,s.yg)(T,(0,i.A)({},f,m,{components:a,mdxType:"MDXLayout"}),(0,s.yg)("h2",{id:"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212"},"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212"),(0,s.yg)("p",null,"\u521b\u5efa\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u8ba1\u5212"),(0,s.yg)("details",{style:{marginBottom:"1rem"},"data-collapsed":!1,open:!0},(0,s.yg)("summary",{style:{}},(0,s.yg)("strong",null,"Path Parameters")),(0,s.yg)("div",null,(0,s.yg)("ul",null,(0,s.yg)(r.A,{className:"paramsItem",param:{name:"service",in:"path",description:"The service id.",required:!0,schema:{type:"string"}},mdxType:"ParamsItem"})))),(0,s.yg)(l.A,{mdxType:"MimeTabs"},(0,s.yg)(y.A,{label:"application/json",value:"application/json-schema",mdxType:"TabItem"},(0,s.yg)("details",{style:{},"data-collapsed":!1,open:!0},(0,s.yg)("summary",{style:{textAlign:"left"}},(0,s.yg)("strong",null,"Request Body"),(0,s.yg)("strong",{style:{fontSize:"var(--ifm-code-font-size)",color:"var(--openapi-required)"}}," required")),(0,s.yg)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,s.yg)("ul",{style:{marginLeft:"1rem"}},(0,s.yg)(o.A,{collapsible:!1,name:"name",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",description:"\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u6807\u8bc6"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"display_name",required:!0,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",description:"\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u540d\u79f0"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"mode",required:!0,schemaName:"enum",qualifierMessage:"**Possible values:** [`MODE_TIME`, `MODE_METRIC`]",schema:{enum:["MODE_TIME","MODE_METRIC"],type:"string",description:"\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u6a21\u5f0f",format:"enum"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"instance",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",description:"\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u76f8\u5173\u5b9e\u4f8b"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!0,className:"schemaItem",mdxType:"SchemaItem"},(0,s.yg)("details",{style:{}},(0,s.yg)("summary",{style:{}},(0,s.yg)("strong",null,"scale_rules"),(0,s.yg)("span",{style:{opacity:"0.6"}}," object[]")),(0,s.yg)("div",{style:{marginLeft:"1rem"}},(0,s.yg)("div",{style:{marginTop:".5rem",marginBottom:".5rem"}},(0,s.yg)("p",null,"\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u89c4\u5219")),(0,s.yg)("li",null,(0,s.yg)("div",{style:{fontSize:"var(--ifm-code-font-size)",opacity:"0.6",marginLeft:"-.5rem",paddingBottom:".5rem"}},"Array [")),(0,s.yg)(o.A,{collapsible:!1,name:"name",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",description:"\u5f39\u6027\u4f38\u7f29\u89c4\u5219\u6807\u8bc6"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!0,className:"schemaItem",mdxType:"SchemaItem"},(0,s.yg)("details",{style:{}},(0,s.yg)("summary",{style:{}},(0,s.yg)("strong",null,"scale_rule_time"),(0,s.yg)("span",{style:{opacity:"0.6"}}," object")),(0,s.yg)("div",{style:{marginLeft:"1rem"}},(0,s.yg)("div",{style:{marginTop:".5rem",marginBottom:".5rem"}},(0,s.yg)("p",null,"\u57fa\u4e8e\u65f6\u95f4\u5f39\u6027\u4f38\u7f29")),(0,s.yg)(o.A,{collapsible:!1,name:"week_day",required:!0,schemaName:"string[]",qualifierMessage:void 0,schema:{type:"array",items:{type:"string"},description:"\u5f39\u6027\u4f38\u7f29\u65e5\u671f"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!0,className:"schemaItem",mdxType:"SchemaItem"},(0,s.yg)("details",{style:{}},(0,s.yg)("summary",{style:{}},(0,s.yg)("strong",null,"time"),(0,s.yg)("span",{style:{opacity:"0.6"}}," object"),(0,s.yg)("strong",{style:{fontSize:"var(--ifm-code-font-size)",color:"var(--openapi-required)"}}," required")),(0,s.yg)("div",{style:{marginLeft:"1rem"}},(0,s.yg)("div",{style:{marginTop:".5rem",marginBottom:".5rem"}},(0,s.yg)("p",null,"\u65f6\u523b")),(0,s.yg)(o.A,{collapsible:!1,name:"hour",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"\u5c0f\u65f6",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"minute",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"\u5206\u949f",format:"int32"},mdxType:"SchemaItem"})))),(0,s.yg)(o.A,{collapsible:!1,name:"target_nums",required:!1,schemaName:"int32",qualifierMessage:"**Possible values:** `<= 100`",schema:{maximum:100,type:"integer",description:"\u5f39\u6027\u4f38\u7f29\u76ee\u6807\u526f\u672c\u6570\u91cf",format:"int32"},mdxType:"SchemaItem"})))),(0,s.yg)(o.A,{collapsible:!0,className:"schemaItem",mdxType:"SchemaItem"},(0,s.yg)("details",{style:{}},(0,s.yg)("summary",{style:{}},(0,s.yg)("strong",null,"scale_rule_metric"),(0,s.yg)("span",{style:{opacity:"0.6"}}," object")),(0,s.yg)("div",{style:{marginLeft:"1rem"}},(0,s.yg)("div",{style:{marginTop:".5rem",marginBottom:".5rem"}},(0,s.yg)("p",null,"\u57fa\u4e8e\u6307\u6807\u5f39\u6027\u4f38\u7f29")),(0,s.yg)(o.A,{collapsible:!1,name:"metric_name",required:!0,schemaName:"enum",qualifierMessage:"**Possible values:** [`REPLICA_QUERY_PER_SECOND`]",schema:{enum:["REPLICA_QUERY_PER_SECOND"],type:"string",description:"\u6269\u7f29\u5bb9\u6307\u6807\u540d\u79f0",format:"enum"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"threshold",required:!1,schemaName:"float",qualifierMessage:void 0,schema:{type:"number",description:"\u6269\u7f29\u5bb9\u9608\u503c",format:"float"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"min_replica",required:!1,schemaName:"int32",qualifierMessage:"**Possible values:** `>= 1` and `<= 100`",schema:{maximum:100,minimum:1,type:"integer",description:"\u6700\u5c0f\u526f\u672c\u6570",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"max_replica",required:!1,schemaName:"int32",qualifierMessage:"**Possible values:** `>= 1` and `<= 100`",schema:{maximum:100,minimum:1,type:"integer",description:"\u6700\u5927\u526f\u672c\u6570",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"scaleout_duration",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"\u6269\u5bb9\u751f\u6548\u65f6\u957f",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"scalein_duration",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"\u7f29\u5bb9\u751f\u6548\u65f6\u957f",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"scalezero_duration",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"\u526f\u672c\u6570\u7f29\u5bb9\u52300\u751f\u6548\u65f6\u957f",format:"int32"},mdxType:"SchemaItem"})))),(0,s.yg)("li",null,(0,s.yg)("div",{style:{fontSize:"var(--ifm-code-font-size)",opacity:"0.6",marginLeft:"-.5rem"}},"]"))))))))),(0,s.yg)("div",null,(0,s.yg)(t.A,{mdxType:"ApiTabs"},(0,s.yg)(y.A,{label:"200",value:"200",mdxType:"TabItem"},(0,s.yg)("div",null,(0,s.yg)("p",null,"OK")),(0,s.yg)("div",null,(0,s.yg)(l.A,{schemaType:"response",mdxType:"MimeTabs"},(0,s.yg)(y.A,{label:"application/json",value:"application/json",mdxType:"TabItem"},(0,s.yg)(c.A,{mdxType:"SchemaTabs"},(0,s.yg)(y.A,{label:"Schema",value:"Schema",mdxType:"TabItem"},(0,s.yg)("details",{style:{},"data-collapsed":!1,open:!0},(0,s.yg)("summary",{style:{textAlign:"left"}},(0,s.yg)("strong",null,"Schema")),(0,s.yg)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,s.yg)("ul",{style:{marginLeft:"1rem"}},(0,s.yg)(o.A,{collapsible:!1,name:"name",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",description:"\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u6807\u8bc6"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"display_name",required:!0,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",description:"\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u540d\u79f0"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"mode",required:!0,schemaName:"enum",qualifierMessage:"**Possible values:** [`MODE_TIME`, `MODE_METRIC`]",schema:{enum:["MODE_TIME","MODE_METRIC"],type:"string",description:"\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u6a21\u5f0f",format:"enum"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"instance",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",description:"\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u76f8\u5173\u5b9e\u4f8b"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!0,className:"schemaItem",mdxType:"SchemaItem"},(0,s.yg)("details",{style:{}},(0,s.yg)("summary",{style:{}},(0,s.yg)("strong",null,"scale_rules"),(0,s.yg)("span",{style:{opacity:"0.6"}}," object[]")),(0,s.yg)("div",{style:{marginLeft:"1rem"}},(0,s.yg)("div",{style:{marginTop:".5rem",marginBottom:".5rem"}},(0,s.yg)("p",null,"\u5f39\u6027\u4f38\u7f29\u7b56\u7565\u89c4\u5219")),(0,s.yg)("li",null,(0,s.yg)("div",{style:{fontSize:"var(--ifm-code-font-size)",opacity:"0.6",marginLeft:"-.5rem",paddingBottom:".5rem"}},"Array [")),(0,s.yg)(o.A,{collapsible:!1,name:"name",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",description:"\u5f39\u6027\u4f38\u7f29\u89c4\u5219\u6807\u8bc6"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!0,className:"schemaItem",mdxType:"SchemaItem"},(0,s.yg)("details",{style:{}},(0,s.yg)("summary",{style:{}},(0,s.yg)("strong",null,"scale_rule_time"),(0,s.yg)("span",{style:{opacity:"0.6"}}," object")),(0,s.yg)("div",{style:{marginLeft:"1rem"}},(0,s.yg)("div",{style:{marginTop:".5rem",marginBottom:".5rem"}},(0,s.yg)("p",null,"\u57fa\u4e8e\u65f6\u95f4\u5f39\u6027\u4f38\u7f29")),(0,s.yg)(o.A,{collapsible:!1,name:"week_day",required:!0,schemaName:"string[]",qualifierMessage:void 0,schema:{type:"array",items:{type:"string"},description:"\u5f39\u6027\u4f38\u7f29\u65e5\u671f"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!0,className:"schemaItem",mdxType:"SchemaItem"},(0,s.yg)("details",{style:{}},(0,s.yg)("summary",{style:{}},(0,s.yg)("strong",null,"time"),(0,s.yg)("span",{style:{opacity:"0.6"}}," object"),(0,s.yg)("strong",{style:{fontSize:"var(--ifm-code-font-size)",color:"var(--openapi-required)"}}," required")),(0,s.yg)("div",{style:{marginLeft:"1rem"}},(0,s.yg)("div",{style:{marginTop:".5rem",marginBottom:".5rem"}},(0,s.yg)("p",null,"\u65f6\u523b")),(0,s.yg)(o.A,{collapsible:!1,name:"hour",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"\u5c0f\u65f6",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"minute",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"\u5206\u949f",format:"int32"},mdxType:"SchemaItem"})))),(0,s.yg)(o.A,{collapsible:!1,name:"target_nums",required:!1,schemaName:"int32",qualifierMessage:"**Possible values:** `<= 100`",schema:{maximum:100,type:"integer",description:"\u5f39\u6027\u4f38\u7f29\u76ee\u6807\u526f\u672c\u6570\u91cf",format:"int32"},mdxType:"SchemaItem"})))),(0,s.yg)(o.A,{collapsible:!0,className:"schemaItem",mdxType:"SchemaItem"},(0,s.yg)("details",{style:{}},(0,s.yg)("summary",{style:{}},(0,s.yg)("strong",null,"scale_rule_metric"),(0,s.yg)("span",{style:{opacity:"0.6"}}," object")),(0,s.yg)("div",{style:{marginLeft:"1rem"}},(0,s.yg)("div",{style:{marginTop:".5rem",marginBottom:".5rem"}},(0,s.yg)("p",null,"\u57fa\u4e8e\u6307\u6807\u5f39\u6027\u4f38\u7f29")),(0,s.yg)(o.A,{collapsible:!1,name:"metric_name",required:!0,schemaName:"enum",qualifierMessage:"**Possible values:** [`REPLICA_QUERY_PER_SECOND`]",schema:{enum:["REPLICA_QUERY_PER_SECOND"],type:"string",description:"\u6269\u7f29\u5bb9\u6307\u6807\u540d\u79f0",format:"enum"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"threshold",required:!1,schemaName:"float",qualifierMessage:void 0,schema:{type:"number",description:"\u6269\u7f29\u5bb9\u9608\u503c",format:"float"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"min_replica",required:!1,schemaName:"int32",qualifierMessage:"**Possible values:** `>= 1` and `<= 100`",schema:{maximum:100,minimum:1,type:"integer",description:"\u6700\u5c0f\u526f\u672c\u6570",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"max_replica",required:!1,schemaName:"int32",qualifierMessage:"**Possible values:** `>= 1` and `<= 100`",schema:{maximum:100,minimum:1,type:"integer",description:"\u6700\u5927\u526f\u672c\u6570",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"scaleout_duration",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"\u6269\u5bb9\u751f\u6548\u65f6\u957f",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"scalein_duration",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"\u7f29\u5bb9\u751f\u6548\u65f6\u957f",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"scalezero_duration",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"\u526f\u672c\u6570\u7f29\u5bb9\u52300\u751f\u6548\u65f6\u957f",format:"int32"},mdxType:"SchemaItem"})))),(0,s.yg)("li",null,(0,s.yg)("div",{style:{fontSize:"var(--ifm-code-font-size)",opacity:"0.6",marginLeft:"-.5rem"}},"]")))))))),(0,s.yg)(y.A,{label:"Example (from schema)",value:"Example (from schema)",mdxType:"TabItem"},(0,s.yg)(n.A,{responseExample:'{\n "name": "string",\n "display_name": "string",\n "mode": "MODE_TIME",\n "instance": "string",\n "scale_rules": [\n {\n "name": "string",\n "scale_rule_time": {\n "week_day": [\n "string"\n ],\n "time": {\n "hour": 0,\n "minute": 0\n },\n "target_nums": 0\n },\n "scale_rule_metric": {\n "metric_name": "REPLICA_QUERY_PER_SECOND",\n "threshold": 0,\n "min_replica": 0,\n "max_replica": 0,\n "scaleout_duration": 0,\n "scalein_duration": 0,\n "scalezero_duration": 0\n }\n }\n ],\n "rule_nums": 0,\n "creator_name": "string",\n "update_time": "2025-04-23T03:43:48.515Z",\n "create_time": "2025-04-23T03:43:48.515Z"\n}',language:"json",mdxType:"ResponseSamples"}))))))),(0,s.yg)(y.A,{label:"default",value:"default",mdxType:"TabItem"},(0,s.yg)("div",null,(0,s.yg)("p",null,"Default error response")),(0,s.yg)("div",null,(0,s.yg)(l.A,{schemaType:"response",mdxType:"MimeTabs"},(0,s.yg)(y.A,{label:"application/json",value:"application/json",mdxType:"TabItem"},(0,s.yg)(c.A,{mdxType:"SchemaTabs"},(0,s.yg)(y.A,{label:"Schema",value:"Schema",mdxType:"TabItem"},(0,s.yg)("details",{style:{},"data-collapsed":!1,open:!0},(0,s.yg)("summary",{style:{textAlign:"left"}},(0,s.yg)("strong",null,"Schema")),(0,s.yg)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,s.yg)("ul",{style:{marginLeft:"1rem"}},(0,s.yg)(o.A,{collapsible:!1,name:"code",required:!1,schemaName:"int32",qualifierMessage:void 0,schema:{type:"integer",description:"The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].",format:"int32"},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!1,name:"message",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",description:"A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client."},mdxType:"SchemaItem"}),(0,s.yg)(o.A,{collapsible:!0,className:"schemaItem",mdxType:"SchemaItem"},(0,s.yg)("details",{style:{}},(0,s.yg)("summary",{style:{}},(0,s.yg)("strong",null,"details"),(0,s.yg)("span",{style:{opacity:"0.6"}}," object[]")),(0,s.yg)("div",{style:{marginLeft:"1rem"}},(0,s.yg)("div",{style:{marginTop:".5rem",marginBottom:".5rem"}},(0,s.yg)("p",null,"A list of messages that carry the error details. There is a common set of message types for APIs to use.")),(0,s.yg)("li",null,(0,s.yg)("div",{style:{fontSize:"var(--ifm-code-font-size)",opacity:"0.6",marginLeft:"-.5rem",paddingBottom:".5rem"}},"Array [")),(0,s.yg)(o.A,{collapsible:!1,name:"@type",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",description:"The type of the serialized message."},mdxType:"SchemaItem"}),(0,s.yg)("li",null,(0,s.yg)("div",{style:{fontSize:"var(--ifm-code-font-size)",opacity:"0.6",marginLeft:"-.5rem"}},"]")))))))),(0,s.yg)(y.A,{label:"Example (from schema)",value:"Example (from schema)",mdxType:"TabItem"},(0,s.yg)(n.A,{responseExample:'{\n "code": 0,\n "message": "string",\n "details": [\n {\n "@type": "string"\n }\n ]\n}',language:"json",mdxType:"ResponseSamples"}))))))))))}b.isMDXComponent=!0}}]);