Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/google/cloud/logging_v2/__init__.py: 96%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

24 statements  

1# Copyright 2018 Google LLC 

2# 

3# Licensed under the Apache License, Version 2.0 (the "License"); 

4# you may not use this file except in compliance with the License. 

5# You may obtain a copy of the License at 

6# 

7# https://www.apache.org/licenses/LICENSE-2.0 

8# 

9# Unless required by applicable law or agreed to in writing, software 

10# distributed under the License is distributed on an "AS IS" BASIS, 

11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

12# See the License for the specific language governing permissions and 

13# limitations under the License. 

14 

15from __future__ import absolute_import 

16 

17from google.cloud.logging_v2 import gapic_version as package_version 

18 

19__version__ = package_version.__version__ 

20 

21from google.cloud.logging_v2.client import Client 

22from google.cloud.logging_v2.entries import logger_name_from_path 

23from google.cloud.logging_v2.entries import LogEntry 

24from google.cloud.logging_v2.entries import TextEntry 

25from google.cloud.logging_v2.entries import StructEntry 

26from google.cloud.logging_v2.entries import ProtobufEntry 

27from google.cloud.logging_v2 import handlers 

28from google.cloud.logging_v2.logger import Logger 

29from google.cloud.logging_v2.logger import Batch 

30from google.cloud.logging_v2.metric import Metric 

31from google.cloud.logging_v2.resource import Resource 

32from google.cloud.logging_v2.sink import Sink 

33from google.cloud.logging_v2 import types 

34 

35 

36ASCENDING = "timestamp asc" 

37"""Query string to order by ascending timestamps.""" 

38DESCENDING = "timestamp desc" 

39"""Query string to order by descending timestamps.""" 

40_instrumentation_emitted = False 

41"""Flag for whether instrumentation info has been emitted""" 

42 

43 

44__all__ = ( 

45 "__version__", 

46 "ASCENDING", 

47 "Batch", 

48 "Client", 

49 "DESCENDING", 

50 "handlers", 

51 "logger_name_from_path", 

52 "Logger", 

53 "LogEntry", 

54 "Metric", 

55 "ProtobufEntry", 

56 "Resource", 

57 "Sink", 

58 "StructEntry", 

59 "TextEntry", 

60 "types", 

61)