mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-09 04:10:27 -07:00
Add display_name to logging_metric
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
c52213aa7e
commit
03b7f52077
2 changed files with 27 additions and 0 deletions
|
@ -130,6 +130,14 @@ options:
|
||||||
required: false
|
required: false
|
||||||
default: STRING
|
default: STRING
|
||||||
type: str
|
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:
|
label_extractors:
|
||||||
description:
|
description:
|
||||||
- A map from a label key string to an extractor expression which is used to extract
|
- 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.
|
- The type of data that can be assigned to the label.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
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:
|
labelExtractors:
|
||||||
description:
|
description:
|
||||||
- A map from a label key string to an extractor expression which is used to extract
|
- A map from a label key string to an extractor expression which is used to extract
|
||||||
|
@ -499,6 +515,7 @@ def main():
|
||||||
elements='dict',
|
elements='dict',
|
||||||
options=dict(key=dict(required=True, type='str'), description=dict(type='str'), value_type=dict(default='STRING', type='str')),
|
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'),
|
label_extractors=dict(type='dict'),
|
||||||
|
@ -660,6 +677,7 @@ class MetricMetricdescriptor(object):
|
||||||
u'valueType': self.request.get('value_type'),
|
u'valueType': self.request.get('value_type'),
|
||||||
u'metricKind': self.request.get('metric_kind'),
|
u'metricKind': self.request.get('metric_kind'),
|
||||||
u'labels': MetricLabelsArray(self.request.get('labels', []), self.module).to_request(),
|
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'valueType': self.request.get(u'valueType'),
|
||||||
u'metricKind': self.request.get(u'metricKind'),
|
u'metricKind': self.request.get(u'metricKind'),
|
||||||
u'labels': MetricLabelsArray(self.request.get(u'labels', []), self.module).from_response(),
|
u'labels': MetricLabelsArray(self.request.get(u'labels', []), self.module).from_response(),
|
||||||
|
u'displayName': self.request.get(u'displayName'),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -178,6 +178,14 @@ resources:
|
||||||
- The type of data that can be assigned to the label.
|
- The type of data that can be assigned to the label.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
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:
|
labelExtractors:
|
||||||
description:
|
description:
|
||||||
- A map from a label key string to an extractor expression which is used to
|
- A map from a label key string to an extractor expression which is used to
|
||||||
|
|
Loading…
Add table
Reference in a new issue