Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] monitor/resource-manager #672

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/@azure/arm-monitor/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
53 changes: 17 additions & 36 deletions packages/@azure/arm-monitor/README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,24 @@
## Azure MonitorManagementClient SDK for JavaScript

# Azure MonitorManagementClient SDK for JavaScript
This package contains an isomorphic SDK for MonitorManagementClient.

### Currently supported environments

## Currently supported environments
- Node.js version 6.x.x or higher
- Browser JavaScript

### How to Install

## How to Install
```
npm install @azure/arm-monitor
```

### How to use

#### nodejs - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

```
npm install @azure/ms-rest-nodeauth
```
## How to use

##### Sample code
### nodejs - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript.

```ts
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import * as msRest from "ms-rest-js";
import * as msRestAzure from "ms-rest-azure-js";
import * as msRestNodeAuth from "ms-rest-nodeauth";
import { MonitorManagementClient, MonitorManagementModels, MonitorManagementMappers } from "@azure/arm-monitor";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

Expand All @@ -44,16 +34,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

#### browser - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in JavaScript.

##### Install @azure/ms-rest-browserauth

```
npm install @azure/ms-rest-browserauth
```

##### Sample code

### browser - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in JavaScript.
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.

- index.html
Expand All @@ -62,11 +43,11 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
<html lang="en">
<head>
<title>@azure/arm-monitor sample</title>
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/arm-monitor/dist/arm-monitor.js"></script>
<script type="text/javascript">
<script>
const subscriptionId = "<Subscription_Id>";
const authManager = new msAuth.AuthManager({
clientId: "<client id for your Azure AD app>",
Expand All @@ -89,10 +70,10 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
});
</script>
</head>
<body></body>
<body>
</body>
</html>
```

## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
# Related projects
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
4 changes: 4 additions & 0 deletions packages/@azure/arm-monitor/lib/models/actionGroupsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export {
LogToMetricAction,
Criteria,
Dimension,
ProxyResource,
VMInsightsOnboardingStatus,
DataContainer,
WorkspaceInfo,
RuleMetricDataSource,
RuleManagementEventDataSource,
RuleManagementEventClaimsDataSource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export {
LogToMetricAction,
Criteria,
Dimension,
ProxyResource,
VMInsightsOnboardingStatus,
DataContainer,
WorkspaceInfo,
RuleMetricDataSource,
RuleManagementEventDataSource,
RuleManagementEventClaimsDataSource,
Expand Down
6 changes: 5 additions & 1 deletion packages/@azure/arm-monitor/lib/models/alertRulesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ export {
LogMetricTrigger,
LogToMetricAction,
Criteria,
Dimension
Dimension,
ProxyResource,
VMInsightsOnboardingStatus,
DataContainer,
WorkspaceInfo
} from "../models/mappers";

Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export {
LogToMetricAction,
Criteria,
Dimension,
ProxyResource,
VMInsightsOnboardingStatus,
DataContainer,
WorkspaceInfo,
RuleMetricDataSource,
RuleManagementEventDataSource,
RuleManagementEventClaimsDataSource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export {
LogToMetricAction,
Criteria,
Dimension,
ProxyResource,
VMInsightsOnboardingStatus,
DataContainer,
WorkspaceInfo,
RuleMetricDataSource,
RuleManagementEventDataSource,
RuleManagementEventClaimsDataSource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export {
LogToMetricAction,
Criteria,
Dimension,
ProxyResource,
VMInsightsOnboardingStatus,
DataContainer,
WorkspaceInfo,
RuleMetricDataSource,
RuleManagementEventDataSource,
RuleManagementEventClaimsDataSource,
Expand Down
Loading