Skip to content

Commit 5abc938

Browse files
authored
Update monitoring region tags (#830)
1 parent b0417c9 commit 5abc938

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

monitoring/api/v3/cloud-client/quickstart.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# [START monitoring_quickstart]
16-
from google.cloud import monitoring
17-
1815

1916
def run_quickstart():
17+
# [START monitoring_quickstart]
18+
from google.cloud import monitoring
19+
2020
client = monitoring.Client()
2121

2222
resource = client.resource(
@@ -32,9 +32,10 @@ def run_quickstart():
3232
labels={}
3333
)
3434

35+
# Default arguments use endtime datetime.utcnow()
3536
client.write_point(metric, resource, 3.14)
3637
print('Successfully wrote time series.')
37-
# [END monitoring_quickstart]
38+
# [END monitoring_quickstart]
3839

3940

4041
if __name__ == '__main__':

0 commit comments

Comments
 (0)