Skip to content

Commit

Permalink
update readme file for consumption (Azure#17726)
Browse files Browse the repository at this point in the history
* update

* update
  • Loading branch information
colawwj authored Sep 17, 2021
1 parent 3773070 commit 3c7a547
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
28 changes: 20 additions & 8 deletions sdk/consumption/arm-consumption/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ const filter = "testfilter";
const skiptoken = "testskiptoken";
const top = 1;
const metric = "actualcost";
client.usageDetails.list(scope, expand, filter, skiptoken, top, metric).then((result) => {
client.usageDetails.list(scope,{
expand: expand,
filter: filter,
skiptoken: skiptoken,
top: top,
metric: metric
}).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand Down Expand Up @@ -98,13 +104,19 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
const skiptoken = "testskiptoken";
const top = 1;
const metric = "actualcost";
client.usageDetails.list(scope, expand, filter, skiptoken, top, metric).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
client.usageDetails.list(scope,{
expand: expand,
filter: filter,
skiptoken: skiptoken,
top: top,
metric: metric
}).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
</script>
</head>
<body></body>
Expand Down
2 changes: 1 addition & 1 deletion sdk/consumption/arm-consumption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-consumption",
"author": "Microsoft Corporation",
"description": "ConsumptionManagementClient Library with typescript type definitions for node.js and browser.",
"version": "8.0.0",
"version": "8.0.1",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.1.0",
"@azure/ms-rest-js": "^2.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRestAzure from "@azure/ms-rest-azure-js";
import { TokenCredential } from "@azure/core-auth";

const packageName = "@azure/arm-consumption";
const packageVersion = "8.0.0";
const packageVersion = "8.0.1";

export class ConsumptionManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials | TokenCredential;
Expand Down

0 comments on commit 3c7a547

Please sign in to comment.