Package org.jenkinsci.plugins.cloudstats
Class ActivityIndex
java.lang.Object
org.jenkinsci.plugins.cloudstats.ActivityIndex
Indexed view of statistics snapshot.
Provides access to activities indexed by cloud, template, etc.
- Author:
- ogondza.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyCloud()
Get activities sorted by owning cloud.Get activities sorted by owning cloud and templatecloudHealth
(String cloud) Get activities owned by particular cloud.forTemplate
(String cloud, String template) Get activities owned by particular cloud and template.Get map of cloud names to their health metrics.templateHealth
(String cloud, String template)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ActivityIndex
-
-
Method Details
-
byCloud
Get activities sorted by owning cloud.- Returns:
- Map where cloud names are the keys.
-
byTemplate
Get activities sorted by owning cloud and template- Returns:
- Map where cloud names are the keys, values are maps where keys are template names. Note that template name can be null in case the cloud is not using templates. It should be the only key in such a case.
-
forCloud
Get activities owned by particular cloud. -
forTemplate
@NonNull public Collection<ProvisioningActivity> forTemplate(@NonNull String cloud, @Nullable String template) Get activities owned by particular cloud and template. -
healthByCloud
Get map of cloud names to their health metrics. -
healthByTemplate
-
cloudHealth
-
templateHealth
-