Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
28 changes: 28 additions & 0 deletions .azure-pipelines/client.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
parameters:
name: ''
vmImage: ''

jobs:
- job: ${{ format('Test_{0}', parameters.name) }}
dependsOn:
- 'Build'
pool:
vmImage: ${{ parameters.vmImage }}

steps:
- script: |
mvn jetty:run-forked -Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn --batch-mode -f pom.client.xml
displayName: 'Start Jetty'

- task: Maven@3
displayName: 'Run tests'
inputs:
mavenPomFile: $(pomFile)
options: '--batch-mode' #hides dependencies download progress from CI output
mavenOptions: '-Xmx3072m -Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
goals: 'test'
46 changes: 46 additions & 0 deletions .azure-pipelines/client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
trigger:
- master

jobs:
- job: 'Build'

pool:
vmImage: 'ubuntu-16.04'

steps:
- task: Maven@3
displayName: 'Build and Package'
inputs:
mavenPomFile: $(pomFile)
goals: 'checkstyle:check javadoc:jar source:jar package'
options: '--batch-mode -Dmaven.test.skip=true'
mavenOptions: '-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false

- powershell: |
# use sources files as a marker to find POM files so we can copy them to the output. The sources.jar file is generally
# in a target folder next to the pom.xml file so $_.Directory.Parent should get us the folder that contains the POM.
dir -r -i *-sources.jar | % { copy (Join-Path $_.Directory.Parent.FullName "pom.xml") (Join-Path $(Build.ArtifactStagingDirectory) $_.Name.Replace("-sources.jar",".pom")) }
dir -r -i *.jar | % { copy $_ $(Build.ArtifactStagingDirectory) }
displayName: 'Copy JAR and POM files to artifact staging'

- task: PublishBuildArtifacts@1
displayName: 'Publish'

- template: client.test.yml
parameters:
name: Linux
vmImage: 'ubuntu-16.04'

- template: client.test.yml
parameters:
name: macOS
vmImage: 'macOS-10.13'

- template: client.test.yml
parameters:
name: Windows
vmImage: 'vs2017-win2016'
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[![Build Status](https://travis-ci.org/Azure/azure-libraries-for-java.svg?style=flat-square&label=build)](https://travis-ci.org/Azure/azure-libraries-for-java)

> :warning: *NOTE: The **Azure Libraries for Java** project (resource management APIs with fluent interface design pattern) has moved to https://github.com/azure/azure-libraries-for-java, so please log issues for that project in that new repository. This repository is now dedicated to other, auto-generated, non-management Azure SDKs only.*

# Azure SDKs for Java

| Component | Build Status |
| --------- | ------------ |
| Management Libraries | [![Build Status](https://travis-ci.org/Azure/azure-sdk-for-java.svg?branch=master)](https://travis-ci.org/Azure/azure-sdk-for-java) |
| Client Libraries | [![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/azure-sdk-for-java.client)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=17) |

:+1: [Try Azure for FREE](http://go.microsoft.com/fwlink/?LinkId=330212)

This repository contains Azure SDKs enabling the programmatic *consumption* of miscellaneous Azure services (i.e. *not management* - for that see https://github.com/azure/azure-libraries-for-java)
Expand Down
24 changes: 24 additions & 0 deletions api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"source": "specification/applicationinsights/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"applicationinsights/data-plane": {
"source": "specification/applicationinsights/data-plane/readme.md",
"args": "--payload-flattening-threshold=1"
},
"appservice/resource-manager": {
"source": "specification/web/resource-manager/readme.md",
"args": "--multiapi --fluent",
Expand Down Expand Up @@ -36,6 +40,14 @@
},
"containerregistry/resource-manager": {
"source": "specification/containerregistry/resource-manager/readme.md",
"args": "--multiapi=true --fluent=true"
},
"datalakeanalytics/resource-manager": {
"source": "specification/datalake-analytics/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"datalakestore/resource-manager": {
"source": "specification/datalake-store/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"dns/resource-manager": {
Expand All @@ -50,6 +62,10 @@
"source": "specification/eventgrid/data-plane/readme.md",
"args": "--multiapi"
},
"hdinsight/resource-manager": {
"source": "specification/hdinsight/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"iotcentral/resource-manager": {
"source": "specification/iotcentral/resource-manager/readme.md",
"args": "--multiapi --fluent",
Expand All @@ -68,10 +84,18 @@
"source": "specification/keyvault/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"loganalytics/data-plane": {
"source": "specification/operationalinsights/data-plane/readme.md",
"args": "--payload-flattening-threshold=1 --override-client-name=LogAnalyticsDataClient"
},
"logic/resource-manager": {
"source": "specification/logic/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"notificationhubs/resource-manager": {
"source": "specification/notificationhubs/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"mediaservices/resource-manager": {
"source": "specification/mediaservices/resource-manager/readme.md",
"args": "--multiapi --fluent"
Expand Down
50 changes: 50 additions & 0 deletions applicationinsights/data-plane/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Azure Application Insights

This project provides client tools or utilities in Java that make it easy to query data in [Azure Application Insights](https://azure.microsoft.com/en-us/services/application-insights/). For reference documentation on classes and models, please see the [Azure SDK for Java reference](https://docs.microsoft.com/en-us/java/api/overview/azure/?view=azure-java-stable).

Azure Application Insights provides SDKs for telemtry collection and enables deep analytics via a [rich query language](https://docs.loganalytics.io/index). This SDK provides query access to data already stored in Application Insights. To start monitoring a Java application, take a look at the [quickstart](https://docs.microsoft.com/en-us/azure/application-insights/app-insights-java-quick-start).

## Examples

Please see [here](src/main/java/com/microsoft/azure/applicationinsights/query/samples) for code examples using this SDK.

## Download

### Latest release

To get the binaries of the official Microsoft Azure Log Analytics SDK as distributed by Microsoft, reade for use within your project, you can use Maven.

```xml
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-applicationinsights-query</artifactId>
<version>LATEST</version>
</dependency>
```

## Prerequisites

- A Java Developer Kit (JDK), v 1.7 or later
- Maven

## Help and Issues

If you encounter any bugs with these SDKs, please file issues via [Issues](https://github.com/Azure/azure-sdk-for-java/issues) or checkout [StackOverflow for Azure Java SDK](http://stackoverflow.com/questions/tagged/azure-java-sdk).

## Contribute Code

If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines](http://azure.github.io/guidelines.html).

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## More information
- [Azure Java SDKs](https://docs.microsoft.com/java/azure/)
- If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212)

---

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
164 changes: 164 additions & 0 deletions applicationinsights/data-plane/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
<!--
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-applicationinsights-query</artifactId>
<version>1.0.0-Preview-1</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Application Insights Query API</name>
<description>This package contains Microsoft Application Insights SDK for retrieving metrics, events, and running queries.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
<runtime.version>1.6.3</runtime.version>
<testMode>record</testMode>
</properties>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>${runtime.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-authentication</artifactId>
<version>${runtime.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-client-runtime</artifactId>
<version>${runtime.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-client-runtime</artifactId>
<version>${runtime.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>write-project-properties</goal>
</goals>
<configuration>
<outputFile>
${project.build.outputDirectory}/maven.properties
</outputFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<annotationProcessors>
<annotationProcessor>
com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
</annotationProcessor>
</annotationProcessors>
<debug>true</debug>
<optimize>true</optimize>
<compilerArguments>
<AaddGeneratedAnnotation>true</AaddGeneratedAnnotation>
<Adebug>true</Adebug>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<excludePackageNames>*.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search</excludePackageNames>
<bottom>
<![CDATA[<code>
/**
<br />* Copyright (c) Microsoft Corporation. All rights reserved.
<br />* Licensed under the MIT License. See License.txt in the project root for
<br />* license information.
<br />*/
</code>]]>
</bottom>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20</version>
<configuration>
<reuseForks>false</reuseForks>
<includes>
<include>**/Test*.java</include>
<include>**/*Test.java</include>
<include>**/*Tests.java</include>
<include>**/*TestCase.java</include>
</includes>
<environmentVariables>
<test.mode>${testMode}</test.mode>
</environmentVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading