Skip to content

Commit

Permalink
Add monitor-pipeline-group extension (#7969)
Browse files Browse the repository at this point in the history
* Add monitor-pipeline-group extension
  • Loading branch information
JingchuanHuangMSFT authored Sep 20, 2024
1 parent 0431c47 commit 6e4c886
Show file tree
Hide file tree
Showing 32 changed files with 5,645 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/monitor-pipeline-group/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. :changelog:
Release History
===============

1.0.0b1
++++++
* Initial release.
31 changes: 31 additions & 0 deletions src/monitor-pipeline-group/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Azure CLI monitor-pipeline-group Extension #
This is an extension to Azure CLI to manage Azure Monitor Pipeline Group (Microsoft.Monitor/pipelineGroups) resources.

## How to use ##
Install this extension using the below CLI command
```
az extension add --name monitor-pipeline-group
```

### Included Features
#### pipeline-group
##### Create
```
az monitor pipeline-group create --resource-group "myResourceGroup" --location "eastus" --name "myPipeline" --exporters @exporters.json --processors @processors.json --receivers @receivers.json --service @service.json --network-config [] --replicas 1 --extended-location @extendedLocation.json
```
##### Show
```
az monitor pipeline-group show --resource-group "myResourceGroup" --name "myPipeline"
```
##### List
```
az monitor pipeline-group list --resource-group "myResourceGroup"
```
##### Update
```
az monitor pipeline-group update --resource-group "myResourceGroup" --name "myPipeline" --service @service.json --exporters @exporters.json --processors @processors.json --receivers @receivers.json --service @service.json
```
##### Delete
```
az monitor pipeline-group delete --resource-group "myResourceGroup" --name "myPipeline"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azext_monitor_pipeline_group._help import helps # pylint: disable=unused-import


class MonitorPipelineGroupCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
custom_command_type = CliCommandType(
operations_tmpl='azext_monitor_pipeline_group.custom#{}')
super().__init__(cli_ctx=cli_ctx,
custom_command_type=custom_command_type)

def load_command_table(self, args):
from azext_monitor_pipeline_group.commands import load_command_table
from azure.cli.core.aaz import load_aaz_command_table
try:
from . import aaz
except ImportError:
aaz = None
if aaz:
load_aaz_command_table(
loader=self,
aaz_pkg_name=aaz.__name__,
args=args
)
load_command_table(self, args)
return self.command_table

def load_arguments(self, command):
from azext_monitor_pipeline_group._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = MonitorPipelineGroupCommandsLoader
11 changes: 11 additions & 0 deletions src/monitor-pipeline-group/azext_monitor_pipeline_group/_help.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: disable=line-too-long
# pylint: disable=too-many-lines

from knack.help_files import helps # pylint: disable=unused-import
13 changes: 13 additions & 0 deletions src/monitor-pipeline-group/azext_monitor_pipeline_group/_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: disable=too-many-lines
# pylint: disable=too-many-statements


def load_arguments(self, _): # pylint: disable=unused-argument
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"monitor",
)
class __CMDGroup(AAZCommandGroup):
"""Manage the Azure Monitor Service.
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"monitor pipeline-group",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Pipeline Groups
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._show import *
from ._update import *
from ._wait import *
Loading

0 comments on commit 6e4c886

Please sign in to comment.