add app insights
This commit is contained in:
Родитель
aa034defda
Коммит
13f767a89d
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
|
||||
"Version": "8.6.209.10",
|
||||
"GettingStartedDocument": {
|
||||
"Uri": "https://go.microsoft.com/fwlink/?LinkID=798432"
|
||||
}
|
||||
}
|
|
@ -3,6 +3,8 @@
|
|||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp1.1</TargetFramework>
|
||||
<PackageTargetFallback>portable-net45+win8</PackageTargetFallback>
|
||||
<ApplicationInsightsResourceId>/subscriptions/9ad09adf-c85f-43a0-96fe-18b146d1f90e/resourcegroups/AdaptiveCards/providers/microsoft.insights/components/adaptivecards-staging</ApplicationInsightsResourceId>
|
||||
<ApplicationInsightsAnnotationResourceId>/subscriptions/9ad09adf-c85f-43a0-96fe-18b146d1f90e/resourceGroups/AdaptiveCards/providers/microsoft.insights/components/adaptivecards-staging</ApplicationInsightsAnnotationResourceId>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -39,5 +41,8 @@
|
|||
<ItemGroup>
|
||||
<Folder Include="Properties\PublishProfiles\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Connected Services" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
{
|
||||
{
|
||||
"Logging": {
|
||||
"IncludeScopes": false,
|
||||
"LogLevel": {
|
||||
"Default": "Warning"
|
||||
}
|
||||
},
|
||||
"ApplicationInsights": {
|
||||
"InstrumentationKey": "5969b3dc-f7bb-4daa-8dcc-9c54ef8bcc80"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,10 +1,22 @@
|
|||
# Javascript
|
||||
There is no javascript library, but javascript is already pretty good at manipulating JSON.
|
||||
# Javascript Libraries for creating cards
|
||||
As we described in the getting started section, an adaptive card is nothing more then a serialized json object of
|
||||
a card object model. To make it easy to manipulate the object model we have defined some libraries which
|
||||
define a strongly typed class hierarchy that is easy to serialize/deserialize json.
|
||||
|
||||
You can use any tooling that you want to create the adaptive card json.
|
||||
|
||||
The **microsoft-adaptive-cards** npm package defines a library for working with adaptive cards in javascript
|
||||
|
||||
## To install
|
||||
```
|
||||
npm install microsoft-adaptive-cards
|
||||
```
|
||||
|
||||
## Example creating
|
||||
```javascript
|
||||
There are interface definitions in schema.d.ts which describe the shape of the schema
|
||||
|
||||
var card = {
|
||||
```typescript
|
||||
let card = {
|
||||
"type": "AdaptiveCard",
|
||||
"version": "1.0",
|
||||
"body": [
|
||||
|
@ -24,13 +36,4 @@ var card = {
|
|||
]
|
||||
};
|
||||
```
|
||||
## Example saving
|
||||
```javascript
|
||||
var json = JSON.stringify(card);
|
||||
```
|
||||
|
||||
## Example loading
|
||||
```javascript
|
||||
var card = JSON.parse(json);
|
||||
```
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче