Skip to content
Merged
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
11 changes: 3 additions & 8 deletions applicationinsights/data-plane/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<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.1</runtime.version>
<runtime.version>1.6.3</runtime.version>
<testMode>record</testMode>
</properties>
<developers>
Expand All @@ -42,7 +42,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>1.6.1</version>
<version>${runtime.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand All @@ -68,11 +68,6 @@
<artifactId>azure-arm-client-runtime</artifactId>
<version>${runtime.version}</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>${runtime.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down Expand Up @@ -166,4 +161,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
9 changes: 2 additions & 7 deletions loganalytics/data-plane/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<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.1</runtime.version>
<runtime.version>1.6.3</runtime.version>
<testMode>record</testMode>
</properties>
<developers>
Expand All @@ -42,7 +42,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>1.6.1</version>
<version>${runtime.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand All @@ -68,11 +68,6 @@
<artifactId>azure-arm-client-runtime</artifactId>
<version>${runtime.version}</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>${runtime.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
76 changes: 76 additions & 0 deletions loganalytics/data-plane/samples/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!--
* 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-loganalytics-sample</artifactId>
<version>1.0.0-Preview-1</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Log Analytics Sample</name>
<description>This package contains Microsoft Log Analytics SDK Sample.</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:[email protected]: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>
</properties>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-loganalytics</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-authentication</artifactId>
<version>${runtime.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<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>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
import java.util.List;
import java.util.stream.Collectors;
/**
* 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.
*/

package com.microsoft.azure.loganalytics.samples;

import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.credentials.ApplicationTokenCredentials;
import com.microsoft.azure.loganalytics.implementation.LogAnalyticsDataClientImpl;
import com.microsoft.azure.loganalytics.models.Column;
import com.microsoft.azure.loganalytics.models.QueryBody;
import com.microsoft.azure.loganalytics.models.QueryResults;
import com.microsoft.azure.credentials.ApplicationTokenCredentials;

import java.util.List;

/**
* Basic query example
Expand Down Expand Up @@ -34,19 +45,15 @@ public static void main( String[] args )

// Process and print results
List<Object> row = queryResults.tables().get(0).rows().get(0);
List<String> columnNames = queryResults
List<Column> columnNames = queryResults
.tables()
.get(0)
.columns()
.stream()
.map(elt -> elt.name())
.collect(Collectors.toList());
.columns();

for (int i = 0; i < row.size(); i++){
System.out.println("The value of " + columnNames.get(i) + " is " + row.get(i));
System.out.println("The value of " + columnNames.get(i).name() + " is " + row.get(i));
}

return;
}
}
```
}

This file was deleted.