Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

v1 list_monitors cannot find monitor tags with spaces

オープン
#1,707 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

レポートに示されている v1 MonitorsApi.list_monitors 呼び出しから始め、monitor_tags クエリ値がどのようにエンコードまたは渡されているかを調査します。提供されている Python スクリプトと、"Tag With Spaces" という名前のタグを使ってこのケースを再現します。list_monitors がそのタグに一致するモニターを返し、スペースを含むタグのケースがカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

kind/bug stale

Describe the bug
If a monitor has a tag whose key has spaces in it, then list_monitors() cannot find it by tag.

To Reproduce

  1. Go to 'Monitors'
  2. Click on 'Edit' (pencil icon) for any monitor
  3. Scroll down to 'tags'
  4. Add a new tag "Tag With Spaces"
  5. click 'Save'

run following python script:

from datadog_api_client.v1 import ApiClient, ApiException, Configuration
from datadog_api_client.v1.api import downtimes_api, monitors_api
from datadog_api_client.v1.models import *
import os

configuration = Configuration()
api_client = ApiClient(configuration)
monitor_api = monitors_api.MonitorsApi(api_client)

rv = monitor_api.list_monitors(with_downtimes=True, monitor_tags="Tag With Spaces")
print(len(rv))

Expected behavior
list_monitors() returns least one monitor that matches the tag

Environment and Versions (please complete the following information):
Python 3.11.4
datadog-api-client==2.17.0

There is nothing in API documentation or UI to suggest that tags with spaces are not supported.

主要言語
Python
スター
166
フォーク
55
平均マージ
2日 17時間
マージ済み PR(30日)
73

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DataDog/datadog-api-client-python のほかの issue

DataDog/datadog-api-client-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。