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_alertsmanagement_smartdetectoralertrulesapi

v3.0.0

Published

DataFire integration for Azure Alerts Management Service Resource Provider

Downloads

3

Readme

@datafire/azure_alertsmanagement_smartdetectoralertrulesapi

Client library for Azure Alerts Management Service Resource Provider

Installation and Usage

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

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

Description

APIs for Azure Smart Detector Alert Rules CRUD operations.

Actions

SmartDetectorAlertRules_List

List all the existing Smart Detector alert rules within the subscription.

azure_alertsmanagement_smartdetectoralertrulesapi.SmartDetectorAlertRules_List({
  "subscriptionId": "",
  "api-version": ""
}, context)

Input

  • input object
    • subscriptionId required string: The ID of the target subscription.
    • api-version required string: Client Api Version.
    • expandDetector boolean: Indicates if Smart Detector should be expanded.

Output

SmartDetectorAlertRules_ListByResourceGroup

List all the existing Smart Detector alert rules within the subscription and resource group.

azure_alertsmanagement_smartdetectoralertrulesapi.SmartDetectorAlertRules_ListByResourceGroup({
  "subscriptionId": "",
  "resourceGroupName": "",
  "api-version": ""
}, context)

Input

  • input object
    • subscriptionId required string: The ID of the target subscription.
    • resourceGroupName required string: The name of the resource group.
    • api-version required string: Client Api Version.
    • expandDetector boolean: Indicates if Smart Detector should be expanded.

Output

SmartDetectorAlertRules_Delete

Delete an existing Smart Detector alert rule.

azure_alertsmanagement_smartdetectoralertrulesapi.SmartDetectorAlertRules_Delete({
  "subscriptionId": "",
  "resourceGroupName": "",
  "alertRuleName": "",
  "api-version": ""
}, context)

Input

  • input object
    • subscriptionId required string: The ID of the target subscription.
    • resourceGroupName required string: The name of the resource group.
    • alertRuleName required string: The name of the alert rule.
    • api-version required string: Client Api Version.

Output

Output schema unknown

SmartDetectorAlertRules_Get

Get a specific Smart Detector alert rule.

azure_alertsmanagement_smartdetectoralertrulesapi.SmartDetectorAlertRules_Get({
  "subscriptionId": "",
  "resourceGroupName": "",
  "alertRuleName": "",
  "api-version": ""
}, context)

Input

  • input object
    • subscriptionId required string: The ID of the target subscription.
    • resourceGroupName required string: The name of the resource group.
    • alertRuleName required string: The name of the alert rule.
    • api-version required string: Client Api Version.
    • expandDetector boolean: Indicates if Smart Detector should be expanded.

Output

SmartDetectorAlertRules_Patch

Patch a specific Smart Detector alert rule.

azure_alertsmanagement_smartdetectoralertrulesapi.SmartDetectorAlertRules_Patch({
  "subscriptionId": "",
  "resourceGroupName": "",
  "alertRuleName": "",
  "api-version": "",
  "parameters": null
}, context)

Input

  • input object
    • subscriptionId required string: The ID of the target subscription.
    • resourceGroupName required string: The name of the resource group.
    • alertRuleName required string: The name of the alert rule.
    • api-version required string: Client Api Version.
    • parameters required AlertRulePatchObject

Output

SmartDetectorAlertRules_CreateOrUpdate

Create or update a Smart Detector alert rule.

azure_alertsmanagement_smartdetectoralertrulesapi.SmartDetectorAlertRules_CreateOrUpdate({
  "subscriptionId": "",
  "resourceGroupName": "",
  "alertRuleName": "",
  "api-version": "",
  "parameters": null
}, context)

Input

  • input object
    • subscriptionId required string: The ID of the target subscription.
    • resourceGroupName required string: The name of the resource group.
    • alertRuleName required string: The name of the alert rule.
    • api-version required string: Client Api Version.
    • parameters required AlertRule

Output

Definitions

ActionGroupsInformation

  • ActionGroupsInformation object: The Action Groups information, used by the alert rule.
    • customEmailSubject string: An optional custom email subject to use in email notifications.
    • customWebhookPayload string: An optional custom web-hook payload to use in web-hook notifications.
    • groupIds required array: The Action Group resource IDs.
      • items string

AlertRule

  • AlertRule object: The alert rule information
    • properties AlertRuleProperties
    • id string: The resource ID.
    • location string: The resource location.
    • name string: The resource name.
    • tags object: The resource tags.
    • type string: The resource type.

AlertRulePatchObject

  • AlertRulePatchObject object: The alert rule patch information
    • id string: The resource ID.
    • name string: The resource name.
    • properties AlertRulePatchProperties
    • tags object: The resource tags.
    • type string: The resource type.

AlertRulePatchProperties

  • AlertRulePatchProperties object: The alert rule properties.
    • actionGroups ActionGroupsInformation
    • description string: The alert rule description.
    • frequency string: The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes.
    • severity string (values: Sev0, Sev1, Sev2, Sev3, Sev4): The alert rule severity.
    • state string (values: Enabled, Disabled): The alert rule state.
    • throttling ThrottlingInformation

AlertRuleProperties

  • AlertRuleProperties object: The alert rule properties.
    • actionGroups required ActionGroupsInformation
    • description string: The alert rule description.
    • detector required Detector
    • frequency required string: The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes.
    • scope required array: The alert rule resources scope.
      • items string
    • severity required string (values: Sev0, Sev1, Sev2, Sev3, Sev4): The alert rule severity.
    • state required string (values: Enabled, Disabled): The alert rule state.
    • throttling ThrottlingInformation

AlertRulesList

  • AlertRulesList object: List of Smart Detector alert rules.
    • nextLink string: The URL to get the next set of results.
    • value array: List of Smart Detector alert rules.

AzureResource

  • AzureResource object: An Azure resource object
    • id string: The resource ID.
    • location string: The resource location.
    • name string: The resource name.
    • tags object: The resource tags.
    • type string: The resource type.

Detector

  • Detector object: The detector information. By default this is not populated, unless it's specified in expandDetector
    • description string: The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    • id required string: The detector id.
    • imagePaths array: The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
      • items string
    • name string: The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    • parameters object: The detector's parameters.'
    • supportedResourceTypes array: The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
      • items string

ErrorResponse

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

ThrottlingInformation

  • ThrottlingInformation object: Optional throttling information for the alert rule.
    • duration string: The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes