Add display_name to logging_metric

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
Cameron Thornton 2019-11-08 00:11:21 +00:00 committed by Modular Magician
parent c52213aa7e
commit 03b7f52077
2 changed files with 27 additions and 0 deletions

View file

@ -130,6 +130,14 @@ options:
required: false
default: STRING
type: str
display_name:
description:
- A concise name for the metric, which can be displayed in user interfaces.
Use sentence case without an ending period, for example "Request count".
This field is optional but it is recommended to be set for any metrics associated
with user-visible concepts, such as Quota.
required: false
type: str
label_extractors:
description:
- A map from a label key string to an extractor expression which is used to extract
@ -371,6 +379,14 @@ metricDescriptor:
- The type of data that can be assigned to the label.
returned: success
type: str
displayName:
description:
- A concise name for the metric, which can be displayed in user interfaces.
Use sentence case without an ending period, for example "Request count". This
field is optional but it is recommended to be set for any metrics associated
with user-visible concepts, such as Quota.
returned: success
type: str
labelExtractors:
description:
- A map from a label key string to an extractor expression which is used to extract
@ -499,6 +515,7 @@ def main():
elements='dict',
options=dict(key=dict(required=True, type='str'), description=dict(type='str'), value_type=dict(default='STRING', type='str')),
),
display_name=dict(type='str'),
),
),
label_extractors=dict(type='dict'),
@ -660,6 +677,7 @@ class MetricMetricdescriptor(object):
u'valueType': self.request.get('value_type'),
u'metricKind': self.request.get('metric_kind'),
u'labels': MetricLabelsArray(self.request.get('labels', []), self.module).to_request(),
u'displayName': self.request.get('display_name'),
}
)
@ -670,6 +688,7 @@ class MetricMetricdescriptor(object):
u'valueType': self.request.get(u'valueType'),
u'metricKind': self.request.get(u'metricKind'),
u'labels': MetricLabelsArray(self.request.get(u'labels', []), self.module).from_response(),
u'displayName': self.request.get(u'displayName'),
}
)

View file

@ -178,6 +178,14 @@ resources:
- The type of data that can be assigned to the label.
returned: success
type: str
displayName:
description:
- A concise name for the metric, which can be displayed in user interfaces.
Use sentence case without an ending period, for example "Request count".
This field is optional but it is recommended to be set for any metrics
associated with user-visible concepts, such as Quota.
returned: success
type: str
labelExtractors:
description:
- A map from a label key string to an extractor expression which is used to