Added/updated snippets for docs (#2318)
This commit is contained in:
20
docs/doc_examples/ee634d59def6302134d24fa90e18b609.asciidoc
Normal file
20
docs/doc_examples/ee634d59def6302134d24fa90e18b609.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.autoscaling.putAutoscalingPolicy({
|
||||
name: "my_autoscaling_policy",
|
||||
policy: {
|
||||
roles: ["ml"],
|
||||
deciders: {
|
||||
ml: {
|
||||
num_anomaly_jobs_in_queue: 5,
|
||||
num_analytics_jobs_in_queue: 3,
|
||||
down_scale_delay: "30m",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user