diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:51:44 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:51:44 +0000 |
commit | 240eb838f236c80b803ec3a127400b63ddeb66af (patch) | |
tree | 4e3efd2c013957a1e55d440c265c56087210f032 | |
parent | 9a2fa703cea2319f24b097de99c8a9fffee6ade7 (diff) |
automatic import of python-libddog
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-libddog.spec | 242 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 244 insertions, 0 deletions
@@ -0,0 +1 @@ +/libddog-0.1.8.post1.tar.gz diff --git a/python-libddog.spec b/python-libddog.spec new file mode 100644 index 0000000..46cfb97 --- /dev/null +++ b/python-libddog.spec @@ -0,0 +1,242 @@ +%global _empty_manifest_terminate_build 0 +Name: python-libddog +Version: 0.1.8.post1 +Release: 1 +Summary: Datadog automation tool +License: MIT +URL: https://github.com/nearmap/libddog +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c0/fd/0b4e8dce0cd2fa1c256d04834a74e3c757edf7bde9e86ae2546c21e2b2fe/libddog-0.1.8.post1.tar.gz +BuildArch: noarch + +Requires: python3-click +Requires: python3-packaging +Requires: python3-parsimonious +Requires: python3-dateutil +Requires: python3-requests + +%description +# Datadog library and command line tools + +[](https://pypi.org/project/libddog) +[](https://github.com/nearmap/libddog/actions/workflows/github-actions.yml) + + +libddog lets you define your metrics and dashboards in code and get the full benefit of a programming language to automate your monitoring setup. + +First you write the query: + +```python +query = (Query("aws.elb.request_count") + .filter(region="us-east-1") + .agg("sum").by("availability-zone").as_count() + .rollup("sum", 5 * 60)) + +# produces: +# sum:aws.elb.request_count{region:us-east-1} +# by {availability-zone}.as_count().rollup(sum, 300) +``` + +The query language closely resembles the Datadog syntax, but because it's Python code and not just a string it is validated and known to be well formed at definition time. + +Then you define what the graph looks like: + +```python +Timeseries( + title="ELB: total requests by AZ every 5min", + requests=[ + Request( + queries=[query], + display_type=DisplayType.BARS, + ), + ], + size=Size(height=3, width=5), +) +``` + +This gives you the widget you want, with all the parameters supported by the Datadog UI. + +Learn more in the **[User guide](https://github.com/nearmap/libddog/blob/master/docs/USER_GUIDE.md)**. + + + +## The state of the project + +libddog is a young project and currently supports a small but useful subset of dashboard functionality. See the **[Feature support](https://github.com/nearmap/libddog/blob/master/docs/FEATURE_SUPPORT.md)** page for details. + +We plan to support more dashboard features over time. We also plan to support monitors. + +Want to know what's new in the project? Read the **[CHANGELOG](https://github.com/nearmap/libddog/blob/master/CHANGELOG.md)**. + +Want to contribute? Start by reading the **[Maintainer guide](https://github.com/nearmap/libddog/blob/master/docs/MAINTAINER_GUIDE.md)**. + + + + +%package -n python3-libddog +Summary: Datadog automation tool +Provides: python-libddog +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-libddog +# Datadog library and command line tools + +[](https://pypi.org/project/libddog) +[](https://github.com/nearmap/libddog/actions/workflows/github-actions.yml) + + +libddog lets you define your metrics and dashboards in code and get the full benefit of a programming language to automate your monitoring setup. + +First you write the query: + +```python +query = (Query("aws.elb.request_count") + .filter(region="us-east-1") + .agg("sum").by("availability-zone").as_count() + .rollup("sum", 5 * 60)) + +# produces: +# sum:aws.elb.request_count{region:us-east-1} +# by {availability-zone}.as_count().rollup(sum, 300) +``` + +The query language closely resembles the Datadog syntax, but because it's Python code and not just a string it is validated and known to be well formed at definition time. + +Then you define what the graph looks like: + +```python +Timeseries( + title="ELB: total requests by AZ every 5min", + requests=[ + Request( + queries=[query], + display_type=DisplayType.BARS, + ), + ], + size=Size(height=3, width=5), +) +``` + +This gives you the widget you want, with all the parameters supported by the Datadog UI. + +Learn more in the **[User guide](https://github.com/nearmap/libddog/blob/master/docs/USER_GUIDE.md)**. + + + +## The state of the project + +libddog is a young project and currently supports a small but useful subset of dashboard functionality. See the **[Feature support](https://github.com/nearmap/libddog/blob/master/docs/FEATURE_SUPPORT.md)** page for details. + +We plan to support more dashboard features over time. We also plan to support monitors. + +Want to know what's new in the project? Read the **[CHANGELOG](https://github.com/nearmap/libddog/blob/master/CHANGELOG.md)**. + +Want to contribute? Start by reading the **[Maintainer guide](https://github.com/nearmap/libddog/blob/master/docs/MAINTAINER_GUIDE.md)**. + + + + +%package help +Summary: Development documents and examples for libddog +Provides: python3-libddog-doc +%description help +# Datadog library and command line tools + +[](https://pypi.org/project/libddog) +[](https://github.com/nearmap/libddog/actions/workflows/github-actions.yml) + + +libddog lets you define your metrics and dashboards in code and get the full benefit of a programming language to automate your monitoring setup. + +First you write the query: + +```python +query = (Query("aws.elb.request_count") + .filter(region="us-east-1") + .agg("sum").by("availability-zone").as_count() + .rollup("sum", 5 * 60)) + +# produces: +# sum:aws.elb.request_count{region:us-east-1} +# by {availability-zone}.as_count().rollup(sum, 300) +``` + +The query language closely resembles the Datadog syntax, but because it's Python code and not just a string it is validated and known to be well formed at definition time. + +Then you define what the graph looks like: + +```python +Timeseries( + title="ELB: total requests by AZ every 5min", + requests=[ + Request( + queries=[query], + display_type=DisplayType.BARS, + ), + ], + size=Size(height=3, width=5), +) +``` + +This gives you the widget you want, with all the parameters supported by the Datadog UI. + +Learn more in the **[User guide](https://github.com/nearmap/libddog/blob/master/docs/USER_GUIDE.md)**. + + + +## The state of the project + +libddog is a young project and currently supports a small but useful subset of dashboard functionality. See the **[Feature support](https://github.com/nearmap/libddog/blob/master/docs/FEATURE_SUPPORT.md)** page for details. + +We plan to support more dashboard features over time. We also plan to support monitors. + +Want to know what's new in the project? Read the **[CHANGELOG](https://github.com/nearmap/libddog/blob/master/CHANGELOG.md)**. + +Want to contribute? Start by reading the **[Maintainer guide](https://github.com/nearmap/libddog/blob/master/docs/MAINTAINER_GUIDE.md)**. + + + + +%prep +%autosetup -n libddog-0.1.8.post1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-libddog -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.8.post1-1 +- Package Spec generated @@ -0,0 +1 @@ +5021955dbe03ffa8fe5aaa155dd805d4 libddog-0.1.8.post1.tar.gz |