npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/azure_monitor_scheduledqueryrule_api

v3.0.0

Published

DataFire integration for Microsoft Insights

Downloads

6

Readme

@datafire/azure_monitor_scheduledqueryrule_api

Client library for Microsoft Insights

Installation and Usage

npm install --save @datafire/azure_monitor_scheduledqueryrule_api
let azure_monitor_scheduledqueryrule_api = require('@datafire/azure_monitor_scheduledqueryrule_api').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

Azure Monitor client to create/update/delete Scheduled Query Rules

Actions

ScheduledQueryRules_ListBySubscription

List the Log Search rules within a subscription group.

azure_monitor_scheduledqueryrule_api.ScheduledQueryRules_ListBySubscription({
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • api-version required string: Client Api Version.
    • $filter string: The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx
    • subscriptionId required string: The Azure subscription Id.

Output

ScheduledQueryRules_ListByResourceGroup

List the Log Search rules within a resource group.

azure_monitor_scheduledqueryrule_api.ScheduledQueryRules_ListByResourceGroup({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • resourceGroupName required string: The name of the resource group.
    • api-version required string: Client Api Version.
    • $filter string: The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx
    • subscriptionId required string: The Azure subscription Id.

Output

ScheduledQueryRules_Delete

Deletes a Log Search rule

azure_monitor_scheduledqueryrule_api.ScheduledQueryRules_Delete({
  "resourceGroupName": "",
  "ruleName": "",
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • resourceGroupName required string: The name of the resource group.
    • ruleName required string: The name of the rule.
    • api-version required string: Client Api Version.
    • subscriptionId required string: The Azure subscription Id.

Output

Output schema unknown

ScheduledQueryRules_Get

Gets an Log Search rule

azure_monitor_scheduledqueryrule_api.ScheduledQueryRules_Get({
  "resourceGroupName": "",
  "ruleName": "",
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • resourceGroupName required string: The name of the resource group.
    • ruleName required string: The name of the rule.
    • api-version required string: Client Api Version.
    • subscriptionId required string: The Azure subscription Id.

Output

ScheduledQueryRules_Update

Update log search Rule.

azure_monitor_scheduledqueryrule_api.ScheduledQueryRules_Update({
  "subscriptionId": "",
  "resourceGroupName": "",
  "ruleName": "",
  "api-version": "",
  "parameters": null
}, context)

Input

  • input object
    • subscriptionId required string: The Azure subscription Id.
    • resourceGroupName required string: The name of the resource group.
    • ruleName required string: The name of the rule.
    • api-version required string: Client Api Version.
    • parameters required LogSearchRuleResourcePatch

Output

ScheduledQueryRules_CreateOrUpdate

Creates or updates an log search rule.

azure_monitor_scheduledqueryrule_api.ScheduledQueryRules_CreateOrUpdate({
  "subscriptionId": "",
  "resourceGroupName": "",
  "ruleName": "",
  "api-version": "",
  "parameters": {
    "properties": null
  }
}, context)

Input

  • input object
    • subscriptionId required string: The Azure subscription Id.
    • resourceGroupName required string: The name of the resource group.
    • ruleName required string: The name of the rule.
    • api-version required string: Client Api Version.
    • parameters required LogSearchRuleResource

Output

Definitions

Action

  • Action object: Action descriptor.
    • odata.type required string: Specifies the action. Supported values - AlertingAction, LogToMetricAction

AlertSeverity

  • AlertSeverity string (values: 0, 1, 2, 3, 4): Severity Level of Alert

AlertingAction

  • AlertingAction object: Specify action need to be taken when rule type is Alert
    • aznsAction AzNsActionGroup
    • severity required AlertSeverity
    • throttlingInMin integer: time (in minutes) for which Alerts should be throttled or suppressed.
    • trigger required TriggerCondition
    • odata.type required string: Specifies the action. Supported values - AlertingAction, LogToMetricAction

AzNsActionGroup

  • AzNsActionGroup object: Azure action group
    • actionGroup array: Azure Action Group reference.
      • items string
    • customWebhookPayload string: Custom payload to be sent for all webhook URI in Azure action group
    • emailSubject string: Custom subject override for all email ids in Azure action group

ConditionalOperator

  • ConditionalOperator string (values: GreaterThan, LessThan, Equal): Result Condition Evaluation criteria. Supported Values - 'GreaterThan' or 'LessThan' or 'Equal'.

Criteria

  • Criteria object: Specifies the criteria for converting log to metric.
    • dimensions array: List of Dimensions for creating metric
    • metricName required string: Name of the metric

Dimension

  • Dimension object: Specifies the criteria for converting log to metric.
    • name required string: Name of the dimension
    • operator required string (values: Include): Operator for dimension values
    • values required array: List of dimension values
      • items string

ErrorResponse

  • ErrorResponse object: Describes the format of Error response.
    • code string: Error code
    • message string: Error message indicating why the operation failed.

LogMetricTrigger

  • LogMetricTrigger object: A log metrics trigger descriptor.
    • metricColumn string: Evaluation of metric on a particular column
    • metricTriggerType MetricTriggerType
    • threshold number: The threshold of the metric trigger.
    • thresholdOperator ConditionalOperator

LogSearchRule

  • LogSearchRule object: Log Search Rule Definition
    • action required Action
    • description string: The description of the Log Search rule.
    • enabled string (values: true, false): The flag which indicates whether the Log Search rule is enabled. Value should be true or false
    • lastUpdatedTime string: Last time the rule was updated in IS08601 format.
    • provisioningState string (values: Succeeded, Deploying, Canceled, Failed): Provisioning state of the scheduled query rule
    • schedule Schedule
    • source required Source

LogSearchRulePatch

  • LogSearchRulePatch object: Log Search Rule Definition for Patching
    • enabled string (values: true, false): The flag which indicates whether the Log Search rule is enabled. Value should be true or false

LogSearchRuleResource

  • LogSearchRuleResource object: The Log Search Rule resource.
    • properties required LogSearchRule
    • id string: Azure resource Id
    • location required string: Resource location
    • name string: Azure resource name
    • type string: Azure resource type

LogSearchRuleResourceCollection

  • LogSearchRuleResourceCollection object: Represents a collection of Log Search rule resources.

LogSearchRuleResourcePatch

  • LogSearchRuleResourcePatch object: The log search rule resource for patch operations.

LogToMetricAction

  • LogToMetricAction object: Specify action need to be taken when rule type is converting log to metric
    • criteria required array: Criteria of Metric
    • odata.type required string: Specifies the action. Supported values - AlertingAction, LogToMetricAction

MetricTriggerType

  • MetricTriggerType string (values: Consecutive, Total): Metric Trigger Evaluation Type

QueryType

  • QueryType string (values: ResultCount): Set value to 'ResultAccount'

Resource

  • Resource object: An azure resource object
    • id string: Azure resource Id
    • location required string: Resource location
    • name string: Azure resource name
    • type string: Azure resource type

Schedule

  • Schedule object: Defines how often to run the search and the time interval.
    • frequencyInMinutes required integer: frequency (in minutes) at which rule condition should be evaluated.
    • timeWindowInMinutes required integer: Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).

Source

  • Source object: Specifies the log search query.
    • authorizedResources array: List of Resource referred into query
      • items string
    • dataSourceId required string: The resource uri over which log search query is to be run.
    • query string: Log search query. Required for action type - AlertingAction
    • queryType QueryType

TriggerCondition

  • TriggerCondition object: The condition that results in the Log Search rule.