@Throws(value=CloudHubErrorProvider.class) public class CloudHubOperations extends Object
| Constructor and Description |
|---|
CloudHubOperations() |
| Modifier and Type | Method and Description |
|---|---|
void |
createNotification(CloudHubConnection connection,
String domain,
String message,
Map<String,String> customProperties,
Priority priority,
String transactionId,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
Creates a new Notification
|
void |
getAccount(CloudHubConnection connection,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,Void> completionCallback) |
void |
getApplication(CloudHubConnection connection,
String domain,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,Void> completionCallback)
Retrieves a single application by name
|
void |
listApplications(CloudHubConnection connection,
StatisticsInformation statisticsInformation,
boolean retrieveLogLevels,
boolean retrieveTrackingSettings,
boolean retrieveIpAddresses,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,Void> completionCallback)
Retrieves all applications in the specified environment
|
org.mule.runtime.extension.api.runtime.streaming.PagingProvider<CloudHubConnection,Map<String,Object>> |
listNotifications(String domain,
int limit,
int pageSize,
NotificationFilterConfiguration filterConfiguration)
Lists all the available notifications for a giver domain
|
void |
markNotification(CloudHubConnection connection,
String notificationId,
MarkStatus markAs,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
Marks a notification as Read or Unread
|
@DisplayName(value="List Applications") @MediaType(value="application/json") @OutputResolver(output=GetApplicationsOutputResolver.class) public void listApplications(@Connection CloudHubConnection connection, @ParameterGroup(name="Statistics Information") StatisticsInformation statisticsInformation, @DisplayName(value="Retrieve Log Levels") @Optional(defaultValue="true") boolean retrieveLogLevels, @DisplayName(value="Retrieve Tracking Settings") @Optional(defaultValue="true") boolean retrieveTrackingSettings, @DisplayName(value="Retrieve IP Addresses") @Optional(defaultValue="true") boolean retrieveIpAddresses, org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,Void> completionCallback)
connection - retrieveLogLevels - Whether should retrieve Application log levelsretrieveTrackingSettings - Whether should retrieve Application tracking settingsretrieveIpAddresses - Whether should retrieve Application IP AddressescompletionCallback - @DisplayName(value="Get Application") @MediaType(value="application/json") @OutputResolver(output=GetApplicationOutputResolver.class) public void getApplication(@Connection CloudHubConnection connection, @OfValues(value=DomainsValueProvider.class) String domain, org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,Void> completionCallback)
connection - domain - The name of the applicationcompletionCallback - @DisplayName(value="Create Notification")
public void createNotification(@Connection
CloudHubConnection connection,
@OfValues(value=DomainsValueProvider.class)
String domain,
@Content(primary=true)
String message,
@NullSafe @Optional @Content
Map<String,String> customProperties,
@Optional
Priority priority,
@Optional
String transactionId,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
connection - domain - Name of the application to bind the new notificationmessage - Notification's messagecustomProperties - Additional properties for the notificationtransactionId - Transaction ID for the Notificationpriority - Priority of the notification to create. INFO, WARN or ERROR.completionCallback - @DisplayName(value="List Notifications") @MediaType(value="application/java") @OutputResolver(output=NotificationResolver.class) public org.mule.runtime.extension.api.runtime.streaming.PagingProvider<CloudHubConnection,Map<String,Object>> listNotifications(@OfValues(value=DomainsValueProvider.class) String domain, @Optional(defaultValue="-1") int limit, @Placement(tab="Advanced") @Optional(defaultValue="25") int pageSize, @ParameterGroup(name="Notification Filter") NotificationFilterConfiguration filterConfiguration)
domain - Name of the application to gather notifications fromlimit - Number of notifications to retrieve. -1 means everything availablepageSize - Size of the page to retrieve per iteration. This only should be changed for performance purposespublic void markNotification(@Connection
CloudHubConnection connection,
String notificationId,
MarkStatus markAs,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
connection - notificationId - ID of the notificationmarkAs - Action to do. Mark as Read or UnreadcompletionCallback - @Ignore
public void getAccount(@Connection
CloudHubConnection connection,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,Void> completionCallback)
Copyright © 2023 MuleSoft, Inc.. All rights reserved.