Skip to content

Commit

Permalink
Update monitoring region tags (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
waprin authored Feb 28, 2017
1 parent b0417c9 commit 5abc938
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions monitoring/api/v3/cloud-client/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START monitoring_quickstart]
from google.cloud import monitoring


def run_quickstart():
# [START monitoring_quickstart]
from google.cloud import monitoring

client = monitoring.Client()

resource = client.resource(
Expand All @@ -32,9 +32,10 @@ def run_quickstart():
labels={}
)

# Default arguments use endtime datetime.utcnow()
client.write_point(metric, resource, 3.14)
print('Successfully wrote time series.')
# [END monitoring_quickstart]
# [END monitoring_quickstart]


if __name__ == '__main__':
Expand Down

0 comments on commit 5abc938

Please sign in to comment.