Skip to content

Commit

Permalink
chore(migration): Migrate code from googleapis/python-monitoring-dash…
Browse files Browse the repository at this point in the history
…boards into packages/google-cloud-monitoring-dashboards (#11901)

See #10914. 

This PR should be merged with a merge-commit, not a squash-commit, in
order to preserve the git history.
  • Loading branch information
parthea authored Oct 27, 2023
2 parents d79627c + 0106041 commit fca24bd
Show file tree
Hide file tree
Showing 141 changed files with 22,783 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/google-cloud-monitoring-dashboards/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/monitoring/dashboard/(v.*)/.*-py
dest: /owl-bot-staging/google-cloud-monitoring-dashboards/$1

begin-after-commit-hash: b06c9034cfcbce180ba732d03be6526e5c8ea1bc

13 changes: 13 additions & 0 deletions packages/google-cloud-monitoring-dashboards/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
branch = True

[report]
show_missing = True
omit =
google/cloud/monitoring_dashboard/__init__.py
google/cloud/monitoring_dashboard/gapic_version.py
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
# Ignore debug-only repr
def __repr__
33 changes: 33 additions & 0 deletions packages/google-cloud-monitoring-dashboards/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
#
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by synthtool. DO NOT EDIT!
[flake8]
ignore = E203, E231, E266, E501, W503
exclude =
# Exclude generated code.
**/proto/**
**/gapic/**
**/services/**
**/types/**
*_pb2.py

# Standard linting exemptions.
**/.nox/**
__pycache__,
.git,
*.pyc,
conf.py
63 changes: 63 additions & 0 deletions packages/google-cloud-monitoring-dashboards/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
*.py[cod]
*.sw[op]

# C extensions
*.so

# Packages
*.egg
*.egg-info
dist
build
eggs
.eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
__pycache__

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.nox
.cache
.pytest_cache


# Mac
.DS_Store

# JetBrains
.idea

# VS Code
.vscode

# emacs
*~

# Built documentation
docs/_build
bigquery/docs/generated
docs.metadata

# Virtual environment
env/

# Test logs
coverage.xml
*sponge_log.xml

# System test environment variables.
system_tests/local_test_setup

# Make sure a generated file isn't accidentally committed.
pylintrc
pylintrc.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "2.12.2"
}
18 changes: 18 additions & 0 deletions packages/google-cloud-monitoring-dashboards/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "monitoring-dashboards",
"name_pretty": "Monitoring Dashboards",
"product_documentation": "https://cloud.google.com/monitoring/dashboards/",
"client_documentation": "https://cloud.google.com/python/docs/reference/monitoring-dashboards/latest",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559785",
"release_level": "stable",
"language": "python",
"library_type": "GAPIC_AUTO",
"repo": "googleapis/python-monitoring-dashboards",
"distribution_name": "google-cloud-monitoring-dashboards",
"api_id": "monitoring.googleapis.com",
"requires_billing": true,
"default_version": "v1",
"codeowner_team": "",
"api_shortname": "monitoring",
"api_description": "are one way for you to view and analyze metric data. The Cloud Console provides predefined dashboards that require no setup or configuration. You can also define custom dashboards. With custom dashboards, you have complete control over the charts that are displayed and their configuration."
}
Loading

0 comments on commit fca24bd

Please sign in to comment.