Types for Stackdriver Monitoring API Client - Google Cloud
文章推薦指數: 80 %
Stackdriver Monitoring creates the condition identifiers and includes them in the new policy. When calling the [alertPolicies.update][google.monitoring.v3.
OnJanuary1,2020thislibrarywillnolongersupportPython2onthelatestreleasedversion.
Previouslyreleasedlibraryversionswillcontinuetobeavailable.Formoreinformationplease
visitPython2supportonGoogleCloud.
TypesforStackdriverMonitoringAPIClient¶
classgoogle.cloud.monitoring_v3.types.Aggregation¶
Describeshowtocombinemultipletimeseriestoprovidedifferentviews
ofthedata.Aggregationconsistsofanalignmentsteponindividual
timeseries(alignment_periodandper_series_aligner)followed
byanoptionalreductionstepofthedataacrossthealignedtimeseries
(cross_series_reducerandgroup_by_fields).Formoredetails,
seeAggregation.
alignment_period¶
Thealignmentperiodforper-[time
series][google.monitoring.v3.TimeSeries]alignment.If
present,alignmentPeriodmustbeatleast60seconds.
Afterper-timeseriesalignment,eachtimeserieswillcontain
datapointsonlyontheperiodboundaries.If
perSeriesAlignerisnotspecifiedorequals
ALIGN_NONE,thenthisfieldisignored.If
perSeriesAlignerisspecifiedanddoesnotequal
ALIGN_NONE,thenthisfieldmustbedefined;otherwisean
errorisreturned.
per_series_aligner¶
Theapproachtobeusedtoalignindividualtimeseries.Not
allalignmentfunctionsmaybeappliedtoalltimeseries,
dependingonthemetrictypeandvaluetypeoftheoriginal
timeseries.Alignmentmaychangethemetrictypeorthevalue
typeofthetimeseries.Timeseriesdatamustbealignedin
ordertoperformcross-timeseriesreduction.If
crossSeriesReducerisspecified,thenperSeriesAligner
mustbespecifiedandnotequalALIGN_NONEand
alignmentPeriodmustbespecified;otherwise,anerroris
returned.
cross_series_reducer¶
Theapproachtobeusedtocombinetimeseries.Notall
reducerfunctionsmaybeappliedtoalltimeseries,depending
onthemetrictypeandthevaluetypeoftheoriginaltime
series.Reductionmaychangethemetrictypeofvaluetypeof
thetimeseries.Timeseriesdatamustbealignedinorderto
performcross-timeseriesreduction.IfcrossSeriesReducer
isspecified,thenperSeriesAlignermustbespecifiedand
notequalALIGN_NONEandalignmentPeriodmustbe
specified;otherwise,anerrorisreturned.
group_by_fields¶
ThesetoffieldstopreservewhencrossSeriesReduceris
specified.ThegroupByFieldsdeterminehowthetimeseries
arepartitionedintosubsetspriortoapplyingtheaggregation
function.Eachsubsetcontainstimeseriesthathavethesame
valueforeachofthegroupingfields.Eachindividualtime
seriesisamemberofexactlyonesubset.The
crossSeriesReducerisappliedtoeachsubsetoftime
series.Itisnotpossibletoreduceacrossdifferentresource
types,sothisfieldimplicitlycontainsresource.type.
FieldsnotspecifiedingroupByFieldsareaggregatedaway.
IfgroupByFieldsisnotspecifiedandallthetimeseries
havethesameresourcetype,thenthetimeseriesare
aggregatedintoasingleoutputtimeseries.If
crossSeriesReducerisnotdefined,thisfieldisignored.
alignment_period
Fieldgoogle.monitoring.v3.Aggregation.alignment_period
cross_series_reducer
Fieldgoogle.monitoring.v3.Aggregation.cross_series_reducer
group_by_fields
Fieldgoogle.monitoring.v3.Aggregation.group_by_fields
per_series_aligner
Fieldgoogle.monitoring.v3.Aggregation.per_series_aligner
classgoogle.cloud.monitoring_v3.types.AlertPolicy¶
Adescriptionoftheconditionsunderwhichsomeaspectofyoursystem
isconsideredtobe“unhealthy”andthewaystonotifypeopleor
servicesaboutthisstate.Foranoverviewofalertpolicies,see
IntroductiontoAlerting.
name¶
Requiredifthepolicyexists.Theresourcenameforthis
policy.Thesyntaxis:::
projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID]
[ALERT_POLICY_ID]isassignedbyStackdriverMonitoring
whenthepolicyiscreated.Whencallingthe[alertPolicies.cr
eate][google.monitoring.v3.AlertPolicyService.CreateAlertPolic
y]method,donotincludethenamefieldinthealerting
policypassedaspartoftherequest.
display_name¶
Ashortnameorphraseusedtoidentifythepolicyin
dashboards,notifications,andincidents.Toavoidconfusion,
don’tusethesamedisplaynameformultiplepoliciesinthe
sameproject.Thenameislimitedto512Unicodecharacters.
documentation¶
Documentationthatisincludedwithnotificationsand
incidentsrelatedtothispolicy.Bestpracticeisforthe
documentationtoincludeinformationtohelpresponders
understand,mitigate,escalate,andcorrecttheunderlying
problemsdetectedbythealertingpolicy.Notification
channelsthathavelimitedcapacitymightnotshowthis
documentation.
user_labels¶
User-suppliedkey/valuedatatobeusedfororganizingand
identifyingtheAlertPolicyobjects.Thefieldcan
containupto64entries.Eachkeyandvalueislimitedto63
Unicodecharactersor128bytes,whicheverissmaller.Labels
andvaluescancontainonlylowercaseletters,numerals,
underscores,anddashes.Keysmustbeginwithaletter.
conditions¶
Alistofconditionsforthepolicy.Theconditionsare
combinedbyANDorORaccordingtothecombinerfield.If
thecombinedconditionsevaluatetotrue,thenanincidentis
created.Apolicycanhavefromonetosixconditions.
combiner¶
Howtocombinetheresultsofmultipleconditionstodetermine
ifanincidentshouldbeopened.
enabled¶
Whetherornotthepolicyisenabled.Onwrite,thedefault
interpretationifunsetisthatthepolicyisenabled.On
read,clientsshouldnotmakeanyassumptionaboutthestate
ifithasnotbeenpopulated.Thefieldshouldalwaysbe
populatedonListandGetoperations,unlessafield
projectionhasbeenspecifiedthatstripsitout.
validity¶
Read-onlydescriptionofhowthealertpolicyisinvalid.OK
ifthealertpolicyisvalid.IfnotOK,thealertpolicywill
notgenerateincidents.
notification_channels¶
Identifiesthenotificationchannelstowhichnotifications
shouldbesentwhenincidentsareopenedorclosedorwhennew
violationsoccuronanalreadyopenedincident.Eachelement
ofthisarraycorrespondstothenamefieldineachofthe
[NotificationChannel][google.monitoring.v3.NotificationCha
nnel]objectsthatarereturnedfromthe[ListNotificationCh
annels][google.monitoring.v3.NotificationChannelService.List
NotificationChannels]method.Thesyntaxoftheentriesin
thisfieldis:::
projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
creation_record¶
Aread-onlyrecordofthecreationofthealertingpolicy.If
providedinacalltocreateorupdate,thisfieldwillbe
ignored.
mutation_record¶
Aread-onlyrecordofthemostrecentchangetothealerting
policy.Ifprovidedinacalltocreateorupdate,thisfield
willbeignored.
classCondition¶
Aconditionisatrue/falsetestthatdetermineswhenanalertingpolicy
shouldopenanincident.Ifaconditionevaluatestotrue,itsignifies
thatsomethingiswrong.
name¶
Requirediftheconditionexists.Theuniqueresourcenamefor
thiscondition.Itssyntaxis:::projects/[PROJECT_ID]/
alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
[CONDITION_ID]isassignedbyStackdriverMonitoringwhen
theconditioniscreatedaspartofaneworupdatedalerting
policy.Whencallingthe[alertPolicies.create][google.monito
ring.v3.AlertPolicyService.CreateAlertPolicy]method,donot
includethenamefieldintheconditionsoftherequested
alertingpolicy.StackdriverMonitoringcreatesthecondition
identifiersandincludestheminthenewpolicy.Whencalling
the[alertPolicies.update][google.monitoring.v3.AlertPolicySer
vice.UpdateAlertPolicy]methodtoupdateapolicy,includinga
conditionnamecausestheexistingconditiontobe
updated.Conditionswithoutnamesareaddedtotheupdated
policy.Existingconditionsaredeletediftheyarenot
updated.Bestpracticeistopreserve[CONDITION_ID]if
youmakeonlysmallchanges,suchasthosetocondition
thresholds,durations,ortriggervalues.Otherwise,treatthe
changeasanewconditionandlettheexistingconditionbe
deleted.
display_name¶
Ashortnameorphraseusedtoidentifytheconditionin
dashboards,notifications,andincidents.Toavoidconfusion,
don’tusethesamedisplaynameformultipleconditionsinthe
samepolicy.
condition¶
Onlyoneofthefollowingconditiontypeswillbespecified.
condition_threshold¶
Aconditionthatcomparesatimeseriesagainstathreshold.
condition_absent¶
Aconditionthatchecksthatatimeseriescontinuesto
receivenewdatapoints.
classMetricAbsence¶
Aconditiontypethatchecksthatmonitoredresourcesarereporting
data.Theconfigurationdefinesametricandasetofmonitored
resources.Thepredicateisconsideredinviolationwhenatimeseries
forthespecifiedmetricofamonitoredresourcedoesnotincludeany
datainthespecifiedduration.
filter¶
Afilterthatidentifies
whichtimeseriesshouldbecomparedwiththethreshold.The
filterissimilartotheonethatisspecifiedinthe
`ListTimeSeriesrequest
`__
(thatcallisusefultoverifythetimeseriesthatwillbe
retrieved/processed)andmustspecifythemetrictypeand
optionallymaycontainrestrictionsonresourcetype,resource
labels,andmetriclabels.Thisfieldmaynotexceed2048
Unicodecharactersinlength.
aggregations¶
Specifiesthealignmentofdatapointsinindividualtime
seriesaswellashowtocombinetheretrievedtimeseries
together(suchaswhenaggregatingmultiplestreamsoneach
resourcetoasinglestreamforeachresourceorwhen
aggregatingstreamsacrossallmembersofagroupof
resrouces).Multipleaggregationsareappliedintheorder
specified.Thisfieldissimilartotheoneinthe
`ListTimeSeriesrequest
`__.
ItisadvisabletousetheListTimeSeriesmethodwhen
debuggingthisfield.
duration¶
Theamountoftimethatatimeseriesmustfailtoreportnew
datatobeconsideredfailing.Currently,onlyvaluesthatare
amultipleofaminute–e.g.60,120,or300seconds–are
supported.Ifaninvalidvalueisgiven,anerrorwillbe
returned.TheDuration.nanosfieldisignored.
trigger¶
Thenumber/percentoftimeseriesforwhichthecomparison
mustholdinorderfortheconditiontotrigger.If
unspecified,thentheconditionwilltriggerifthecomparison
istrueforanyofthetimeseriesthathavebeenidentified
byfilterandaggregations.
aggregations
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricAbsence.aggregations
duration
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricAbsence.duration
filter
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricAbsence.filter
trigger
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricAbsence.trigger
classMetricThreshold¶
Aconditiontypethatcomparesacollectionoftimeseriesagainsta
threshold.
filter¶
Afilterthatidentifies
whichtimeseriesshouldbecomparedwiththethreshold.The
filterissimilartotheonethatisspecifiedinthe
`ListTimeSeriesrequest
`__
(thatcallisusefultoverifythetimeseriesthatwillbe
retrieved/processed)andmustspecifythemetrictypeand
optionallymaycontainrestrictionsonresourcetype,resource
labels,andmetriclabels.Thisfieldmaynotexceed2048
Unicodecharactersinlength.
aggregations¶
Specifiesthealignmentofdatapointsinindividualtime
seriesaswellashowtocombinetheretrievedtimeseries
together(suchaswhenaggregatingmultiplestreamsoneach
resourcetoasinglestreamforeachresourceorwhen
aggregatingstreamsacrossallmembersofagroupof
resrouces).Multipleaggregationsareappliedintheorder
specified.Thisfieldissimilartotheoneinthe
`ListTimeSeriesrequest
`__.
ItisadvisabletousetheListTimeSeriesmethodwhen
debuggingthisfield.
denominator_filter¶
Afilterthatidentifiesa
timeseriesthatshouldbeusedasthedenominatorofaratio
thatwillbecomparedwiththethreshold.Ifa
denominator_filterisspecified,thetimeseriesspecified
bythefilterfieldwillbeusedasthenumerator.The
filtermustspecifythemetrictypeandoptionallymaycontain
restrictionsonresourcetype,resourcelabels,andmetric
labels.Thisfieldmaynotexceed2048Unicodecharactersin
length.
denominator_aggregations¶
Specifiesthealignmentofdatapointsinindividualtime
seriesselectedbydenominatorFilteraswellashowto
combinetheretrievedtimeseriestogether(suchaswhen
aggregatingmultiplestreamsoneachresourcetoasingle
streamforeachresourceorwhenaggregatingstreamsacross
allmembersofagroupofresources).Whencomputingratios,
theaggregationsanddenominator_aggregationsfields
mustusethesamealignmentperiodandproducetimeseries
thathavethesameperiodicityandlabels.
comparison¶
Thecomparisontoapplybetweenthetimeseries(indicatedby
filterandaggregation)andthethreshold(indicated
bythreshold_value).Thecomparisonisappliedoneach
timeseries,withthetimeseriesontheleft-handsideand
thethresholdontheright-handside.OnlyCOMPARISON_LT
andCOMPARISON_GTaresupportedcurrently.
threshold_value¶
Avalueagainstwhichtocomparethetimeseries.
duration¶
Theamountoftimethatatimeseriesmustviolatethe
thresholdtobeconsideredfailing.Currently,onlyvalues
thatareamultipleofaminute–e.g.,0,60,120,or300
seconds–aresupported.Ifaninvalidvalueisgiven,anerror
willbereturned.Whenchoosingaduration,itisusefulto
keepinmindthefrequencyoftheunderlyingtimeseriesdata
(whichmayalsobeaffectedbyanyalignmentsspecifiedinthe
aggregationsfield);agooddurationislongenoughso
thatasingleoutlierdoesnotgeneratespuriousalerts,but
shortenoughthatunhealthystatesaredetectedandalertedon
quickly.
trigger¶
Thenumber/percentoftimeseriesforwhichthecomparison
mustholdinorderfortheconditiontotrigger.If
unspecified,thentheconditionwilltriggerifthecomparison
istrueforanyofthetimeseriesthathavebeenidentified
byfilterandaggregations,orbytheratio,if
denominator_filteranddenominator_aggregationsare
specified.
aggregations
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricThreshold.aggregations
comparison
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricThreshold.comparison
denominator_aggregations
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricThreshold.denominator_aggregations
denominator_filter
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricThreshold.denominator_filter
duration
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricThreshold.duration
filter
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricThreshold.filter
threshold_value
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricThreshold.threshold_value
trigger
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.MetricThreshold.trigger
classTrigger¶
Specifieshowmanytimeseriesmustfailapredicatetotriggera
condition.Ifnotspecified,thena{count:1}triggerisused.
type¶
Atypeoftrigger.
count¶
Theabsolutenumberoftimeseriesthatmustfailthe
predicatefortheconditiontobetriggered.
percent¶
Thepercentageoftimeseriesthatmustfailthepredicatefor
theconditiontobetriggered.
count
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.Trigger.count
percent
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.Trigger.percent
condition_absent
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.condition_absent
condition_threshold
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.condition_threshold
display_name
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.display_name
name
Fieldgoogle.monitoring.v3.AlertPolicy.Condition.name
classDocumentation¶
AcontentstringandaMIMEtypethatdescribesthecontentstring’s
format.
content¶
Thetextofthedocumentation,interpretedaccordingto
mime_type.Thecontentmaynotexceed8,192Unicode
charactersandmaynotexceedmorethan10,240byteswhen
encodedinUTF-8format,whicheverissmaller.
mime_type¶
Theformatofthecontentfield.Presently,onlythevalue
"text/markdown"issupported.SeeMarkdownformore
information.
content
Fieldgoogle.monitoring.v3.AlertPolicy.Documentation.content
mime_type
Fieldgoogle.monitoring.v3.AlertPolicy.Documentation.mime_type
classUserLabelsEntry¶
key¶
Fieldgoogle.monitoring.v3.AlertPolicy.UserLabelsEntry.key
value¶
Fieldgoogle.monitoring.v3.AlertPolicy.UserLabelsEntry.value
combiner
Fieldgoogle.monitoring.v3.AlertPolicy.combiner
conditions
Fieldgoogle.monitoring.v3.AlertPolicy.conditions
creation_record
Fieldgoogle.monitoring.v3.AlertPolicy.creation_record
display_name
Fieldgoogle.monitoring.v3.AlertPolicy.display_name
documentation
Fieldgoogle.monitoring.v3.AlertPolicy.documentation
enabled
Fieldgoogle.monitoring.v3.AlertPolicy.enabled
mutation_record
Fieldgoogle.monitoring.v3.AlertPolicy.mutation_record
name
Fieldgoogle.monitoring.v3.AlertPolicy.name
notification_channels
Fieldgoogle.monitoring.v3.AlertPolicy.notification_channels
user_labels
Fieldgoogle.monitoring.v3.AlertPolicy.user_labels
validity
Fieldgoogle.monitoring.v3.AlertPolicy.validity
classgoogle.cloud.monitoring_v3.types.Any¶
type_url¶
Fieldgoogle.protobuf.Any.type_url
value¶
Fieldgoogle.protobuf.Any.value
classgoogle.cloud.monitoring_v3.types.BasicSli¶
AnSLImeasuringperformanceonawell-knownservicetype.Performance
willbecomputedonthebasisofpre-definedmetrics.Thetypeofthe
service_resourcedeterminesthemetricstouseandthe
service_resource.labelsandmetric_labelsareusedtoconstruct
amonitoringfiltertofilterthatmetricdowntojustthedatarelevant
tothisservice.
method¶
OPTIONAL:ThesetofRPCstowhichthisSLIisrelevant.
Telemetryfromothermethodswillnotbeusedtocalculate
performanceforthisSLI.Ifomitted,thisSLIappliestoall
theService’smethods.Forservicetypesthatdon’tsupport
breakingdownbymethod,settingthisfieldwillresultinan
error.
location¶
OPTIONAL:ThesetoflocationstowhichthisSLIisrelevant.
Telemetryfromotherlocationswillnotbeusedtocalculate
performanceforthisSLI.Ifomitted,thisSLIappliestoall
locationsinwhichtheServicehasactivity.Forservicetypes
thatdon’tsupportbreakingdownbylocation,settingthis
fieldwillresultinanerror.
version¶
OPTIONAL:ThesetofAPIversionstowhichthisSLIis
relevant.TelemetryfromotherAPIversionswillnotbeused
tocalculateperformanceforthisSLI.Ifomitted,thisSLI
appliestoallAPIversions.Forservicetypesthatdon’t
supportbreakingdownbyversion,settingthisfieldwill
resultinanerror.
sli_criteria¶
ThisSLIcanbeevaluatedonthebasisofavailabilityor
latency.
availability¶
Goodserviceisdefinedtobethecountofrequestsmadeto
thisservicethatreturnsuccessfully.
latency¶
Goodserviceisdefinedtobethecountofrequestsmadeto
thisservicethatarefastenoughwithrespectto
latency.threshold.
classAvailabilityCriteria¶
FutureparametersfortheavailabilitySLI.
classLatencyCriteria¶
ParametersforalatencythresholdSLI.
threshold¶
Goodserviceisdefinedtobethecountofrequestsmadeto
thisservicethatreturninnomorethanthreshold.
threshold
Fieldgoogle.monitoring.v3.BasicSli.LatencyCriteria.threshold
availability
Fieldgoogle.monitoring.v3.BasicSli.availability
latency
Fieldgoogle.monitoring.v3.BasicSli.latency
location
Fieldgoogle.monitoring.v3.BasicSli.location
method
Fieldgoogle.monitoring.v3.BasicSli.method
version
Fieldgoogle.monitoring.v3.BasicSli.version
classgoogle.cloud.monitoring_v3.types.BoolValue¶
value¶
Fieldgoogle.protobuf.BoolValue.value
classgoogle.cloud.monitoring_v3.types.BytesValue¶
value¶
Fieldgoogle.protobuf.BytesValue.value
classgoogle.cloud.monitoring_v3.types.CreateAlertPolicyRequest¶
TheprotocolfortheCreateAlertPolicyrequest.
name¶
Theprojectinwhichtocreatethealertingpolicy.Theformat
isprojects/[PROJECT_ID].Notethatthisfieldnamesthe
parentcontainerinwhichthealertingpolicywillbewritten,
notthenameofthecreatedpolicy.Thealertingpolicythat
isreturnedwillhaveanamethatcontainsanormalized
representationofthisnameasaprefixbutaddsasuffixof
theform/alertPolicies/[POLICY_ID],identifyingthe
policyinthecontainer.
alert_policy¶
Therequestedalertingpolicy.Youshouldomitthename
fieldinthispolicy.Thenamewillbereturnedinthenew
policy,includinganew[ALERT_POLICY_ID]value.
alert_policy
Fieldgoogle.monitoring.v3.CreateAlertPolicyRequest.alert_policy
name
Fieldgoogle.monitoring.v3.CreateAlertPolicyRequest.name
classgoogle.cloud.monitoring_v3.types.CreateGroupRequest¶
TheCreateGrouprequest.
name¶
Theprojectinwhichtocreatethegroup.Theformatis
"projects/{project_id_or_number}".
group¶
Agroupdefinition.Itisanerrortodefinethename
fieldbecausethesystemassignsthename.
validate_only¶
Iftrue,validatethisrequestbutdonotcreatethegroup.
group
Fieldgoogle.monitoring.v3.CreateGroupRequest.group
name
Fieldgoogle.monitoring.v3.CreateGroupRequest.name
validate_only
Fieldgoogle.monitoring.v3.CreateGroupRequest.validate_only
classgoogle.cloud.monitoring_v3.types.CreateMetricDescriptorRequest¶
TheCreateMetricDescriptorrequest.
name¶
Theprojectonwhichtoexecutetherequest.Theformatis
"projects/{project_id_or_number}".
metric_descriptor¶
Thenewcustommetric
descriptor.
metric_descriptor
Fieldgoogle.monitoring.v3.CreateMetricDescriptorRequest.metric_descriptor
name
Fieldgoogle.monitoring.v3.CreateMetricDescriptorRequest.name
classgoogle.cloud.monitoring_v3.types.CreateNotificationChannelRequest¶
TheCreateNotificationChannelrequest.
name¶
Theprojectonwhichtoexecutetherequest.Theformatis:
::projects/[PROJECT_ID]Notethatthisnamesthe
containerintowhichthechannelwillbewritten.Thisdoes
notnamethenewlycreatedchannel.Theresultingchannel’s
namewillhaveanormalizedversionofthisfieldasaprefix,
butwilladd/notificationChannels/[CHANNEL_ID]to
identifythechannel.
notification_channel¶
ThedefinitionoftheNotificationChanneltocreate.
name
Fieldgoogle.monitoring.v3.CreateNotificationChannelRequest.name
notification_channel
Fieldgoogle.monitoring.v3.CreateNotificationChannelRequest.notification_channel
classgoogle.cloud.monitoring_v3.types.CreateServiceLevelObjectiveRequest¶
TheCreateServiceLevelObjectiverequest.
parent¶
ResourcenameoftheparentService.Oftheform
projects/{project_id}/services/{service_id}.
service_level_objective_id¶
Optional.TheServiceLevelObjectiveidtouseforthis
ServiceLevelObjective.Ifomitted,anidwillbegenerated
instead.Mustmatchthepattern[a-z0-9-]+
service_level_objective¶
TheServiceLevelObjectivetocreate.Theprovidedname
willberespectedifnoServiceLevelObjectiveexistswith
thisname.
parent
Fieldgoogle.monitoring.v3.CreateServiceLevelObjectiveRequest.parent
service_level_objective
Fieldgoogle.monitoring.v3.CreateServiceLevelObjectiveRequest.service_level_objective
service_level_objective_id
Fieldgoogle.monitoring.v3.CreateServiceLevelObjectiveRequest.service_level_objective_id
classgoogle.cloud.monitoring_v3.types.CreateServiceRequest¶
TheCreateServicerequest.
parent¶
Resourcenameoftheparentworkspace.Oftheform
projects/{project_id}.
service_id¶
Optional.TheServiceidtouseforthisService.Ifomitted,
anidwillbegeneratedinstead.Mustmatchthepattern
[a-z0-9-]+
service¶
TheServicetocreate.
parent
Fieldgoogle.monitoring.v3.CreateServiceRequest.parent
service
Fieldgoogle.monitoring.v3.CreateServiceRequest.service
service_id
Fieldgoogle.monitoring.v3.CreateServiceRequest.service_id
classgoogle.cloud.monitoring_v3.types.CreateTimeSeriesError¶
DEPRECATED.Usedtoholdper-time-serieserrorstatus.
time_series¶
DEPRECATED.TimeseriesIDthatresultedinthestatus
error.
status¶
DEPRECATED.Thestatusoftherequestedwriteoperationfor
time_series.
status
Fieldgoogle.monitoring.v3.CreateTimeSeriesError.status
time_series
Fieldgoogle.monitoring.v3.CreateTimeSeriesError.time_series
classgoogle.cloud.monitoring_v3.types.CreateTimeSeriesRequest¶
TheCreateTimeSeriesrequest.
name¶
Theprojectonwhichtoexecutetherequest.Theformatis
"projects/{project_id_or_number}".
time_series¶
Thenewdatatobeaddedtoalistoftimeseries.Addsat
mostonedatapointtoeachofseveraltimeseries.Thenew
datapointmustbemorerecentthananyotherpointinits
timeseries.EachTimeSeriesvaluemustfullyspecifya
uniquetimeseriesbysupplyingalllabelvaluesforthe
metricandthemonitoredresource.Themaximumnumberof
TimeSeriesobjectsperCreaterequestis200.
name
Fieldgoogle.monitoring.v3.CreateTimeSeriesRequest.name
time_series
Fieldgoogle.monitoring.v3.CreateTimeSeriesRequest.time_series
classgoogle.cloud.monitoring_v3.types.CreateTimeSeriesSummary¶
Summaryoftheresultofafailedrequesttowritedatatoatime
series.
total_point_count¶
Thenumberofpointsintherequest.
success_point_count¶
Thenumberofpointsthatweresuccessfullywritten.
errors¶
Thenumberofpointsthatfailedtobewritten.Orderisnot
guaranteed.
classError¶
Detailedinformationaboutanerrorcategory.
status¶
Thestatusoftherequestedwriteoperation.
point_count¶
Thenumberofpointsthatcouldn’tbewrittenbecauseof
status.
point_count
Fieldgoogle.monitoring.v3.CreateTimeSeriesSummary.Error.point_count
status
Fieldgoogle.monitoring.v3.CreateTimeSeriesSummary.Error.status
errors
Fieldgoogle.monitoring.v3.CreateTimeSeriesSummary.errors
success_point_count
Fieldgoogle.monitoring.v3.CreateTimeSeriesSummary.success_point_count
total_point_count
Fieldgoogle.monitoring.v3.CreateTimeSeriesSummary.total_point_count
classgoogle.cloud.monitoring_v3.types.CreateUptimeCheckConfigRequest¶
TheprotocolfortheCreateUptimeCheckConfigrequest.
parent¶
TheprojectinwhichtocreatetheUptimecheck.Theformatis
projects/[PROJECT_ID].
uptime_check_config¶
ThenewUptimecheckconfiguration.
parent
Fieldgoogle.monitoring.v3.CreateUptimeCheckConfigRequest.parent
uptime_check_config
Fieldgoogle.monitoring.v3.CreateUptimeCheckConfigRequest.uptime_check_config
classgoogle.cloud.monitoring_v3.types.DeleteAlertPolicyRequest¶
TheprotocolfortheDeleteAlertPolicyrequest.
name¶
Thealertingpolicytodelete.Theformatis:::projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID]For
moreinformation,see
[AlertPolicy][google.monitoring.v3.AlertPolicy].
name
Fieldgoogle.monitoring.v3.DeleteAlertPolicyRequest.name
classgoogle.cloud.monitoring_v3.types.DeleteGroupRequest¶
TheDeleteGrouprequest.Thedefaultbehavioristobeableto
deleteasinglegroupwithoutanydescendants.
name¶
Thegrouptodelete.Theformatis
"projects/{project_id_or_number}/groups/{group_id}".
recursive¶
Ifthisfieldistrue,thentherequestmeanstodeletea
groupwithallitsdescendants.Otherwise,therequestmeans
todeleteagrouponlywhenithasnodescendants.Thedefault
valueisfalse.
name
Fieldgoogle.monitoring.v3.DeleteGroupRequest.name
recursive
Fieldgoogle.monitoring.v3.DeleteGroupRequest.recursive
classgoogle.cloud.monitoring_v3.types.DeleteMetricDescriptorRequest¶
TheDeleteMetricDescriptorrequest.
name¶
Themetricdescriptoronwhichtoexecutetherequest.The
formatis"projects/{project_id_or_number}/metricDescriptors
/{metric_id}".Anexampleof{metric_id}is:
"custom.googleapis.com/my_test_metric".
name
Fieldgoogle.monitoring.v3.DeleteMetricDescriptorRequest.name
classgoogle.cloud.monitoring_v3.types.DeleteNotificationChannelRequest¶
TheDeleteNotificationChannelrequest.
name¶
Thechannelforwhichtoexecutetherequest.Theformatis
projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID].
force¶
Iftrue,thenotificationchannelwillbedeletedregardless
ofitsuseinalertpolicies(thepolicieswillbeupdatedto
removethechannel).Iffalse,channelsthatarestill
referencedbyanexistingalertingpolicywillfailtobe
deletedinadeleteoperation.
force
Fieldgoogle.monitoring.v3.DeleteNotificationChannelRequest.force
name
Fieldgoogle.monitoring.v3.DeleteNotificationChannelRequest.name
classgoogle.cloud.monitoring_v3.types.DeleteServiceLevelObjectiveRequest¶
TheDeleteServiceLevelObjectiverequest.
name¶
ResourcenameoftheServiceLevelObjectivetodelete.Of
theformprojects/{project_id}/services/{service_id}/service
LevelObjectives/{slo_name}.
name
Fieldgoogle.monitoring.v3.DeleteServiceLevelObjectiveRequest.name
classgoogle.cloud.monitoring_v3.types.DeleteServiceRequest¶
TheDeleteServicerequest.
name¶
ResourcenameoftheServicetodelete.Oftheform
projects/{project_id}/service/{service_id}.
name
Fieldgoogle.monitoring.v3.DeleteServiceRequest.name
classgoogle.cloud.monitoring_v3.types.DeleteUptimeCheckConfigRequest¶
TheprotocolfortheDeleteUptimeCheckConfigrequest.
name¶
TheUptimecheckconfigurationtodelete.Theformatisproj
ects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].
name
Fieldgoogle.monitoring.v3.DeleteUptimeCheckConfigRequest.name
classgoogle.cloud.monitoring_v3.types.Distribution¶
classBucketOptions¶
classExplicit¶
bounds¶
Fieldgoogle.api.Distribution.BucketOptions.Explicit.bounds
classExponential¶
growth_factor¶
Fieldgoogle.api.Distribution.BucketOptions.Exponential.growth_factor
num_finite_buckets¶
Fieldgoogle.api.Distribution.BucketOptions.Exponential.num_finite_buckets
scale¶
Fieldgoogle.api.Distribution.BucketOptions.Exponential.scale
classLinear¶
num_finite_buckets¶
Fieldgoogle.api.Distribution.BucketOptions.Linear.num_finite_buckets
offset¶
Fieldgoogle.api.Distribution.BucketOptions.Linear.offset
width¶
Fieldgoogle.api.Distribution.BucketOptions.Linear.width
explicit_buckets¶
Fieldgoogle.api.Distribution.BucketOptions.explicit_buckets
exponential_buckets¶
Fieldgoogle.api.Distribution.BucketOptions.exponential_buckets
linear_buckets¶
Fieldgoogle.api.Distribution.BucketOptions.linear_buckets
classExemplar¶
attachments¶
Fieldgoogle.api.Distribution.Exemplar.attachments
timestamp¶
Fieldgoogle.api.Distribution.Exemplar.timestamp
value¶
Fieldgoogle.api.Distribution.Exemplar.value
classRange¶
max¶
Fieldgoogle.api.Distribution.Range.max
min¶
Fieldgoogle.api.Distribution.Range.min
bucket_counts¶
Fieldgoogle.api.Distribution.bucket_counts
bucket_options¶
Fieldgoogle.api.Distribution.bucket_options
count¶
Fieldgoogle.api.Distribution.count
exemplars¶
Fieldgoogle.api.Distribution.exemplars
mean¶
Fieldgoogle.api.Distribution.mean
range¶
Fieldgoogle.api.Distribution.range
sum_of_squared_deviation¶
Fieldgoogle.api.Distribution.sum_of_squared_deviation
classgoogle.cloud.monitoring_v3.types.DistributionCut¶
ADistributionCutdefinesaTimeSeriesandthresholdsusedfor
measuringgoodserviceandtotalservice.TheTimeSeriesmusthave
ValueType=DISTRIBUTIONandMetricKind=DELTAor
MetricKind=CUMULATIVE.Thecomputedgood_servicewillbethe
countofvaluesxintheDistributionsuchthat
range.min<=x
延伸文章資訊
- 1Cloud Monitoring
Cloud Monitoring offers automatic out-of-the-box metric collection dashboards for Google Cloud se...
- 25 Key Features of Google Stackdriver (GCP) | VerSprite SecOps
Monitoring collects metrics, events, and metadata from Google Cloud Platform, Amazon Web Services...
- 3Enabling the Monitoring API | Google Cloud
- 4What is Google Cloud Operations? (Formerly Stackdriver)
Google Stackdriver was a monitoring service that provided IT teams with performance data about ap...
- 5Types for Stackdriver Monitoring API Client - Google Cloud
Stackdriver Monitoring creates the condition identifiers and includes them in the new policy. Whe...