Client library for Azure Log Analytics
npm install --save @datafire/azure_operationalinsights_swagger
let azure_operationalinsights_swagger = require('@datafire/azure_operationalinsights_swagger').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
This API exposes Azure Log Analytics query capabilities
Executes an Analytics query for data
azure_operationalinsights_swagger.Query_Get({
"subscriptionId": "",
"resourceGroupName": "",
"workspaceName": "",
"query": "",
"apiVersion": ""
}, context)
- input
object
- subscriptionId required
string
: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - resourceGroupName required
string
: The name of the resource group to get. The name is case insensitive. - workspaceName required
string
: Name of the Log Analytics workspace. - query required
string
: The Analytics query. Learn more about the Analytics query syntax - timespan
string
: Optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the query expression. - apiVersion required
string
: Client API version.
- subscriptionId required
- output queryResults
Executes an Analytics query for data. Here is an example for using POST with an Analytics query.
azure_operationalinsights_swagger.Query_Execute({
"subscriptionId": "",
"resourceGroupName": "",
"workspaceName": "",
"body": {
"query": ""
},
"apiVersion": ""
}, context)
- input
object
- subscriptionId required
string
: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - resourceGroupName required
string
: The name of the resource group to get. The name is case insensitive. - workspaceName required
string
: Name of the Log Analytics workspace. - body required queryBody
- apiVersion required
string
: Client API version.
- subscriptionId required
- output queryResults
- A table column.
object
: A column in a table.- name
string
: The name of this column. - type
string
: The data type of this column.
- name
- Error details.
object
- additionalProperties
object
- code required
string
: The error's code. - message required
string
: A human readable error message. - resources
array
: Indicates resources which were responsible for the error.- items
string
- items
- target
string
: Indicates which property in the request is responsible for the error. - value
string
: Indicates which value in 'target' is responsible for the error.
- additionalProperties
- The code and message for an error.
object
- additionalProperties
object
- code required
string
: A machine readable error code. - details
array
: error details.- items errorDetail
- innererror errorInfo
- message required
string
: A human readable error message.
- additionalProperties
- Error details.
object
: Contains details when the response code indicates an error.- error required errorInfo
- queryBody
object
: The Analytics query. Learn more about the Analytics query syntax- query required queryParam
- timespan timespanParam
- workspaces workspacesParam
- queryParam
string
: The Analytics query. Learn more about the Analytics query syntax
- A query response.
object
: Contains the tables, columns & rows resulting from a query.- tables required
array
: The list of tables, columns and rows.- items table
- tables required
- A query response table.
object
: Contains the columns and rows for one table in a query response.- columns required
array
: The list of columns in this table.- items column
- name required
string
: The name of the table. - rows required
array
: The resulting rows from this query.- items
array
- items
string
- items
- items
- columns required
- timespanParam
string
: Optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the query expression.
- workspacesParam
array
: Workspace IDs to include in cross-workspace queries.- items
string
- items